OC BFD
Configuring BFD Intervals
Configuring BFD Intervals
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<bfd xmlns="http://openconfig.net/yang/bfd">
<interfaces>
<interface>
<id>eth1/45</id>
<config>
<local-address>1.1.1.1</local-address>
<desired-minimum-tx-interval>60000</desired-minimum-tx-interval>
<required-minimum-receive>60000</required-minimum-receive>
<detection-multiplier>10</detection-multiplier>
</config>
</interface>
</interfaces>
</bfd>
</config>
</edit-config>
</rpc>
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right.
interface Ethernet1/45
bfd interval 60 min_rx 60 multiplier 10
bfd local-address 1.1.1.1
Configuring Micro BFD
Configuring Micro BFD
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<bfd xmlns="http://openconfig.net/yang/bfd">
<interfaces>
<interface>
<id>po10</id>
<config>
<enable-per-member-link>true</enable-per-member-link>
</config>
<micro-bfd-sessions>
<micro-bfd-session>
<member-interface>0</member-interface>
<config>
<remote-address>2.2.2.2</remote-address>
</config>
</micro-bfd-session>
</micro-bfd-sessions>
</interface>
</interfaces>
</bfd>
</config>
</edit-config>
</rpc>
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right.
interface port-channel10
port-channel bfd track-member-link
port-channel bfd destination 2.2.2.2
Configuring BFD With Static Client
Configuring BFD With Static Client
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>default</name>
<protocols>
<protocol>
<identifier>STATIC</identifier>
<name>DEFAULT</name>
<static-routes>
<static>
<prefix>1.1.1.0/24</prefix>
<next-hops>
<next-hop>
<index>eth1/45+1.1.1.1+</index>
<config>
<next-hop>1.1.1.1</next-hop>
</config>
<interface-ref>
<config>
<interface>eth1/45</interface>
</config>
</interface-ref>
<enable-bfd xmlns="http://openconfig.net/yang/bfd">
<config>
<enabled>true</enabled>
</config>
</enable-bfd>
</next-hop>
</next-hops>
</static>
</static-routes>
</protocol>
</protocols>
</network-instance>
</network-instances>
</config>
</edit-config>
</rpc>
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right.
ip route 1.1.1.0/24 Ethernet1/45 1.1.1.1
ip route static bfd Ethernet1/45 1.1.1.1
Configuring BFD With BGP
Configuring BFD With BGP
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>default</name>
<protocols>
<protocol>
<identifier>BGP</identifier>
<name>bgp</name>
<bgp>
<global>
<config>
<as>100</as>
</config>
</global>
<neighbors>
<neighbor>
<neighbor-address>1.1.1.1</neighbor-address>
<enable-bfd xmlns="http://openconfig.net/yang/bfd">
<config>
<enabled>true</enabled>
</config>
</enable-bfd>
</neighbor>
</neighbors>
</bgp>
</protocol>
</protocols>
</network-instance>
</network-instances>
</config>
</edit-config>
</rpc> client:
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right.
router bgp 100
neighbor 1.1.1.1
bfd
Querying All BFD Sessions
Querying All BFD Sessions
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get>
<filter>
<bfd xmlns="http://openconfig.net/yang/bfd"/>
</filter>
</get>
</rpc>
Note:
In Cisco NX-OS releases earlier than Release 9.3(6), member sessions of a port-channel interface (MicroBFD sessions) are not displayed due to a mismatch between OpenConfig and Cisco Nexus BFD design. However, you can still retrieve the configuration and operational data using the port-channel interface and the specific member interface.
This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right.
show bfd neighbors