background image
IP Configuration 293
By coding a default route on R1 that points to router Dist1 in Figure 5-31, the default routing
can be accomplished. R1 advertises the default route to R2 and R3. Examples 5-14 and 5-15,
along with Figure 5-31, show an example of a default route on R1.
Example 5-14
R1 Static Default Route Configuration and Routing Table
R1(config)#ip route 0.0.0.0 0.0.0.0 168.13.1.101
R1#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, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is 168.13.1.101 to network 0.0.0.0
168.13.0.0/24 is subnetted, 4 subnets
C 168.13.1.0 is directly connected, TokenRing0
R 168.13.3.0 [120/1] via 168.13.100.3, 00:00:05, Serial0.1
R 168.13.2.0 [120/1] via 168.13.100.2, 00:00:21, Serial0.1
C 168.13.100.0 is directly connected, Serial0.1
S* 0.0.0.0/0 [1/0] via 168.13.1.101
R1#
Example 5-15
R3--Nuances with Successful Use of Static Route on R1
R3#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, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is 168.13.100.1 to network 0.0.0.0
168.13.0.0/24 is subnetted, 4 subnets
R 168.13.1.0 [120/1] via 168.13.100.1, 00:00:13, Serial0.1
C 168.13.3.0 is directly connected, Ethernet0
R 168.13.2.0 [120/1] via 168.13.100.2, 00:00:06, Serial0.1
C 168.13.100.0 is directly connected, Serial0.1
R* 0.0.0.0/0 [120/1] via 168.13.100.1, 00:00:14, Serial0.1
R3#ping 168.13.200.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 168.13.200.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R3#
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
continues
ch05.fm Page 293 Monday, March 20, 2000 5:06 PM