Skip to main content
modify ip result
Source Link
    Router#show ip route
Codes: 172.21.0.0C 255.255.0.0
Routing- entryconnected, forS 172.21.0.0/16- static, I - IGRP, R - RIP, M - mobile, B - BGP
KnownD via- "connected"EIGRP, distanceEX 0- EIGRP external, metricO 0- (connectedOSPF, viaIA interface)- OSPF inter area
RedistributingN1 via- ripOSPF NSSA external type 1, N2 - OSPF NSSA external type 2
AdvertisedE1 by- ripOSPF external type 1, E2 - OSPF external type 2, E - EGP
Routingi Descriptor- Blocks:IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* directly- connectedcandidate default, viaU Serial0/0/0- per-user static route, o - ODR
RouteP metric- periodic downloaded static route
 
Gateway of last resort is not set
 
C 10.0,.0.0/8 trafficis sharedirectly countconnected, FastEthernet0/0
C 172.21.0.0/16 is 1directly connected, Serial0/0/0
    Router#show ip route
Codes: 172.20.0.0C 255.255.0.0- connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
RoutingD entry- forEIGRP, 172.20.0.0/16EX - EIGRP external, O - OSPF, IA - OSPF inter area
KnownN1 via- "connected"OSPF NSSA external type 1, distanceN2 0- OSPF NSSA external type 2
E1 - OSPF external type 1, metricE2 0- (connectedOSPF external type 2, viaE interface)- EGP
Routingi Descriptor- Blocks:IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* directly- connectedcandidate default, viaU Serial0/0/0- per-user static route, o - ODR
RouteP metric- periodic downloaded static route
 
Gateway of last resort is not set
 
C 10.0,.0.0/8 trafficis sharedirectly countconnected, FastEthernet0/0
C 172.20.0.0/16 is 1directly connected, Serial0/0/0
Router#show ip route 172.21.0.0 255.255.0.0
Routing entry for 172.21.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via rip
Advertised by rip
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1
Router#show ip route 172.20.0.0 255.255.0.0
Routing entry for 172.20.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1
    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 10.0.0.0/8 is directly connected, FastEthernet0/0
C 172.21.0.0/16 is directly connected, Serial0/0/0
    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 10.0.0.0/8 is directly connected, FastEthernet0/0
C 172.20.0.0/16 is directly connected, Serial0/0/0
add more details again
Source Link

show ip route output for each router:

Router B

Router#show ip route 172.21.0.0 255.255.0.0
Routing entry for 172.21.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via rip
Advertised by rip
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1

Router A

Router#show ip route 172.20.0.0 255.255.0.0
Routing entry for 172.20.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1

show ip route output for each router:

Router B

Router#show ip route 172.21.0.0 255.255.0.0
Routing entry for 172.21.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via rip
Advertised by rip
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1

Router A

Router#show ip route 172.20.0.0 255.255.0.0
Routing entry for 172.20.0.0/16
Known via "connected", distance 0, metric 0 (connected, via interface)
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1
add more details
Source Link

Gateway for network PCs on the left (0, 2, 1)

10.1.4.1

Gateway for network PCs on the right (3, 4)

10.1.3.0

Router A CLI:

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#router rip
Router(config-router)#
Router(config-router)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.4.1 255.0.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#no network 10.0.0.0
Router(config-router)#no network 172.20.0.0
Router(config-router)#network 172.20.0.0
Router(config-router)#network 10.0.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#
Router(config)#interface FastEthernet0/0
Router(config-if)#no ip address
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
Router(config)#ip route 172.10.0.0 255.255.0.0 10.1.4.1
Router(config)#ip route 172.23.0.0 255.255.0.0 10.1.8.2
Router(config)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.4.1 255.0.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#

Router B CLI:

Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#
Router(config-router)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 172.21.0.1 255.0.0.0
Router(config-if)#no ip address
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#router rip
Router(config-router)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#no ip address
Router(config-if)#shutdown
 
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to administratively down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/1
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/1
Router(config-if)#no ip address
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#no shutdown
 
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
network 172.10.0.0
Router(config-router)#no network 172.21.0.0
Router(config-router)#no network 172.10.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#network 172.21.0.0
Router(config-router)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#end
Router#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
%SYS-5-CONFIG_I: Configured from console by console
N
Router#
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#end
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#
%SYS-5-CONFIG_I: Configured from console by console
 
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.3.0 255.0.0.0
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#

Gateway for network PCs on the left (0, 2, 1)

10.1.4.1

Gateway for network PCs on the right (3, 4)

10.1.3.0

Router A CLI:

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#router rip
Router(config-router)#
Router(config-router)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.4.1 255.0.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#no network 10.0.0.0
Router(config-router)#no network 172.20.0.0
Router(config-router)#network 172.20.0.0
Router(config-router)#network 10.0.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
%Invalid next hop address (it's this router)
Router(config)#
Router(config)#interface FastEthernet0/0
Router(config-if)#no ip address
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#ip route 172.21.0.0 255.255.0.0 10.1.4.1
Router(config)#ip route 172.10.0.0 255.255.0.0 10.1.4.1
Router(config)#ip route 172.23.0.0 255.255.0.0 10.1.8.2
Router(config)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.4.1 255.0.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#

Router B CLI:

Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#
Router(config-router)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#
Router(config-router)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 172.21.0.1 255.0.0.0
Router(config-if)#no ip address
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#router rip
Router(config-router)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#no ip address
Router(config-if)#shutdown
 
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to administratively down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/1
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/1
Router(config-if)#no ip address
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 172.21.0.1 255.255.0.0
Router(config-if)#no shutdown
 
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
network 172.10.0.0
Router(config-router)#no network 172.21.0.0
Router(config-router)#no network 172.10.0.0
Router(config-router)#no network 10.0.0.0
Router(config-router)#network 172.21.0.0
Router(config-router)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to down
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#end
Router#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
%SYS-5-CONFIG_I: Configured from console by console
N
Router#
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#
Router(config-if)#end
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#
%SYS-5-CONFIG_I: Configured from console by console
 
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.3.0 255.0.0.0
Router(config-if)#
 
 
 
 
 
 
 
 
Router con0 is now available
 
 
 
 
 
 
Press RETURN to get started.
 
 
 
 
 
 
 
 
 
 
 
 
 
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Source Link
Loading