home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Configuring BFD for OSPFv2 on a physical interface by using IPv4 addressing

To configure BFD for all OSPFv2 neighbors on a physical interface, you must first configure OSPFv2 for all the neighbors.

Consider a scenario in which you have two systems, R1 and R2. R1 and R2 share an OSPFv2 session, as illustrated in the reference network diagram. The following list provides the addresses of R1 and R2.
  • R1 loopback address—1.1.1.1
  • R1 interface address—10.10.10.1
  • R2 loopback address—2.2.2.2
  • R2 interface address—10.10.10.2.
  • R1 and R2 connected physical interface—dp0s5
Figure 1. Configuring BFD for OSPFv2 on a physical interface by using IPv4 addressing

To configure a BFD session between R1 and R2, perform the following steps in configuration mode. BFD for OSPFv2 is configured on the physical interface.

Table 1. Configuring BFD for OSPFv2 on a Physical Interface by Using IPv4 Addressing
Router Step Command
R1 Create a BFD template called test. See section Configuring the BFD template.
R1 Associate the BFD test template with the interface
vyatta@R1# set interface dataplane dp0s5 bfd template test
R1 Start a BFD instance on the interface.
vyatta@R1# set interface dataplane dp0s5 ip ospf fall-over bfd
R1 Commit the configuration.
vyatta@R1# commit
R1 Save the configuration.
vyatta@R1# save
R1 Display the configuration.
vyatta@R1# show interfaces
interfaces {
        dataplane dp0s5 {
                address dhcp
        }
        dataplane dp0s5 {
                address 10.10.10.1
                ip {
                        ospf {
                                fall-over {
                                        bfd
                                }
                        }
                }
        }
vyatta@R1# show protocols bfd 
 bfd {
        destination 10.10.10.2 {
                source 10.10.10.1 {
                        template test
                }
        }
        template test {
                auth {
                        simple {
                                key "********"
                        }
                }
                minimum-rx 300
                minimum-tx 300
                multiplier 3
        }
 }

R2 Create a BFD template called test. See section Configuring the BFD template.
R2 Associate the BFD test template with the destination address of R1 and the source address of R2.
Note: You can also associate the BFD parameter template with the interface by using the set interface dataplane <if_name> bfd template <template_name> command.
vyatta@R2# set protocols bfd destination 10.10.10.1 source 10.10.10.2 template test
R2 Commit the configuration.
vyatta@R2# commit
R2 Save the configuration.
vyatta@R2# save
R2 Display the configuration.
vyatta@R2# show interfaces
interfaces {
        dataplane dp0s5 {
                address dhcp
        }
        dataplane dp0s5 {
                address 10.10.10.2
                ip {
                        ospf {
                                fall-over {
                                        bfd
                                }
                        }
                }
        }

vyatta@R2# show protocols bfd 
 bfd {
        destination 10.10.10.1 {
                source 10.10.10.2 {
                        template test
                }
        }
        template test {
                auth {
                        simple {
                                key "********"
                        }
                }
                minimum-rx 300
                minimum-tx 300
                multiplier 3
        }
 }