01-11-2009 03:23 PM - edited 03-06-2019 03:22 AM
Is it needed to set a default route, i.e:
ip route 0.0.0.0 0.0.0.0 ISP_Address or Exit_interface
before issuing a default network command:
ip default-network subnet_number_of_connection_to_ISP
Or it is sufficient enough to let only the "ip default-network ..."?
Solved! Go to Solution.
01-12-2009 10:29 AM
01-11-2009 04:03 PM
Please refer to the documentation and look under examples on the differences while performing either option:
http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_pi1.html#wp1012319
HTH,
__
Edison.
01-11-2009 04:34 PM
Could you give me some more details, as I miss the difference?
Ex:
1) If a router has an interface declared with IP@ 10.10.0.2/16 connected to another router with IP@10.10.0.1, what is the difference between:
a)ip route 0.0.0.0 0.0.0.0 10.10.0.1
ip default-network 10.10.0.0
and
b)ip default-network 10.10.0.0
2) If a router has no directly connected interface in the 10.10.0.0 subnet, what is the difference between the 2 cases listed above?
01-11-2009 05:16 PM
As per your example, the second option will only generate a default route when 10.10.0.0/16 is in the routing table.
The first option is generating a default route with the Quad 0 statement (first line of the command). The second line will only generate a default route if 10.10.0.0/16 is in the routing table so you need ip route 10.10.0.0 255.255.0.0 ISP_Gateway for the second line to work as intended.
__
Edison.
Please rate helpful posts
01-12-2009 02:09 AM
I hope I get it right, please correct me if I'm wrong:
1) There is no difference between the cases a) and b), the same router behavior will be observed in both cases
2) Case b) won't work as intended, i.e the default network won't be advertised nor used as a default route. However, it could work but only in case additionally there is a static route (not a default route) towards that default network defined. That is to say for point 2) if we use a default route or a static route together with the "ip default-network" won't make any difference.
01-12-2009 06:10 AM
Basically a conditional advertisement of a default route, the default network command - that is.
It will advertise the Quad 0 to the rest of devices only when the default network is on the router's routing table.
Inserting a Quad 0 statement won't force a default network Quad 0 origination but the static Quad 0 on itself is doing it.
Keep in mind, the default network send the default route advertisement by using an IGP while the static route needs to be manually redistributed into the IGP for advertisement.
HTH,
__
Edison.
01-12-2009 10:23 AM
Edison, sorry I didn't really catch the exact meaning...my level is quite basic, just started to read the CCNA books.
Could you please acknowledge/deny directly the statements I made in my previous post?
Thanks.
01-12-2009 10:29 AM
Acknowledged...
I wanted to expand on what you wrote.
__
Edison.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide