HCIP-6.3 VRRP配置
SW1:
int vlanif 2
ip add 192.168.2.254 24
vrrp vrid 2 virtual-ip 192.168.2.1
vrrp vrid 2 priority 105
#
int vlanif 3
ip add 192.168.3.254 24
vrrp vrid 3 virtual-ip 192.168.3.1
vrrp vrid 3 priority 105
#
int vlanif 200
ip add 192.168.200.254 24
vrrp vrid 200 virtual-ip 192.168.200.1
vrrp vrid 200 priority 105
#
##
#vlanif2、vlanif3、vlanif200 的主设备 Master
##
#
int vlanif 4
ip add 192.168.4.254 24
vrrp vird 4 virtual-ip 192.168.4.1
#
int vlanif 5
ip add 192.168.5.254 24
vrrp vird 5 virtual-ip 192.168.5.1
#
#vlanif4、vlanif5 的备设备 Backup
#
SW2:
int vlanif 4
ip add 192.168.4.253 24
vrrp vrid 4 virtual-ip 192.168.4.1
vrrp vrid 4 priority 105
#
int vlanif 5
ip add 192.168.5.253 24
vrrp vrid 5 virtual-ip 192.168.5.1
vrrp vrid 5 priority 105
#
##
#vlanif4、vlanif5 的主设备 Master
##
#
int vlanif 2
ip add 192.168.2.253 24
vrrp vrid 2 virtual-ip 192.168.2.1
#
int vlanif 3
ip add 192.168.3.253 24
vrrp vrid 3 virtual-ip 192.168.3.1
#
int vlanif 200
ip add 192.168.200.253 24
vrrp vrid 200 virtual-ip 192.168.200.1
#
#vlanif2、vlanif3、vlanif200 的备设备 Backup
#
调试命令:
dis vrrp brief
核心交换机上连路由器接口配置IP地址:
-
SW1:
int vlanif 800 ip add 192.168.12.2 24
-
SW2:
int vlanif 801 ip add 192.168.23.2 24
本文链接:https://www.orcy.net.cn/3868.html,转载请附上原文出处链接
发表评论