static routing configuration using four routers in a row.

Posted: July 21, 2015 in CCNA
Tags:

static routing configuration using four routers

 

You can clearly see there are four routers in a row and I am going to show you how to configure static routing for this lab scenario.Here i assume that you already know how to assign ip address on router interfaces.I will show you only routing configuration steps.This lab will help ccna students in their certification exams.Before we start configuring static routing we must assign ip address on each and every interface of routers and PC.We will start routing only after assigning ip address and enable each port.

Configuration on Router R1:

Now I am going to configure static routing on router R1 here.During static routing configuration we have to tell each and every router about the indirectly connected networks.Here 3.0.0.0 ,4.0.0.0 , 5.0.0.0 ,6.0.0.0  and 7.0.0.0 networks are indirectly connected to Router R1.So we have to tell about all these networks to our Router R1.

 

Router(config)#ip route 3.0.0.0 255.0.0.0 2.0.0.2

Router(config)#ip route 4.0.0.0 255.0.0.0 2.0.0.2

Router(config)#ip route 5.0.0.0 255.0.0.0 2.0.0.2

Router(config)#ip route 6.0.0.0 255.0.0.0 2.0.0.2

Router(config)#ip route 7.0.0.0 255.0.0.0 2.0.0.2

 

Configuration on Router R2:

Similarly we will tell about all indirectly networks to router R2.

 

Router(config)#ip route 1.0.0.0 255.0.0.0 2.0.0.1

Router(config)#ip route 5.0.0.0 255.0.0.0 4.0.0.2

Router(config)#ip route 6.0.0.0 255.0.0.0 4.0.0.2

Router(config)#ip route 7.0.0.0 255.0.0.0 4.0.0.2

 

Configuration on Router R3:

Similarly configure static routing on router R3.

 

Router(config)#ip route 1.0.0.0 255.0.0.0 4.0.0.1

Router(config)#ip route 2.0.0.0 255.0.0.0 4.0.0.1

Router(config)#ip route 3.0.0.0 255.0.0.0 4.0.0.1

Router(config)#ip route 7.0.0.0 255.0.0.0 6.0.0.2

 

Configuration on Router R4:

Like above configure static routing over router R4.

 

Router(config)#ip route 1.0.0.0 255.0.0.0 6.0.0.1

Router(config)#ip route 2.0.0.0 255.0.0.0 6.0.0.1

Router(config)#ip route 3.0.0.0 255.0.0.0 6.0.0.1

Router(config)#ip route 4.0.0.0 255.0.0.0 6.0.0.1

Router(config)#ip route 5.0.0.0 255.0.0.0 6.0.0.1

 

Troubleshooting Command:

Now to test route on router R1 type below command:

Router>enable
 Router#show ip route
 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route

Gateway of last resort is not set

C 1.0.0.0/8 is directly connected, FastEthernet0/0
 C 2.0.0.0/8 is directly connected, FastEthernet0/1
 S 3.0.0.0/8 [1/0] via 2.0.0.2
 S 4.0.0.0/8 [1/0] via 2.0.0.2
 S 5.0.0.0/8 [1/0] via 2.0.0.2
 S 6.0.0.0/8 [1/0] via 2.0.0.2
 S 7.0.0.0/8 [1/0] via 2.0.0.2
 Router#

 

Explanation of above command:

You can clearly see C and S options.

C means network directly connected with router R1.

S means network which are indirectly connected with router R1 and for which we have configured static route.

 

 

IF you want to see the detail information of router interfaces,like its ip addresses,port is up or down you can use below command.

 

Router#show ip interface
 FastEthernet0/0 is up, line protocol is up (connected)
 Internet address is 1.0.0.1/8
 Broadcast address is 255.255.255.255
 Address determined by setup command
 MTU is 1500 bytes
 Helper address is not set
 Directed broadcast forwarding is disabled
 Outgoing access list is not set
 Inbound access list is not set
 Proxy ARP is enabled
 Security level is default
 Split horizon is enabled
 ICMP redirects are always sent
 ICMP unreachables are always sent
 ICMP mask replies are never sent
 IP fast switching is disabled
 IP fast switching on the same interface is disabled
 IP Flow switching is disabled
 IP Fast switching turbo vector
 IP multicast fast switching is disabled
 IP multicast distributed fast switching is disabled
 Router Discovery is disabled
 IP output packet accounting is disabled
 IP access violation accounting is disabled
 TCP/IP header compression is disabled
 RTP/IP header compression is disabled
 Probe proxy name replies are disabled
 Policy routing is disabled
 Network address translation is disabled
 BGP Policy Mapping is disabled
 Input features: MCI Check
 WCCP Redirect outbound is disabled
 WCCP Redirect inbound is disabled
 WCCP Redirect exclude is disabled
 FastEthernet0/1 is up, line protocol is up (connected)
 Internet address is 2.0.0.1/8
 Broadcast address is 255.255.255.255
 Address determined by setup command
 MTU is 1500 bytes
 Helper address is not set
 Directed broadcast forwarding is disabled
 Outgoing access list is not set
 Inbound access list is not set
 Proxy ARP is enabled
 Security level is default
 Split horizon is enabled
 ICMP redirects are always sent
 ICMP unreachables are always sent
 ICMP mask replies are never sent
 IP fast switching is disabled
 IP fast switching on the same interface is disabled
 IP Flow switching is disabled
 IP Fast switching turbo vector
 IP multicast fast switching is disabled
 IP multicast distributed fast switching is disabled
 Router Discovery is disabled
 IP output packet accounting is disabled
 IP access violation accounting is disabled
 TCP/IP header compression is disabled
 RTP/IP header compression is disabled
 Probe proxy name replies are disabled
 Policy routing is disabled
 Network address translation is disabled
 BGP Policy Mapping is disabled
 Input features: MCI Check
 WCCP Redirect outbound is disabled
 WCCP Redirect inbound is disabled
 WCCP Redirect exclude is disabled
 Vlan1 is administratively down, line protocol is down
 Internet protocol processing disabled
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s