ā03-09-2011 05:05 AM - edited ā03-06-2019 03:59 PM
Hi every body
i performed a a lab to see how ospf interact with ip default-network command
My set up was as follows
R1------R2----------R3--sw
All three routers are connected by fastethernet and are in area 0
R3 's int connected to sw has 10.10.10.10/24
Following observations were made:
R2
ip default-network 10.10.10.0
ip default-network 10.0.0.0
router ospf 1
redistribute static
the goal is to advertise 10.0.0.0 as default network to R1 using ip default-network command, i found that R2 will not advertise it as default route to R1.
i also tried to ip default-network command on R3 in different scenarios, such as directly connected unsunetted route, directly sunetted route, ospf learned unsubnetted route, ospf learned subnetted route and each case i used the ip deffault-network command ( yes for subnetted routes, i did use ip defaultnetwork command twice, also redistribute the static routes created into ospf). The end result i found, ip default-network command does not have any influence in ospf except for one: when ip default-network is configured on local router and it references the ospf learned route whether subnetted or unsubnetted, it sets the default gateway on that router only. It does not advertise the default route or help other routers to set their default route dynamically.
My conclussion , only ip default-network command can not be used in ospf enviroment to allow routers learn default route dynamically.
I just want to verify if my understanding is correct.
thanks
Solved! Go to Solution.
ā03-09-2011 06:39 AM
Hi Sarah,
You are completely correct. The ip default-network command does not influence any of the OSPF operations. You can locally declare an OSPF-learned network as the default network but this will not be propagated via OSPF.
You may be interested in checking the following document for additional information:
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml#protocols
Best regards,
Peter
ā03-09-2011 06:39 AM
Hi Sarah,
You are completely correct. The ip default-network command does not influence any of the OSPF operations. You can locally declare an OSPF-learned network as the default network but this will not be propagated via OSPF.
You may be interested in checking the following document for additional information:
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml#protocols
Best regards,
Peter
ā03-09-2011 12:55 PM
thanks for the link Peter.
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