華爲BFD可靠性配置

雙向轉發檢測BFD(Bidirectional Forwarding Detection)是一種全網統一的檢測機制,用於快速檢測、
監控網絡中鏈路或者IP路由的轉發連通情況。此處列舉了BFD與靜態路由聯動配置,以及BFD與ospf聯動配置。網絡

實驗拓撲圖

華爲BFD可靠性配置

1、BFD與靜態路由聯動配置

(1)ip地址的配置session

R1:
sys
sysn R1
inter g0/0/1
ip address 10.0.13.1 24
inter g0/0/0
ip address 10.0.12.1 24
quit

R2:
sys
sysn R2
inter g0/0/0
ip address 10.0.13.13 24
quit

R3:
sys
sysn R3
inter g0/0/0
ip address 10.0.12.12 24
quit

(2)在R2和R3上配置靜態路由實現通訊ide

R2:
ip route-static 10.0.12.0  24  10.0.13.1   

R3:
ip route-static 10.0.13.0  24  10.0.12.1

(3)在R1和R2路徑上啓用BFD配置,檢測R1到R2接口ui

R1:
[R1]bfd     //啓用BFD配置
[R1-bfd]quit
[R1]bfd 1 bind peer-ip 10.0.13.13 source-ip 10.0.13.1 auto  //建立BFD會話綁定信息,
並進入BFD會話視圖。
[R1-bfd-session-1]commit  //提交BFD會話配置
[R1-bfd-session-1]quit

R2:
[R2]bfd
[R2-bfd]quit
[R2]bfd 1 bind peer-ip 10.0.13.1 source-ip 10.0.13.13 auto 
[R2-bfd-session-1]commit
[R2-bfd-session-1]quit

(4)檢查BFD會話信息code

[R1]display bfd session all

華爲BFD可靠性配置

(5)在R1上配置靜態路由並聯動BFD:blog

[R1]  ip route-static 0.0.0.0 0.0.0.0 10.0.13.13 track bfd-session 1'

此時,靜態路由與BFD的聯動已配置完成,bfd能夠快速檢測、監控網絡中鏈路或者IP路由的轉發連通情況。接口

2、BFD與OSPF聯動配置

(1)刪除靜態路由、bfdip

R1:
undo ip route-static 0.0.0.0 0.0.0.0 10.0.13.13
undo ip route-static 0.0.0.0 0.0.0.0 10.0.12.12
undo bfd 1 

R2:
undo ip route-static 10.0.12.0 255.255.255.0 10.0.13.1
undo bfd 1 

R3:
undo ip route-static 10.0.13.0 255.255.255.0 10.0.12.1
undo bfd 1

(2)配置ospf協議實現路由通訊路由

R1: 

ospf 1 
area 0.0.0.0 
network 10.0.12.0 0.0.0.255 
network 10.0.13.0 0.0.0.255
return

R2:
sys
ospf 1 
area 0.0.0.0 
network 10.0.13.0 0.0.0.255 
return

R3:
sys
ospf 1 
area 0.0.0.0 
network 10.0.12.0 0.0.0.255 
area 0.0.0.1 
return

(3)配置bfd與ospf聯動
配置 BFD session須要在系統全局下開啓BFD,而且在OSPF視圖下啓用聯動BFD。it

R1:
sys
bfd                               // 啓用bfd
quit
ospf 1
bfd all-interfaces enable    //在osp視圖下啓用聯動bfd
return

R2:
sys
bfd
quit
ospf 1
bfd all-interfaces enable 
return

(4)
dis bfd session all 查看bfd會話
華爲BFD可靠性配置

相關文章
相關標籤/搜索