1.实验环境:
VRRP(虚拟路由器网关冗余协议),此协议可以用于解决局域网中配置静态网关出现单点失效的问题。数据中心核心交换区比较常用。由于VRRP是开发性协议,所以配置上思科和华为有所区别。在此篇中,VRRP可以实现当R1/R2出现单点故障后用户端可以正常访问ISP。
2.建立如下拓扑:
3.R1 R2 ISP PC1 PC2基础配置:
R1:
R1(config)# interface ethernet 0/0
R1(config-if)# ip address 192.168.1.254 255.255.255.0
R1(config)# interface ethernet 0/1
R1(config-if)# ip address 172.31.1.254 255.255.255.0
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.1.254 YES NVRAM up up
Ethernet0/1 172.31.1.254 YE