cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1863
Views
5
Helpful
6
Replies

IOS XR Configure OSPF passive interface

prasannapdkk
Level 1
Level 1

Hello

 

I have found below comment online about ospf passive interfaces on IOS XR.

 

Command Defaultios xr, ospf, passive

If this command is not specified in interface configuration mode, then the interface adopts the passive parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the passive parameter specified for the process.

If this command is not specified at any level, then the passive parameter is disabled and OSPF updates are sent on the interface.

 

Here how to define ospf area to be passive... whats the command ?

Also then how to disable the passive under each interface ?

 

 

 

6 Replies 6

pman
Spotlight
Spotlight

Hi,

 

passive (OSPF)

To suppress the sending of Open Shortest Path First (OSPF) protocol operation on an interface, use the passive command in the appropriate mode. To remove the passive configuration, use the no form of this command.

 

RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router ospf 1
RP/0/RP0/CPU0:router(config-ospf)# area 0
RP/0/RP0/CPU0:router(config-ospf-ar)# interface POS1/0/0/2
RP/0/RP0/CPU0:router(config-ospf-ar-if)# passive
RP/0/RP0/CPU0:router(config-ospf-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospf-ar)# interface POS1/0/0/3
RP/0/RP0/CPU0:router(config-ospf-ar-if)# end

 

another one:

  router ospf 1
  router-id 1.1.1.1
  area 0
    interface Loopback0
      passive enable
    !
    interface GigabitEthernet0/0/0/2
       network point-to-point
    !
    interface GigabitEthernet0/0/0/4
      network point-to-point
    !
  !
!

Hi

 

The information you mentioned above, comes from here

 

https://www.cisco.com/c/en/us/td/docs/ios_xr_sw/iosxr_r3-7/routing/command/reference/rr37ospf.html#wp1172554 


passive (OSPF)

To suppress the sending of Open Shortest Path First (OSPF) protocol operation on an interface, use the passive command in the appropriate mode. To remove the passive configuration, use the no form of this command.

passive [disable | enable]

no passive

 

 

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# router ospf 1

RP/0/RP0/CPU0:router(config-ospf)# area 0

RP/0/RP0/CPU0:router(config-ospf-ar)# interface POS1/0/0/2

RP/0/RP0/CPU0:router(config-ospf-ar-if)# passive

 

efaults

If this command is not specified in interface configuration mode, then the interface adopts the passive parameter specified by the area.
If this command is not specified in area configuration mode, then the interface adopts the passive parameter specified for the process.
If this command is not specified at any level, then the passive parameter is disabled and OSPF updates are sent on the interface.

 

 

Hello Miranda,

 

Its ok to define the passive under the interface.

What I need is to enable passive globally in all interfaces and disable it in two or three.

 

For that is there a easy way we can do it in IOS XR.....

 

For example in IOS this is what we do to make the same. Need to know how to do the same in IOS XR

 

router ospf 1
router-id x.x.x.x
auto-cost reference-bandwidth 4294967
area 0 authentication message-digest
passive-interface default
no passive-interface GigabitEthernetx/x/x
no passive-interface GigabitEthernet y/y/y

 

Actually, you asked "Also then how to disable the passive under each interface ?"

 

passive [disable | enable]

no passive

 

But, if you have access to an IOS-XR, you can use exclamation mark and confirm if under OSPF process, there´s the passive option.

 

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# router ospf 1

RP/0/RP0/CPU0:router(config-ospf)# area 0

RP/0/RP0/CPU0:router(config-ospf)# ??????

 

 

Unfortunately I dont have a router with me right now

 

Hi @prasannapdkk ,

 

The passive command can indeed be enabled at the global ospf or area level:

 

router ospf 109
passive enable
area 0
passive enable

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)