• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

IPV6静态路由+BFD多跳检测实现VRRP组网路由主备切换

2020-12-16 发表
  • 0关注
  • 0收藏 1952浏览
倪民 八段
粉丝:12人 关注:0人

组网及说明


如上图,SW1SW2组成vrrpSW1mastervrrp虚地址为30::10/64。部分接口改为路由口防止环路了。在此组网中可以实现,当SW1上行口g1/0/1链路中断后,路由切换至备份链路上,SW4访问vlan30下的终端用户经由SW1。若SW2上行口G1/0/2链路中断,路由切换至备份链路。

配置步骤

一、各个设备上的主要配置(地址配置略)

SW1

interface Vlan-interface30

 ipv6 address FE80::1 link-local

 ipv6 address 30::1/64

 undo ipv6 nd ra halt

 vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local

 vrrp ipv6 vrid 1 virtual-ip 30::10

 vrrp ipv6 vrid 1 priority 110

 

ipv6 route-static :: 0 100::2 preference 65

ipv6 route-static :: 0 30::2 preference 70

ipv6 route-static :: 0 3::3 bfd control-packet bfd-source 1::1

ipv6 route-static 3::3 128 10::2 preference 100

SW2

interface Vlan-interface30

 ipv6 address FE80::2 link-local

 ipv6 address 30::2/64

 vrrp ipv6 vrid 1 virtual-ip FE80::19 link-local

 vrrp ipv6 vrid 1 virtual-ip 30::10

 

ipv6 route-static :: 0 200::2 preference 65

ipv6 route-static 0::0 0 30::1 preference 70

ipv6 route-static :: 0 3::3 bfd control-packet bfd-source 2::2

ipv6 route-static 3::3 128 20::2 preference 100

 

SW3

ipv6 route-static 1::1 128 10::1

ipv6 route-static 2::2 128 20::1

ipv6 route-static 3::3 128 40::2

ipv6 route-static 30:: 64 10::1

ipv6 route-static 30:: 64 20::1

ipv6 route-static 100:: 64 10::1

ipv6 route-static 200:: 64 20::1

SW4

ipv6 route-static :: 0 100::1 preference 65

ipv6 route-static :: 0 200::1 preference 75

ipv6 route-static :: 0 1::1 bfd control-packet bfd-source 3::3

ipv6 route-static :: 0 2::2 bfd control-packet bfd-source 3::3 preference 70

ipv6 route-static 1::1 128 40::1 preference 100

ipv6 route-static 2::2 128 40::1 preference 100


二、路由切换效果

1、配置完成后,SW1SW2SW4上的路由表如下,仅列出非直连的。可以看到,vrrp虚接口只在当前master上生效。

[SW1]dis ipv6 routing-table

Destinations : 13       Routes : 13

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 3::3                                        Preference: 60

Interface  : Vlan10                                      Cost      : 0

 

Destination: 3::3/128                                    Protocol  : Static

NextHop    : 10::2                                       Preference: 100

Interface  : Vlan10                                      Cost      : 0

 

[SW2]dis ipv6 routing-table

Destinations : 12       Routes : 12

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 3::3                                        Preference: 60

Interface  : Vlan20                                      Cost      : 0

 

Destination: 3::3/128                                    Protocol  : Static

NextHop    : 20::2                                       Preference: 100

Interface  : Vlan20                                      Cost      : 0

 

[SW4]dis ipv6 routing-table

Destinations : 13       Routes : 13

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 1::1                                        Preference: 60

Interface  : Vlan40                                      Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

各个bfd会话如下:




2、SW1上行口shutdown后,BFD会话down,路由表如下。这时SW1由备份链路访问SW4,反之亦然。

[SW1]dis ipv6 routing-table

Destinations : 10       Routes : 10

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::2                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

[SW2]dis ipv6 routing-table

Destinations : 12       Routes : 12

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 3::3                                        Preference: 60

Interface  : Vlan20                                      Cost      : 0

 

 

Destination: 3::3/128                                    Protocol  : Static

NextHop    : 20::2                                       Preference: 100

Interface  : Vlan20                                      Cost      : 0

 

[SW4]dis ipv6 routing-table

Destinations : 13       Routes : 13

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::1                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

3、SW2上行口shutdown后,BFD会话down,路由表如下。SW2由备份链路访问SW4

[SW1]dis ipv6 routing-table

Destinations : 10       Routes : 10

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::2                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

[SW2]dis ipv6 routing-table

Destinations : 9        Routes : 9

Destination: ::/0                                        Protocol  : Static

NextHop    : 200::2                                      Preference: 65

Interface  : GE1/0/1                                     Cost      : 0

 

[SW4]dis ipv6 routing-table

Destinations : 13       Routes : 13

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::1                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

4、SW1SW4备份链路shutdown后,路由表如下。这时SW1经由SW2访问SW4

[SW1]dis ipv6 routing-table

Destinations : 8        Routes : 8

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 30::2                                       Preference: 70

Interface  : Vlan30                                      Cost      : 0

 

[SW2]dis ipv6 routing-table

Destinations : 9        Routes : 9

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 200::2                                      Preference: 65

Interface  : GE1/0/1                                     Cost      : 0

 

[SW4]dis ipv6 routing-table

Destinations : 11       Routes : 11

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 200::1                                      Preference: 75

Interface  : GE1/0/1                                     Cost      : 0

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

5、SW1SW4备份链路恢复,SW2SW4的备份链路down,路由表如下。这时SW2经由SW1访问SW4

[SW1]dis ipv6 routing-table

Destinations : 10       Routes : 10

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::2                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

[SW2]dis ipv6 routing-table

Destinations : 7        Routes : 7

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 30::1                                       Preference: 70

Interface  : Vlan30                                      Cost      : 0

 

[SW4]dis ipv6 routing-table

Destinations : 11       Routes : 11

 

Destination: ::/0                                        Protocol  : Static

NextHop    : 100::1                                      Preference: 65

Interface  : GE1/0/2                                     Cost      : 0

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : 40::1                                       Preference: 100

Interface  : Vlan40                                      Cost      : 0

 

配置关键点

1、注意BFD多跳检测中,静态路由的配置是需要迭代的,双方的源目地址要对应。

2、VRRP组网中,virtual ip只在master设备上生效,这时如果BFD的源选择了此虚地址,会造成BFD会话master侧up,backup侧down。

3、切换主备路由时要注意配置的各个路由的优先级。

该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作