05-26-2022 04:05 AM
Hello
I have found below comment online about ospf passive interfaces on IOS XR.
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 ?
05-26-2022 04:51 AM - edited 05-26-2022 04:57 AM
Hi,
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
!
!
!
05-26-2022 04:54 AM
Hi
The information you mentioned above, comes from here
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
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.
05-26-2022 06:01 AM
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
05-26-2022 06:11 AM
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)# ??????
05-26-2022 07:43 AM
Unfortunately I dont have a router with me right now
05-26-2022 08:40 AM
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,
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