S7703因未创建VLAN导致VRRP无法建立
问题描述
用户2台S7703配置VRRP主备组网,配置完成后VLANif24至VLANif30的VRRP业务始终无法建立,在两端设备上均显示VRRP状态为master。
处理过程
1.核实主备S7703 VRRP的配置。
主S7703配置如下:
interface Vlanif24
ip address YY.4.36.62 255.255.255.192
vrrp vrid 15 virtual-ip YY.4.36.62
vrrp vrid 15 priority 110
vrrp vrid 15 track interface Eth-Trunk1 reduced 20
#
interface Vlanif25
ip address YY.4.36.126 255.255.255.192
vrrp vrid 16 virtual-ip YY.4.36.94
vrrp vrid 16 priority 110
vrrp vrid 16 track interface Eth-Trunk1 reduced 20
备S7703配置如下:
interface Vlanif24
ip address YY.4.36.61 255.255.255.192
vrrp vrid 15 virtual-ip YY.4.36.62
#
interface Vlanif25
ip address YY.4.36.125 255.255.255.192
vrrp vrid 16 virtual-ip YY.4.36.94
2.通过对比主备设备的VRRP配置,发现主设备和备设备的VRRP配置正确。继续查看VRRP的具体状态。
<NeiWang-S7703-B>dis vrrp brief
Total:23 Master:7 Backup:16 Non-active:0
VRID State Interface Type Virtual IP
----------------------------------------------------------------
15 Master Vlanif24 Normal YY.4.36.30
16 Master Vlanif25 Normal YY.4.36.94
17 Master Vlanif26 Normal YY.4.36.158
18 Master Vlanif27 Normal YY.4.36.222
19 Master Vlanif28 Normal YY.4.37.30
20 Master Vlanif29 Normal YY.4.37.94
21 Master Vlanif30 Normal YY.4.37.158
查看备机的VRRP状态,发现备机的VRRP组状态为master,与预期的不一致,查主设备的VRRP状态。
Vlanif24 | Virtual Router 15
State : Initialize
Virtual IP : YY.4.36.30
Master IP : 0.0.0.0
PriorityRun : 110
PriorityConfig : 110
MasterPriority : 0
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-010f
Check TTL : YES
Config type : normal-vrrp
Backup-forward : disabled
Track IF : Eth-Trunk1 Priority reduced : 20
IF state : UP
Create time : 2019-03-04 16:59:00
Last change time : 0000-00-00 00:00:00
3.发现主设备的VRRP状态为Initialize,怀疑2台设备间通信有问题,继续核实2台设备的端口状态。通过display interface brief命令查看时,发现主设备的VLANif24至VLANif30处于down状态。
Interface PHY Protocol InUti OutUti inErrors outErrors
Vlanif24 down down -- -- 0 0
Vlanif25 down down -- -- 0 0
Vlanif26 down down -- -- 0 0
Vlanif27 down down -- -- 0 0
Vlanif28 down down -- -- 0 0
Vlanif29 down down -- -- 0 0
Vlanif30 down down -- -- 0 0
4.需要检查主S7703 vlanif 24至VLANif30接口down的原因,通过继续排查发现,主设备上未创建VLAN24至VLAN 30。
vlan batch 10 to 23 31 to 32 100 169
根因
主S7703上虽然配置了正确的VRRP,但由于交换机上未创建VLAN24至VLAN30,导致VLANif接口始终处于down状态,在与备S7703协商时,因vlanif接口是down的,导致VRRP协商失败,备S7703针对VLANif24到30状态为master。