我有两条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)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论