概念
VRRP: Virtual route redundancy protocol
VRRP属于三层冗余技术
VRRP既能实现网关的备份,又能解决多个网关相互冲突的问题
报文
报文名称: advertisement, 发送频率是1s, 周期是3
报文目的地址: 224.0.0.18
报文目的MAC: 01-00-5E-00-00-12
报文协议号:112
优先级参数
0: 不参与VRRP master 选举
255:IP 地址拥有者; 接口IP地址和VRRP 虚拟网关地址相同,默认为master
默认优先级: 100
VRRP 配置
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.1 ####进入接口配置
[Huawei-GigabitEthernet0/0/1]vrrp vrid 1 priority 90 #### 配置优先级
查看两台路由网关状态
[Huawei-GigabitEthernet0/0/1]display vrrp brief
Total:1 Master:1 Backup:0 Non-active:0
VRID State Interface Type Virtual IP
----------------------------------------------------------------
1 Master GE0/0/1 Normal 192.168.10.1
------------------
[Huawei-GigabitEthernet0/0/1]display vrrp brief
Total:1 Master:0 Backup:1 Non-active:0
VRID State Interface Type Virtual IP
----------------------------------------------------------------
1 Backup GE0/0/1 Normal 192.168.10.1