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

MSR路由器做VRRP跨VPN实例联动Track、NQA典型配置

2019-05-10 发表
  • 0关注
  • 1收藏 2511浏览
单畅 六段
粉丝:1人 关注:0人

组网及说明

RTA的GE0/1和RTB的GE0/1口是内网口,在vpn-instance 1中,做VRRP,RTA为VRRP的主。RTC是公网设备,RTA的GE0/0和RTB的GE0/0是公网口。


配置步骤

RTA配置

#

 version 7.1.075, R0615P20

#

 sysname RTA

#

ip vpn-instance 1

#

track 1 nqa entry admin test reaction 1

#

nqa entry admin test

 type icmp-echo

  destination ip 2.1.1.2

  frequency 100

  reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only

#

 nqa schedule admin test start-time now lifetime forever

#

interface GigabitEthernet0/0

 port link-mode route

 combo enable copper

 ip address 2.1.1.1 255.255.255.0

#

interface GigabitEthernet0/1

 port link-mode route

 combo enable copper

 ip binding vpn-instance 1

 ip address 1.1.1.1 255.255.255.0

 vrrp vrid 1 virtual-ip 1.1.1.100

vrrp vrid 1 priority 100

 vrrp vrid 1 timer advertise 500

 vrrp vrid 1 authentication-mode simple cipher $c$3$mLWX3F+mQ0ODds4PXs6FSPq2xnfEVXSG

 vrrp vrid 1 preempt-mode delay 5000

 vrrp vrid 1 track 1 priority reduced 30

#

 

RTB配置

#

 version 7.1.075, R0615P11

#

 sysname RTB

#

ip vpn-instance 1

#

interface GigabitEthernet0/0

 port link-mode route

 combo enable copper

 ip address 2.1.2.1 255.255.255.0

#

interface GigabitEthernet0/1

 port link-mode route

 combo enable copper

 ip binding vpn-instance 1

 ip address 1.1.1.2 255.255.255.0

 vrrp vrid 1 virtual-ip 1.1.1.100

 vrrp vrid 1 timer advertise 500

 vrrp vrid 1 authentication-mode simple cipher $c$3$NrVJ3aUOvYRZqUOdM1UE/yOzn/Z1rxKs

 vrrp vrid 1 priority 80

 vrrp vrid 1 preempt-mode delay 5000

 

[RTA]dis vrrp

IPv4 virtual router information:

 Running mode : Standard

 Total number of virtual routers : 1

 Interface          VRID  State       Running Adver     Auth     Virtual

                                      pri     timer(cs) type     IP

 ---------------------------------------------------------------------

 GE0/1              1     Master      100     500       Simple   1.1.1.100

[RTB]dis vrrp

IPv4 virtual router information:

 Running mode : Standard

 Total number of virtual routers : 1

 Interface          VRID  State       Running Adver     Auth     Virtual

                                      pri     timer(cs) type     IP

 ---------------------------------------------------------------------

 GE0/1              1     Backup      80      500       Simple   1.1.1.100

 

RTA上连链路断了后,RTA上的日志和debug信息:

%May 10 11:04:39:263 2019 1 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/0 changed to down.

%May 10 11:04:39:263 2019 1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to down.

q%May 10 11:04:39:729 2019 1 NQA/6/NQA_ENTRY_PROBE_RESULT: Reaction entry 1 of NQA entry admin-name admin operation-tag test: probe-fail.//链路断, NQA检测失败

 

*May 10 11:05:29:039 2019 1 VRRP4/7/Packet:

Sent Advertisement message from GigabitEthernet0/1

VRID: 1  Pri: 70  Adver timer: 500 centisecs//RTA优先级变为70,并向RTB发送优先级为70vrrp报文

 

*May 10 11:05:34:039 2019 1 VRRP4/7/Packet:

Sent Advertisement message from GigabitEthernet0/1

VRID: 1  Pri: 70  Adver timer: 500 centisecs

 

*May 10 11:05:36:326 2019 1 VRRP4/7/Packet: Received Advertisement message from 1.1.1.2 on GigabitEthernet0/1

VRID: 1  Pri: 80  Adver timer: 500 centisecs//收到RTB发送的优先级为80vrrp报文

 

%May 10 11:05:36:326 2019 1 VRRP4/6/VRRP_STATUS_CHANGE:

The status of IPv4 virtual router 1 (configured on GigabitEthernet0/1) changed from Master to Backup: VRRP packet received.//VRRP主由RTA切换为RTB

 

*May 10 11:05:41:610 2019 1 VRRP4/7/Packet: Received Advertisement message from 1.1.1.2 on GigabitEthernet0/1

VRID: 1  Pri: 80  Adver timer: 500 centisecs

 

此时看vrrp状态

[RTA]dis vrrp

IPv4 virtual router information:

 Running mode : Standard

 Total number of virtual routers : 1

 Interface          VRID  State       Running Adver     Auth     Virtual

                                      pri     timer(cs) type     IP

 ---------------------------------------------------------------------

 GE0/1              1     Backup      70      500       Simple   1.1.1.100

[RTB]

 

 

链路恢复后,RTA上的日志和debug

%May 10 11:08:06:453 2019 1 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/0 changed to up.

%May 10 11:08:06:453 2019 1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to up.

q%May 10 11:08:06:540 2019 1 NQA/6/NQA_ENTRY_PROBE_RESULT: Reaction entry 1 of NQA entry admin-name admin operation-tag test: probe-pass.//链路恢复,NQA检测成功

*May 10 11:08:56:819 2019 1 VRRP4/7/Packet: Received Advertisement message from 1.1.1.2 on GigabitEthernet0/1

VRID: 1  Pri: 80  Adver timer: 500 centisecs//刚开始还是收到RTB发送的优先级为80vrrp报文

 

*May 10 11:09:02:136 2019 1 VRRP4/7/Packet: Received Advertisement message from 1.1.1.2 on GigabitEthernet0/1

VRID: 1  Pri: 80  Adver timer: 500 centisecs

 

%May 10 11:09:02:240 2019 1 VRRP4/6/VRRP_STATUS_CHANGE:

The status of IPv4 virtual router 1 (configured on GigabitEthernet0/1) changed from Backup to Master: Preempt.//RTA由备切换为主

 

*May 10 11:09:02:240 2019 1 VRRP4/7/Packet:

Sent Advertisement message from GigabitEthernet0/1

VRID: 1  Pri: 100  Adver timer: 500 centisecs//RTB发送优先级为100vrrp报文

 [RTA]dis vrrp

IPv4 virtual router information:

 Running mode : Standard

 Total number of virtual routers : 1

 Interface          VRID  State       Running Adver     Auth     Virtual

                                      pri     timer(cs) type     IP

 ---------------------------------------------------------------------

 GE0/1              1     Master      100     500       Simple   1.1.1.100

[RTB]dis vrrp

IPv4 virtual router information:

 Running mode : Standard

 Total number of virtual routers : 1

 Interface          VRID  State       Running Adver     Auth     Virtual

                                      pri     timer(cs) type     IP

 ---------------------------------------------------------------------

 GE0/1              1     Backup      80      500       Simple   1.1.1.100


配置关键点

1、接口绑定相同VPN实例,其他配置和普通VRRP一样;

2、配置优先级要保证,NQA检测失败后主设备的优先级比备设备低,从而实现VRRP的切换;

3、这个案例证明,VRRP组网中,接口在不同VPN实例,跨VPN实例进行Track联动NQA检测,是可以生效的。

该案例对您是否有帮助:

您的评价:1

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

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

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

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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