cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1685
Views
0
Helpful
4
Replies
Highlighted
Beginner

Nexus OSPF passive interface

I have Cisco Nexus 9396PX switch and running OSPF configuration and now i want to tell all switch interface to not participate in ospf adjacency except only specific interface, so i there any global command to tell all interface in passive. 

 

Here is my config, only eth2/11 and eth2/12 are participating in ospf routing but i want to make sure it does not send OSPF update to all  48x10GE  (all other 10G ports) in that case do i need to do  "ip ospf passive-interface"  on all interface?

 

N9K# sh run ospf

!Command: show running-config ospf
!Time: Thu Apr 26 15:22:04 2018

version 7.0(3)I4(7)
feature ospf

router ospf 100
  router-id 192.168.255.19
  default-information originate

interface Ethernet2/11
  ip router ospf 100 area 0.0.0.0

interface Ethernet2/12
  ip router ospf 100 area 0.0.0.0

 

Everyone's tags (3)
4 REPLIES 4
VIP Expert

Re: Nexus OSPF passive interface

No, you just need it for e2/11 and e2/12.

HTH

Beginner

Re: Nexus OSPF passive interface

I didn't get it, You are saying i should set `passive-interface default` in ospf config and tell e2/11 & e2/12 to "no ip ospf passive-interface" ?

In current config for testing i did "debug ip ospf hello" and found its just sending "hello" on e2/11 & e2/12 so look like i don't need do any passive-interface config, am i right?
VIP Expert

Re: Nexus OSPF passive interface

The easiest way to do this is by adding 

ip ospf passive-interface

to both e2/11 & e2/12 

So, neither interface with form adjacency.

You can also do it the other way too by adding 

 

passive-interface default to OSPF and then add 

"no ip ospf passive-interface" to each interface 

but I like the first option.

HTH

 

 

 

 

Beginner

Re: Nexus OSPF passive interface

Why do you think first option is best?

"ip ospf passive-interface both e2/11 & e2/12" This command stop OSFP on both interface, in my case i want both interface run OSFP process on e2/11 & e2/12 and stop OSPF on all other interface.

I think second method would be best default OSFP default and do "no ip ospf passive-interface" on e2/11 & e2/12
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards