1、R1配置:
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.13.1 24
2、R2配置:
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip add
[R2-GigabitEthernet0/0/0]ip address 192.168.1.253 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add
[R2-GigabitEthernet0/0/1]ip address 192.168.23.1 24
3、R3配置:
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip ad
[R3-GigabitEthernet0/0/0]ip address 192.168.13.2 24
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip ad
[R3-GigabitEthernet0/0/0]ip address 192.168.13.2 24
[R3-LoopBack1]ip address 10.0.0.1 24
4、R1、R2配置vrrp,并监控g0/0/1
[R1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.1.250
[R1-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/1 reduced 50
[R2-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.1.250
[R2-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/1 reduced 51
5、R1、R2、R3配置静态路由,确保全网互通
[R1]ip route-static 10.0.0.1 255.255.255.0 192.168.13.2
[R2]ip route-static 10.0.0.1 255.255.255.0 192.168.23.2
[R3]ip route-static 192.168.1.0 255.255.255.0 192.168.13.1
[R3]ip route-static 192.168.1.0 255.255.255.0 192.168.23.1
6、测试
R1上查看vrrp
R2上查看
PC上测试
7、模拟R2->R3线路故障,测试路由
在PC上跟踪路由
R2上看vrrp
【华为vrrp配置实例详解 华为vrrp配置实例】vrrp自动切换R2为master路由,链路备份成功 。
推荐阅读
- 华为手机能不能添加工作卡功能 华为手机能不能添加工作卡
- qq闪照销毁了怎么再看,华为手机qq闪照销毁了怎么再看
- 华为手机掉了怎么找
- 华为云相册照片怎么导出 华为云相册照片怎么导出到电脑
- 华为手机怎么投屏电视机 华为手机怎么投屏电视
- 微信朋友圈怎么显示手机型号 微信朋友圈怎么显示手机型号华为
- 华为手机怎么调音量大小 一键设置手机音量大五倍
- 华为p30文件管理在哪里 华为p30文件管理在哪里找
- 华为p30nfc在哪一个位置 华为p30nfc在手机哪个位置
- 华为高清通话怎么关闭 oppo手机高清通话怎么关闭