™
One position of confusion for a few CCNA and CCNP candidates would be the difference between configuring a static default route and using the Cisco routing command ip default-network.
To start with glance, they seem to try and do the exact same matter. Both of those configure a destination to which packets really should be routed if there is no a lot more specific route during the routing table.
The most important difference between these two possibilities is always that configuring a static default route only defines a default route for your router you’re configuring it on, while ip default-community will propagate the route through its routing protocol.
Let’s study the routing tables of the hub-and-spoke community utilizing the ip default-network command. R1 would be the hub and R2 and R3 are the spokes. They are directly related through the community 172.12.123.0 /24, and every incorporates a loopback by using a 32-bit mask that are numbered according to the router range (one.1.1.1, and so on.) RIP is operating on all three routers as well as loopbacks are marketed.
R1 has another serial interface While using the IP tackle ten.one.one.1 /24, which network has actually been flagged as being a default network Using the command ip default-network 10.0.0.0 . It's not at all becoming advertised by RIP.
The routing protocol will then publicize this route. With RIP, the default community is marketed as 0.0.0.0 . (With IGRP, it appears given that the community selection, but is marked as an IGRP Exterior route. ) This route has been selected a applicant default route on R1, as we see Using the asterisk close to the 10.0.0.0 /24 network (code table eradicated for brevity):
R1#exhibit ip route
Gateway of past resort will not be set
one.0.0.0/32 is subnetted, 1 subnets
C 1.1.one.one is straight connected, Loopback0
R two.0.0.0/8 [a hundred and twenty/1] via 172.twelve.123.two, 00:00:eleven, Serial0
R 3.0.0.0/eight [120/1] by using 172.twelve.123.three, 00:00:11, Serial0
172.twelve.0.0/sixteen is variably subnetted, two subnets, two masks
C 172.12.21.0/thirty is straight connected, BRI0
C 172.twelve.123.0/24 is immediately connected, Serial0
* 10.0.0.0/24 is subnetted, one subnets
C ten.1.one.0 is immediately https://socialhattori.com/ related, Serial1
On R2 and R3, a default RIP route is now observed (code tables once again deleted):
R2#clearly show ip route
Gateway of last vacation resort is 172.12.123.one to community 0.0.0.0
R 1.0.0.0/8 [one hundred twenty/1] by using 172.twelve.123.1, 00:00:00, Serial0.213
2.0.0.0/32 is subnetted, one subnets
C two.2.two.two is instantly related, Loopback0
R 3.0.0.0/eight [one hundred twenty/two] through 172.twelve.123.one, 00:00:00, Serial0.213
172.12.0.0/sixteen is variably subnetted, 2 subnets, two masks
C 172.12.123.0/24 is instantly related, Serial0.213
R* 0.0.0.0/0 [a hundred and twenty/1] by means of 172.12.123.1, 00:00:00, Serial0.213
R3#show ip route
R one.0.0.0/8 [a hundred and twenty/1] through 172.twelve.123.1, 00:00:27, Serial0.31
R 2.0.0.0/8 [120/2] by way of 172.12.123.one, 00:00:28, Serial0.31
3.0.0.0/32 is subnetted, 1 subnets
C three.3.3.3 is right related, Loopback0
172.twelve.0.0/24 is subnetted, 1 subnets
C 172.12.123.0 is immediately connected, Serial0.31
R* 0.0.0.0/0 [120/one] through 172.12.123.1, 00:00:28, Serial0.31
As well as default route will work, considering the fact that we can ping ten.1.1.one from each R2 and R3. Since they've no other match inside their routing tables, they utilize the default route.
R2#ping 10.one.one.1
Variety escape sequence to abort.
Sending 5, one hundred-byte ICMP Echos to ten.one.one.1, timeout is 2 seconds:
!!!!!
Good results price is 100 percent (5/5), spherical-excursion min/avg/max = sixty eight/sixty eight/68 ms
R3#ping ten.1.1.one
When determining whether or not to work with a default static route or simply a default network, Understand that If you would like the routing protocol to propagate the default route, the ip default-community command will do this in your case. But if you want just the nearby router to have the default route, a static IP route is the way to go.