Default route
we already discuss advertising the default route in IP ROUTING . in this section we see the configuration of the default route in EIGRP, RIP, and OSPF.
we already discuss advertising the default route in IP ROUTING . in this section we see the configuration of the default route in EIGRP, RIP, and OSPF.
lets the configuration:-
Topology:
GOAL:
- Configure the topology as per our diagram.
- assign IP address as per the topology.
- we have two methods of advertising default route
- default-network ****
- redistribution static
- in this scenario we use redistribution method
- configure static route on router 1 toward router
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.1 YES manual up up
Serial3/0 1.1.1.1 YES manual up up
Loopback0 11.0.0.1 YES manual up up
Loopback1 11.0.1.1 YES manual up up
Loopback2 11.0.2.1 YES manual up up
Loopback3 11.0.3.1 YES manual up up
Loopback4 11.0.4.1 YES manual up up
R2#show ip interface brief
Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 20.1.1.1 YES manual up up
Serial3/0 1.1.1.2 YES manual up up
Serial3/1 2.2.2.1 YES manual up up
Serial3/2 3.3.3.1 YES manual up up
R3#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 30.1.1.1 YES manual up up
Serial3/1 2.2.2.2 YES manual up up
R4#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 40.1.1.1 YES manual up up
Serial3/2 3.3.3.2 YES manual up up
R1(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 3.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 20.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 30.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 40.0.0.0 255.0.0.0 1.1.1.2
R2(config)#router eigrp 111
R2(config-router)#network 2.0.0.0
*Jan 18 14:26:59.043: %DUAL-5-NBRCHANGE: EIGRP-IPv4 111: Neighbor 2.2.2.2 (Serial3/1) is up: new adjacency
R2(config-router)#network 3.0.0.0
*Jan 18 14:27:03.347: %DUAL-5-NBRCHANGE: EIGRP-IPv4 111: Neighbor 3.3.3.2 (Serial3/2) is up: new adjacency
R2(config-router)#network 20.0.0.0
R2(config-router)#redistribute static
R2(config-router)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1
R3(config)#router eigrp 111
R3(config-router)#network 2.0.0.0
R3(config-router)#network 30.0.0.0
R3(config-router)#exit
*Jan 18 14:06:12.027: %DUAL-5-NBRCHANGE: EIGRP-IPv4 111: Neighbor 2.2.2.1 (Serial3/1) is up: new adjacency
R4(config)#router eigrp 111
R4(config-router)#network 3.0.0.0
R4(config-router)#network 40.0.0.0
*Jan 18 14:06:46.355: %DUAL-5-NBRCHANGE: EIGRP-IPv4 111: Neighbor 3.3.3.1 (Serial3/2) is up: new adjacency
R4#show ip route eigrp
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 3.3.3.1 to network 0.0.0.0
D*EX 0.0.0.0/0 [170/2681856] via 3.3.3.1, 00:01:47, Serial3/2
D 2.0.0.0/8 [90/2681856] via 3.3.3.1, 00:02:46, Serial3/2
D 20.0.0.0/8 [90/2172416] via 3.3.3.1, 00:02:42, Serial3/2
D 30.0.0.0/8 [90/2684416] via 3.3.3.1, 00:02:46, Serial3/2
R4#ping 11.0.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/60/76 ms
R4#ping 11.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/56/116 ms
R4#ping 11.0.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/64/76 ms
R4#ping 11.0.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/56/80 ms
R3#show ip route eigrp
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 2.2.2.1 to network 0.0.0.0
D*EX 0.0.0.0/0 [170/2681856] via 2.2.2.1, 00:02:47, Serial3/1
D 3.0.0.0/8 [90/2681856] via 2.2.2.1, 00:03:46, Serial3/1
D 20.0.0.0/8 [90/2172416] via 2.2.2.1, 00:03:42, Serial3/1
D 40.0.0.0/8 [90/2684416] via 2.2.2.1, 00:03:46, Serial3/1
R3#ping 11.0.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/49/76 ms
R3#ping 11.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/35/40 ms
R3#ping 11.0.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/45/60 ms
R3#ping 11.0.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/40/52 ms
R2#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 1.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.1.1.1
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.2/32 is directly connected, Serial3/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.0.0.0/8 is directly connected, Serial3/1
L 2.2.2.1/32 is directly connected, Serial3/1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.0.0.0/8 is directly connected, Serial3/2
L 3.3.3.1/32 is directly connected, Serial3/2
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, FastEthernet0/0
L 20.1.1.1/32 is directly connected, FastEthernet0/0
D 30.0.0.0/8 [90/2172416] via 2.2.2.2, 00:05:00, Serial3/1
D 40.0.0.0/8 [90/2172416] via 3.3.3.2, 00:04:56, Serial3/2
R2#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/43/72 ms
R2#ping 11.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/36/52 ms
R2#ping 11.0.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/32 ms
R1#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.1/32 is directly connected, Serial3/0
S 2.0.0.0/8 [1/0] via 1.1.1.2
S 3.0.0.0/8 [1/0] via 1.1.1.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
11.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
C 11.0.0.0/24 is directly connected, Loopback0
L 11.0.0.1/32 is directly connected, Loopback0
C 11.0.1.0/24 is directly connected, Loopback1
L 11.0.1.1/32 is directly connected, Loopback1
C 11.0.2.0/24 is directly connected, Loopback2
L 11.0.2.1/32 is directly connected, Loopback2
C 11.0.3.0/24 is directly connected, Loopback3
L 11.0.3.1/32 is directly connected, Loopback3
C 11.0.4.0/24 is directly connected, Loopback4
L 11.0.4.1/32 is directly connected, Loopback4
S 20.0.0.0/8 [1/0] via 1.1.1.2
S 30.0.0.0/8 [1/0] via 1.1.1.2
S 40.0.0.0/8 [1/0] via 1.1.1.2
R1#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/34/40 ms
R1#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/51/80 ms
R1#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/63/76 ms
lets see the configuration of default route in RIPv2 but in this section we will see different method by using command.
Topology:
GOAL:
- delete the previous topology by using no ip routing command.
- advertise default route by using command not by redistribution just like previous scenario.
R1(config)#no ip routing
R1(config)#ip routing
R2(config)#no ip routing
R2(config)#ip routing
R3(config)#no ip routing
R3(config)#ip routing
R4(config)#no ip routing
R4(config)#ip routing
R1(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 3.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 20.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 30.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 40.0.0.0 255.0.0.0 1.1.1.2
R2(config)#router rip
R2(config-router)#ver 2
R2(config-router)#network 2.0.0.0
R2(config-router)#network 3.0.0.0
R2(config-router)#network 20.0.0.0
R2(config-router)#exit
R3(config)#router rip
R3(config-router)#ver 2
R3(config-router)#network 2.0.0.0
R3(config-router)#network 30.0.0.0
R3(config-router)#exit
R4(config)#router rip
R4(config-router)#ver 2
R4(config-router)#network 3.0.0.0
R4(config-router)#network 40.0.0.0
R4(config-router)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#default-information originate
R2(config-router)#end
R4#sh ip route rip
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 3.3.3.1 to network 0.0.0.0
R* 0.0.0.0/0 [120/1] via 3.3.3.1, 00:00:10, Serial3/2
R 2.0.0.0/8 [120/1] via 3.3.3.1, 00:00:10, Serial3/2
R 20.0.0.0/8 [120/1] via 3.3.3.1, 00:00:10, Serial3/2
R 30.0.0.0/8 [120/2] via 3.3.3.1, 00:00:10, Serial3/2
R4#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/66/96 ms
R4#ping 11.0.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/45/52 ms
R4#ping 11.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/68 ms
R3#show ip route rip
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 2.2.2.1 to network 0.0.0.0
R* 0.0.0.0/0 [120/1] via 2.2.2.1, 00:00:17, Serial3/1
R 3.0.0.0/8 [120/1] via 2.2.2.1, 00:00:17, Serial3/1
R 20.0.0.0/8 [120/1] via 2.2.2.1, 00:00:17, Serial3/1
R 40.0.0.0/8 [120/2] via 2.2.2.1, 00:00:17, Serial3/1
R3#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/50/80 ms
R3#ping 11.0.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/68/76 ms
R3#ping 11.0.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/43/60 ms
R2#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 1.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.1.1.1
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.2/32 is directly connected, Serial3/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.0.0.0/8 is directly connected, Serial3/1
L 2.2.2.1/32 is directly connected, Serial3/1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.0.0.0/8 is directly connected, Serial3/2
L 3.3.3.1/32 is directly connected, Serial3/2
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, FastEthernet0/0
L 20.1.1.1/32 is directly connected, FastEthernet0/0
R 30.0.0.0/8 [120/1] via 2.2.2.2, 00:00:22, Serial3/1
R 40.0.0.0/8 [120/1] via 3.3.3.2, 00:00:14, Serial3/2
R2#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 1.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.1.1.1
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.2/32 is directly connected, Serial3/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.0.0.0/8 is directly connected, Serial3/1
L 2.2.2.1/32 is directly connected, Serial3/1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.0.0.0/8 is directly connected, Serial3/2
L 3.3.3.1/32 is directly connected, Serial3/2
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, FastEthernet0/0
L 20.1.1.1/32 is directly connected, FastEthernet0/0
R 30.0.0.0/8 [120/1] via 2.2.2.2, 00:00:22, Serial3/1
R 40.0.0.0/8 [120/1] via 3.3.3.2, 00:00:14, Serial3/2
R2#
R2#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/40 ms
R2#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/20/36 ms
R2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/56 ms
R2#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/22/44 ms
R1#sh ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.1/32 is directly connected, Serial3/0
S 2.0.0.0/8 [1/0] via 1.1.1.2
S 3.0.0.0/8 [1/0] via 1.1.1.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
11.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
C 11.0.0.0/24 is directly connected, Loopback0
L 11.0.0.1/32 is directly connected, Loopback0
C 11.0.1.0/24 is directly connected, Loopback1
L 11.0.1.1/32 is directly connected, Loopback1
C 11.0.2.0/24 is directly connected, Loopback2
L 11.0.2.1/32 is directly connected, Loopback2
C 11.0.3.0/24 is directly connected, Loopback3
L 11.0.3.1/32 is directly connected, Loopback3
C 11.0.4.0/24 is directly connected, Loopback4
L 11.0.4.1/32 is directly connected, Loopback4
S 20.0.0.0/8 [1/0] via 1.1.1.2
S 30.0.0.0/8 [1/0] via 1.1.1.2
S 40.0.0.0/8 [1/0] via 1.1.1.2
R1#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/52 ms
R1#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/88/136 ms
R1#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/44/72 ms
Topology;
GOAL:
- Delete previous configuration by using no ip routing .
- make sure router 2, 3, and 4 able to reach router 4 internet route using default route.
R1(config)#no ip routing
R1(config)#ip routing
R2(config)#no ip routing
R2(config)#ip routing
R3(config)#no ip routing
R3(config)#ip routing
R4(config)#no ip routing
R4(config)#ip routing
R4(config)#no ip routing
R4(config)#ip routing
R1(config)#ip route 20.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 30.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 40.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2
R1(config)#ip route 3.0.0.0 255.0.0.0 1.1.1.2
R1(config)#end
R2(config)#router ospf 10
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
R2(config-router)#network 3.0.0.0 0.255.255.255 area 0
R2(config-router)#network 20.0.0.0 0.255.255.255 area 0
R2(config-router)#exit
R3(config)#router ospf 10
R3(config-router)#network 2.0.0.0 0.255.255.255 area 0
*Jan 18 15:30:24.795: %OSPF-5-ADJCHG: Process 10, Nbr 20.1.1.1 on Serial3/1 from LOADING to FULL, Loading Done
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#exit
R4(config)#router ospf 10
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
*Jan 18 15:31:25.871: %OSPF-5-ADJCHG: Process 10, Nbr 20.1.1.1 on Serial3/2 from LOADING to FULL, Loading Done
R4(config-router)#network 40.0.0.0 0.255.255.255 area 0
R4(config-router)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1
R2(config)#router ospf 10
R2(config-router)#default-information originate always
R2(config-router)#end
R1#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.1/32 is directly connected, Serial3/0
S 2.0.0.0/8 [1/0] via 1.1.1.2
S 3.0.0.0/8 [1/0] via 1.1.1.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
11.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
C 11.0.0.0/24 is directly connected, Loopback0
L 11.0.0.1/32 is directly connected, Loopback0
C 11.0.1.0/24 is directly connected, Loopback1
L 11.0.1.1/32 is directly connected, Loopback1
C 11.0.2.0/24 is directly connected, Loopback2
L 11.0.2.1/32 is directly connected, Loopback2
C 11.0.3.0/24 is directly connected, Loopback3
L 11.0.3.1/32 is directly connected, Loopback3
C 11.0.4.0/24 is directly connected, Loopback4
L 11.0.4.1/32 is directly connected, Loopback4
S 20.0.0.0/8 [1/0] via 1.1.1.2
S 30.0.0.0/8 [1/0] via 1.1.1.2
S 40.0.0.0/8 [1/0] via 1.1.1.2
R1#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/53/80 ms
R1#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/52/84 ms
R1#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/76/100 ms
R2#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 1.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.1.1.1
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/8 is directly connected, Serial3/0
L 1.1.1.2/32 is directly connected, Serial3/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.0.0.0/8 is directly connected, Serial3/1
L 2.2.2.1/32 is directly connected, Serial3/1
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.0.0.0/8 is directly connected, Serial3/2
L 3.3.3.1/32 is directly connected, Serial3/2
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, FastEthernet0/0
L 20.1.1.1/32 is directly connected, FastEthernet0/0
O 30.0.0.0/8 [110/65] via 2.2.2.2, 00:03:26, Serial3/1
O 40.0.0.0/8 [110/65] via 3.3.3.2, 00:02:25, Serial3/2
R2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/44/60 ms
R2#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
R2#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/31/52 ms
R2#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/48 ms
R2#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/23/36 ms
R3#show ip route ospf
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 2.2.2.1 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 2.2.2.1, 00:02:08, Serial3/1
O 3.0.0.0/8 [110/128] via 2.2.2.1, 00:04:30, Serial3/1
O 20.0.0.0/8 [110/65] via 2.2.2.1, 00:04:30, Serial3/1
O 40.0.0.0/8 [110/129] via 2.2.2.1, 00:03:19, Serial3/1
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 100/113/136 ms
R3#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/23/48 ms
R3#ping 40.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 40.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/58/72 ms
R3#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/52/72 ms
R3#traceroute 11.0.0.1
Type escape sequence to abort.
Tracing the route to 11.0.0.1
VRF info: (vrf in name/id, vrf out name/id)
1 2.2.2.1 20 msec 28 msec 36 msec
2 1.1.1.1 68 msec 76 msec 48 msec
(if you have any suggestion or any query please comment)
No comments:
Post a Comment