华为ENSP配置虚拟网关协议VRRP
虚拟网关协议VRRP(Virtual Router Redundancy Protocol)是三层网关冗余公有技术,对用户的网关做冗余。网关一般装在核心交换机上。VRRP默认的优先级都是100,越大优先级越高。这里我们选华为路由器AR2220作为主、备份路由器。
一、基础接口地址配置
[R1]interface gi0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.10.253 24 #配置R1网关接口
[R1]interface gi0/0/1
[R1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[R2]interface gi0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.10.254 24 #配置R2网关接口
[R2]interface gi0/0/1
[R2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
二、配置核心交换机下联用户接口
[R1]interface gi0/0/0
[R1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.1
#创建虚拟组1,并指定虚拟IP地址,该虚拟地址作为用户网关。
[R1-GigabitEthernet0/0/0]dis this
[V200R003C00]
interface GigabitEtherne