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

Question passive-interface default

news2010a
Level 3
Level 3

Hi, imagine you have this requirement:

"Configure OSPF on the two routers. Updates should be advertised only out of the interfaces that are indicated in the IGP topology".

I understand I would advertise the respective interfaces which are indicated as part of a given OSPF area (for example, under the "router ospf 1" process, I would do network "192.168.1.1 0.0.0.0 area 0" which is associated with a particular interface Fa0/1 on the router.

However, does the requirement also means that I should do under the ospf process:

passive-interface default

no passive-interface fa0/1

It seems to me that is not necessary to enter "passive-interface default".


Please confirm.

2 Replies 2

skarthic
Cisco Employee
Cisco Employee

Passive interface default is majorly used when you have multiple connected subnets with which you dont have any OSPF neighbors. So instead of adding a "passive interface " for each interface, we use the passive interface default statement..

This will make all the interfaces as passive (doesnot send OSPF updates and hellos).

However since we have some interfaces in which we have neighbors, we need to disable the passive interface option.. Hence we use the "no passive interface " on interfaces where we have OSPF neighbors..

Hope this helps.

Subramaniya.

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer


The Author of this posting offers the information  contained within this posting without consideration and with the  reader's understanding that there's no implied or expressed suitability  or fitness for any purpose.  Information provided is for informational  purposes only and should not be construed as rendering professional  advice of any kind.  Usage of this posting's information is solely at  reader's own risk.


Liability Disclaimer


In no event shall Author be liable for any damages  whatsoever (including, without limitation, damages for loss of use, data  or profit) arising out of the use or inability to use the posting's  information even if Author has been advised of the possibility of such  damage.


Posting


If you have two interfaces, whose subnets you want to advertise to the OSPF topology (as internal OSPF routes), you'll need to insure their IP addresses are both "covered" by one or more network statements.  OSPF, by default, will transmit and look for OSPF hellos on those interfaces too.  Since you note you only want one interface, of the two to do this, either you must define the interface you don't want OSPF hello processing on as passive, or change the default to make all OSPF interfaces passive, and then define the interface you do want OSPF hello processing on as not-passive.

Either approach obtains the same results but depending on the ratio of passive to non-passive interfaces, the number of configuration statements can vary considerably.