Configuring BFD for OSPFv2 on a virtual interface by using IPv4 addressing
To configure BFD for OSPFv2 neighbors on a virtual interface (VIF), you must first configure the OSPF and VIF for the two neighbors.
vlan-51
. The following list provides the addresses of R1 and R2. - R1 loopback address—
1.1.1.1/32
- Physical data plane address—
dp0s5
- Virtual link between R1 and R2—
vif 51
- VLAN identifier—
vlan-51
- R1 interface facing vif 51—
10.1.1.1/24
- R2 interface facing vif 51—
10.1.1.2/24
- R2 loopback address—
2.2.2.2/32
To configure a BFD session between R1 and R2, perform the following steps in configuration mode.
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 |
|
R1 | Register R2 as a BFD neighbor. |
|
R1 | Commit the configuration. |
|
R1 | Save the configuration. |
|
R1 | Display the configuration. |
|
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.
|
|
R2 | Register R1 as a BFD neighbor. |
|
R2 | Commit the configuration. |
|
R2 | Save the configuration. |
|
R2 | Display the configuration. |
|