Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Configuring BFD for OSPFv3 on a virtual interface by using IPv6 addressing

To configure BFD for OSPFv3 neighbors on a virtual interface, you must first configure the OSPFv3 and the virtual interface for the two neighbors.

Consider a scenario in which you have two systems, R1 and R2. R1 and R2 share an OSPFv3 session. R1 and R2 are on a physical interface named dp0s5 which also has a virtual interface configured for the VLAN identifier of vlan-51. The following list provides the addresses of R1 and R2.
  • R1 loopback address—1:1:1::1/128
  • Data plane interface name—dp0s5
  • VLAN identifier—vlan-51
  • R1 interface facing vif 51—10:1:1::1/64
  • R2 interface facing vif 51—10:1:1::2/64
  • R2 loopback address—2:2:2::2/128
  • R1 link local address—fe80::6061:ff:fe00:b7d5
  • R2 link local address—fe80::5054:ff:fe00:b6d5
Figure 1. Configuring BFD for OSPFv3 on a virtual interface by using IPv6 addressing
Note: For OSPFv3 configurations, you must use the link local addresses for R1 and R2 for source and destination.

To configure a BFD session between R1 and R2, perform the following steps in configuration mode.

Table 1. Configuring BFD for OSPFv3 on a Virtual Interface by Using IPv6 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 destination address of R2 and the source address of R1.
Note: You can also associate the BFD parameter template with the interface by using the set interface dataplane vif <vf_id> bfd template <template-name> command.
vyatta@R1#set protocols bfd destination fe80::5054:ff:fe00:b6d5 source fe80::6061:ff:fe00:b7d5 template test
R1 Register R2 as a BFD neighbor.
vyatta@R1#set interfaces dataplane dp0s4 vif 51 ipv6 ospfv3 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 {
                ipv6 {
                        ospfv3 {
                                fall-over {
                                        bfd
                                }
                        }
                }
                vif 51 {
                        address 10:1:1::1/64
                        ipv6 {
                                ospfv3 {
                                        fall-over {
                                                bfd
                                        }
                                }
                        }
                        vlan 51
                }
        }
        loopback lo {
                address 1:1:1::1/128
        }
 }



vyatta@R1#show protocols
 protocols {
        bfd {
                destination fe80::5054:ff:fe00:b6d5  {
                        source fe80::6061:ff:fe00:b7d5 {
                                template test
                        }
                }
                template test{
		                            auth {
			                             simple {
				                                   key "*******"
                       }
                }
                minimum-rx 300
                minimum-tx 300
                multiplier 3
        }

        ospfv3 {
                area 1 {
                        network 10:1:1::0/64
                }
                redistribute {
                        connected
                }
        }
 }


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 vif <vf_id> bfd template <template-name> command.
vyatta@R2#set protocols bfd destination fe80::6061:ff:fe00:b7d5 source fe80::5054:ff:fe00:b6d5 template test
R2 Register R1 as a BFD neighbor.
vyatta@R2#set interfaces dataplane dp0s4 vif 51 ipv6 ospfv3 fall-over bfd
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 {
                ipv6 {
                        ospfv3 {
                                fall-over {
                                        bfd
                                }
                        }
                }
                vif 51 {
                        address 10:1:1::2/64
                        ipv6 {
                                ospfv3 {
                                        fall-over {
                                                bfd
                                        }
                                }
                        }
                        vlan 51
                }
        }
        loopback lo {
                address 2:2:2::2/128
        }
 }



vyatta@R2#show protocols
 protocols {
        bfd {
                destination fe80::6061:ff:fe00:b7d5 {
                        source fe80::5054:ff:fe00:b6d5 {
                                template test
                        }
                }
                template test{
		                            auth {
			                             simple {
				                                   key "*******"
                       }
                }
                minimum-rx 300
                minimum-tx 300
                multiplier 3
        }

        ospfv3 {
                area 1 {
                        network 10:1:1::0/64
                }
                redistribute {
                        connected
                }
        }
 }