Competition Success Review published this article page no 15 one point of confusion for some ccna and ccnp candidates is the difference between configuring a static default route and using the cisco routing command ip default-network. at first glance they appear to do the same thing. both configure a destination to which packets should be routed if there is no more specific route in the routing table. the major difference between these two options is that configuring a static default route only defines a default route for the router youre configuring it on while ip default-network will propagate the route via its routing protocol. lets examine the routing tables of a hub-and-spoke network using the ip default-network command. r1 is the hub and r2 and r3 are the spokes. they are directly connected via the network 172.12.123.0 /24 and each has a loopback with a 32-bit mask that are numbered according to the router number (1.1.1.1 etc.) rip is running on all three routers and the loopbacks are advertised. r1 has another serial interface with the ip address 10.1.1.1 /24 and this network has been flagged as a default network with the command ip default-network 10.0.0.0 . it is not being advertised by rip. the routing protocol will then advertise this route. with rip the default network is advertised as 0.0.0.0 . (with igrp it appears as the network number but is marked as an igrp external route. ) this route has been designated a candidate default route on r1 as we see with the asterisk next to the 10.0.0.0 /24 network (code table removed for brevity): r1#show ip route gateway of last resort is not set 1.0.0.0/32 is subnetted 1 subnets c 1.1.1.1 is directly connected loopback0 r 2.0.0.0/8 [120/1] via 172.12.123.2 00:00:11 serial0 r 3.0.0.0/8 [120/1] via 172.12.123.3 00:00:11 serial0 172.12.0.0/16 is variably subnetted 2 subnets 2 masks c 172.12.21.0/30 is directly connected bri0 c 172.12.123.0/24 is directly connected serial0 * 10.0.0.0/24 is subnetted 1 subnets c 10.1.1.0 is directly connected serial1 on r2 and r3 a default rip route is now seen (code tables again deleted): r2#show ip route gateway of last resort is 172.12.123.1 to network 0.0.0.0 r 1.0.0.0/8 [120/1] via 172.12.123.1 00:00:00 serial0.213 2.0.0.0/32 is subnetted 1 subnets c 2.2.2.2 is directly connected loopback0 r 3.0.0.0/8 [120/2] via 172.12.123.1 00:00:00 serial0.213 172.12.0.0/16 is variably subnetted 2 subnets 2 masks c 172.12.21.0/30 is directly connected bri0 c 172.12.123.0/24 is directly connected serial0.213 r* 0.0.0.0/0 [120/1] via 172.12.123.1 00:00:00 serial0.213 r3#show ip route gateway of last resort is 172.12.123.1 to network 0.0.0.0 r 1.0.0.0/8 [120/1] via 172.12.123.1 00:00:27 serial0.31 r 2.0.0.0/8 [120/2] via 172.12.123.1 00:00:28 serial0.31 3.0.0.0/32 is subnetted 1 subnets c 3.3.3.3 is directly connected loopback0 172.12.0.0/24 is subnetted 1 subnets c 172.12.123.0 is directly connected serial0.31 r* 0.0.0.0/0 [120/1] via 172.12.123.1 00:00:28 serial0.31 and the default route works since we can ping 10.1.1.1 from both r2 and r3. since they have no other match in their routing tables they use the default route. 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 = 68/68/68 ms 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 = 68/68/68 ms when deciding whether to use a default static route or a default network keep in mind that if you want the routing protocol to propagate the default route the ip default-network command will do that for you. but if you want only the local router to have the default route a static ip route is the way to go competition success review magazines subscription.
No comments:
Post a Comment