cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1948
Views
0
Helpful
2
Replies

ospf and ip default-network command

sarahr202
Level 5
Level 5

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

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

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

thanks for the link Peter.