Configuring Association Between a BFD Session and an Interface to Trigger the Associated Interface in Down State
Pre-configuration Tasks
Before configuring association between a BFD session and an interface, create a BFD session.
Procedure
- Run system-view
The system view is displayed.
- Run oam-mgr
The OAM management view is displayed.
- Run one of the following commands as required.
Run oam-bind ingress bfd-session bfd-session-id trigger if-down egress interface interface-type interface-number
A BFD session is configured to report faults to an interface.
By default, a BFD session is not enabled to report faults to an interface.
When a BFD session detects a fault, the physical status of the interface bound to the BFD session becomes Down.
Run oam-bind ingress interface interface-type interface-number egress bfd-session bfd-session-id trigger if-down
An interface is configured to report faults to a BFD session.
When an interface becomes Down, the OAM management module sends a fault notification message to the BFD session bound to the interface. Then the fault notification message is sent to the remote device through the BFD session.
By default, an interface is not enabled to report faults to a BFD session.
Run oam-bind bfd-session bfd-session-id trigger if-down interface interface-type interface-number
The BFD session and the interface are configured to report faults to each other.
By default, a BFD session and an interface are not enabled to report faults to each other.
If the oam-bind bfd-session bfd-session-id trigger if-down interface interface-type interface-number command is run, the oam-bind ingress bfd-session bfd-session-id trigger if-down egress interface interface-type interface-number and oam-bind ingress interface interface-type interface-number egress bfd-session bfd-session-id trigger if-down commands will be displayed in the configuration file.
The physical interface associated with BFD cannot be the interface of the BFD link. Otherwise, a link deadlock occurs.