二:VRRP配置
vrrp是针对端口进行配置的,而并非对整机进行配置
配置任务序列:
1、 创建虚拟路由器
2、 配置VRRP虚拟IP和接口
3、 启动虚拟路由器 (前三个必须配置)
4、 配置VRRP认证(可选)
5、 配置VRRP辅助参数(可选)
(1) 配置VRRP抢占模式
(2) 配置VRRP优先级
(3) 配置VRRP定时器时间间隔
(4) 配置VRRP对接口的监控
配置实例命令:
网络拓扑图结合“神州数码网络应用大赛 –大赛提纲中的样题”
假设在C2上配置
Switch(config)# router vrrp 20
Switch(config-router)#inteface vlan 20
Switch(config-router)# virtual-ip 202.192.20.254 255.255.255.0
Switch(config-router)# priority 254
Switch(config-router)#exit
Switch(config)# router vrrp 10
Switch(config-router)#interface vlan 10
Switch(config-router)# virtual-ip 202.192.10.253 255.255.255.0
Switch(config-router)# priority 1
Switch(config-router)# enble
同样在C1上配置
Switch(config)# router vrrp 10
Switch(config-router)#inteface vlan 10
Switch(config-router)# virtual-ip 202.192.10.254 255.255.255.0
Switch(config-router)# priority 254
Switch(config-router)#exit
Switch(config)# router vrrp 20
Switch(config-router)#interface vlan 20
Switch(config-router)# virtual-ip 202.192.20.253 255.255.255.0
Switch(config-router)# priority 1
Switch(config-router)# enble