Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

BFD Configuration

Fig.5-9 presents an example of configuring BFD supporting for OSPF4. Switch A and Switch B are located in the backbone area 0.0.0.0.




                           Figure 5-9. BFD basic configuration. 


Configuring Switch A

For switch A, configure one VLAN interface for networks 123.123.10.1/24. Also configure area 0.0.0.0, which includes networks 123.123.10.1/24 and 123.123.10.6/24, and enable BFD on OSPF4 and VLAN interface.

admin@XorPlus# set vlans vlan-id 10
admin@XorPlus# set vlans vlan-id 10 l3-interface vlan10
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@XorPlus# set vlan-interface interface vlan10 vif vlan10 address 123.123.10.1 prefix-length 24
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols ospf4 router-id 1.1.1.1
admin@XorPlus# set protocols ospf4 area 0.0.0.0 interface vlan10 vif vlan10 address 123.123.10.1 bfd disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols bfd interface vlan10 disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configuring Switch B

For switch B, configure one VLAN interface for networks 123.123.10.6/24. Also configure area 0.0.0.0, which includes networks 123.123.10.1/24 and 123.123.10.6/24, and enable BFD on OSPF4 and VLAN interface.

admin@XorPlus# set vlans vlan-id 10
admin@XorPlus# set vlans vlan-id 10 l3-interface vlan-10
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@XorPlus# set vlan-interface interface vlan-10 vif vlan-10 address 123.123.10.6 prefix-length 24
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols ospf4 router-id 2.2.2.2
admin@XorPlus# set protocols ospf4 area 0.0.0.0 interface vlan-10 vif vlan-10 address 123.123.10.6 bfd disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols bfd interface vlan-10 disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# 


Verifying the BFD Configuration

Verify the BFD configuration of a switch by checking its BFD neighbor.

admin@XorPlus# run show bfd neighbor ipv4
Detect Transmit 
Local Address Remote Address Interface State Time(ms) Interval(ms) Multiplier
--------------- --------------- --------- --------- -------- ------------ ----------
123.123.10.1 123.123.10.6 vlan10 Up 1500 500 3 
admin@XorPlus# 

Fig.5-10 presents an example of configuring BFD supporting for static route. 



Figure 5-10. BFD basicconfiguration


Configuring Switch A

For switch A, configure one VLAN interface for networks 123.123.10.1/24. Also configure static route whose next hop direct to network 123.123.10.6/24, and enable BFD on static route and VLAN interface.

admin@XorPlus# set vlans vlan-id 10
admin@XorPlus# set vlans vlan-id 10 l3-interface vlan10
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@XorPlus# set vlan-interface interface vlan10 vif vlan10 address 123.123.10.1 prefix-length 24
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols static route 200.200.10.0/24 next-hop 123.123.10.6
admin@XorPlus# set protocols static route 200.200.10.0/24 bfd true
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols bfd interface vlan10 disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus#


Configuring Switch B

For switch B, configure one VLAN interface for networks 123.123.10.6/24. Also configure static route whose next hop direct to network 123.123.10.1/24, and enable BFD on static route and VLAN interface.

admin@XorPlus# set vlans vlan-id 10
admin@XorPlus# set vlans vlan-id 10 l3-interface vlan-10
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@XorPlus# set vlan-interface interface vlan-10 vif vlan-10 address 123.123.10.6 prefix-length 24
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols static route 178.178.10.0/24 next-hop 123.123.10.1
admin@XorPlus# set protocols static route 178.178.10.0/24 bfd true
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols bfd interface vlan-10 disable false
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# 

 

Verifying the BFD Configuration

Verify the BFD configuration of a switch by checking its BFD neighbor.

admin@XorPlus# run show bfd neighbor ipv4
Detect Transmit 
Local Address Remote Address Interface State Time(ms) Interval(ms) Multiplier
--------------- --------------- --------- --------- -------- ------------ ----------
123.123.10.1 123.123.10.6 vlan10 Up 1500 500 3 
admin@XorPlus# 



  • No labels