我有兩條ipv6互聯網專線做nat66,現在需要主走一條另外一條備份,怎麼實現,Bfd是雙向的,不合用,最後是像ipv4一樣可以聯動靜態路由,檢測下一跳
我有兩條ipv6互聯網專線做nat66,現在需要主走一條另外一條備份,怎麼實現,Bfd是雙向的,不合用,最後是像ipv4一樣可以聯動靜態路由,檢測下一跳
(0)
您好,參考
· 在Switch A上配置IPv6靜態路由可以到達120::/64網段,在Switch B上配置IPv6靜態路由可以到達121::/64網段,並都使能BFD檢測功能。
· 在Switch C上配置IPv6靜態路由可以到達120::/64網段和121::/64網段。
· 當Switch A和Switch B通過L2 Switch通信的鏈路出現故障時,BFD能夠快速感知,並且切換到Switch C進行通信。
圖1-2 IPv6靜態路由與BFD聯動(直連)配置組網圖
設備 | 接口 | IPv6地址 | 設備 | 接口 | IPv6地址 |
Switch A | Vlan-int10 | 12::1/64 | Switch B | Vlan-int10 | 12::2/64 |
| Vlan-int11 | 10::102/64 |
| Vlan-int13 | 13::1/64 |
Switch C | Vlan-int11 | 10:: 100/64 |
|
|
|
| Vlan-int13 | 13::2/64 |
|
|
|
(1) 配置各接口的IPv6地址(略)
(2) 配置IPv6靜態路由和BFD
# 在Switch A上配置靜態路由,並使能BFD檢測功能,使用控製報文方式。
<SwitchA> system-view
[SwitchA] interface vlan-interface 10
[SwitchA-vlan-interface10] bfd min-control-interval 500
[SwitchA-vlan-interface10] bfd detect-multiplier 9
[SwitchA-vlan-interface10] quit
[SwitchA] ipv6 route-static 120:: 64 vlan-interface 10 12::2 bfd control-packet
[SwitchA] ipv6 route-static 120:: 64 10::100 preference 65
[SwitchA] quit
# 在Switch B上配置IPv6靜態路由,並使能BFD檢測功能,使用控製報文方式。
<SwitchB> system-view
[SwitchB] interface vlan-interface 10
[SwitchA-vlan-interface10] bfd min-control-interval 500
[SwitchB-vlan-interface10] bfd detect-multiplier 9
[SwitchB-vlan-interface10] quit
[SwitchB] ipv6 route-static 121:: 64 vlan-interface 10 12::1 bfd control-packet
[SwitchB] ipv6 route-static 121:: 64 13::2 preference 65
[SwitchB] quit
# 在Switch C上配置靜態路由。
<SwitchC> system-view
[SwitchC] ipv6 route-static 120:: 64 13::1
[SwitchC] ipv6 route-static 121:: 64 10::102
下麵以Switch A為例,Switch B和Switch A類似,不再贅述。
# 查看BFD會話,可以看到BFD會話已經創建。
<SwitchA> display bfd session
Total sessions: 1 Up sessions: 1 Init mode: Active
IPv6 session working in control packet mode:
Local Discr: 513 Remote Discr: 33
Source IP: 12::1
Destination IP: 12::2
Session State: Up Interface: Vlan10
Hold Time: 2012ms
# 查看靜態路由,可以看到Switch A經過L2 Switch到達Switch B。
<SwitchA> display ipv6 routing-table protocol static
Summary count : 1
Static Routing table status : <Active>
Summary count : 1
Destination: 120::/64 Protocol : Static
NextHop : 12::2 Preference: 60
Interface : Vlan10 Cost : 0
Direct Routing table status : <Inactive>
Summary count : 0
當Switch A和Switch B通過L2 Switch通信的鏈路出現故障時:
# 查看IPv6靜態路由,可以看到Switch A經過Switch C到達Switch B。
<SwitchA> display ipv6 routing-table protocol static
Summary count : 1
Static Routing table status : <Active>
Summary count : 1
Destination: 120::/64 Protocol : Static
NextHop : 10::100 Preference: 65
Interface : Vlan11 Cost : 0
Static Routing table status : < Inactive>
Summary count : 0
· 在Switch A上配置IPv6靜態路由可以到達120::/64網段,在Switch B上配置IPv6靜態路由可以到達121::/64網段,並都使能BFD檢測功能。
· 在Switch C和Switch D上配置IPv6靜態路由可以到達120::/64網段和121::/64網段。
· Switch A存在到Switch B的接口Loopback1(2::9/128)的路由,出接口為Vlan-interface10;Switch B存在到Switch A的接口Loopback1(1::9/128)的路由,出接口為Vlan-interface12;Switch D存在到1::9/128的路由,出接口為Vlan-interface10,存在到2::9/128的路由,出接口為Vlan-interface12。
· 當Switch A和Switch B通過Switch D通信的鏈路出現故障時,BFD能夠快速感知,並且切換到Switch C進行通信。
圖1-3 IPv6靜態路由與BFD聯動(非直連)配置組網圖
設備 | 接口 | IPv6地址 | 設備 | 接口 | IPv6地址 |
Switch A | Vlan-int10 | 12::1/64 | Switch B | Vlan-int12 | 11::2/64 |
| Vlan-int11 | 10::102/64 |
| Vlan-int13 | 13::1/64 |
| Loop1 | 1::9/128 |
| Loop1 | 2::9/128 |
Switch C | Vlan-int11 | 10::100/64 | Switch D | Vlan-int10 | 12::2/64 |
| Vlan-int13 | 13::2/64 |
| Vlan-int12 | 11::1/64 |
(1) 配置各接口的IPv6地址(略)
(2) 配置IPv6靜態路由和BFD
# 在Switch A上配置IPv6靜態路由,並使能BFD檢測功能,使用控製報文方式。
<SwitchA> system-view
[SwitchA] bfd multi-hop min-control-interval 500
[SwitchA] bfd multi-hop detect-multiplier 9
[SwitchA] ipv6 route-static 120:: 64 2::9 bfd control-packet bfd-source 1::9
[SwitchA] ipv6 route-static 120:: 64 10::100 preference 65
[SwitchA] ipv6 route-static 2::9 128 12::2
[SwitchA] quit
# 在Switch B上配置IPv6靜態路由,並使能BFD檢測功能,使用控製報文方式。
<SwitchB> system-view
[SwitchA] bfd multi-hop min-control-interval 500
[SwitchB] bfd multi-hop detect-multiplier 9
[SwitchB] ipv6 route-static 121:: 64 1::9 bfd control-packet bfd-source 2::9
[SwitchB] ipv6 route-static 121:: 64 13::2 preference 65
[SwitchB] ipv6 route-static 1::9 128 11::1
[SwitchB] quit
# 在Switch C上配置靜態路由。
<SwitchC> system-view
[SwitchC] ipv6 route-static 120:: 64 13::1
[SwitchC] ipv6 route-static 121:: 64 10::102
# 在Switch D上配置靜態路由。
<SwitchD> system-view
[SwitchD] ipv6 route-static 120:: 64 11::2
[SwitchD] ipv6 route-static 121:: 64 12::1
[SwitchD] ipv6 route-static 2::9 128 11::2
[SwitchD] ipv6 route-static 1::9 128 12::1
下麵以Switch A為例,Switch B和Switch A類似,不再贅述。
# 查看BFD會話,可以看到BFD會話已經創建。
<SwitchA> display bfd session
Total sessions: 1 Up sessions: 1 Init mode: Active
IPv6 session working in control packet mode:
Local Discr: 513 Remote Discr: 33
Source IP: 1::9
Destination IP: 2::9
Session State: Up Interface: N/A
Hold Time: 2012ms
# 查看IPv6靜態路由,可以看到Switch A經過Switch D到達Switch B。
<SwitchA> display ipv6 routing-table protocol static
Summary count : 1
Static Routing table status : <Active>
Summary count : 1
Destination: 120::/64 Protocol : Static
NextHop : 2::9 Preference: 60
Interface : Vlan10 Cost : 0
Static Routing table status : <Inactive>
Summary count : 0
當Switch A和Switch B通過Switch D通信的鏈路出現故障時:
# 查看IPv6靜態路由,可以看到Switch A經過Switch C到達Switch B。
<SwitchA> display ipv6 routing-table protocol static
Summary count : 1
Static Routing table status : <Active>
Summary count : 1
Destination: 120::/64 Protocol : Static
NextHop : 10::100 Preference: 65
Interface : Vlan11 Cost : 0
Static Routing table status : <Inactive>
Summary count : 0
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論