在网络中启用两个不同的VRRP组,最大限度保证了网络的冗余,避免网络单点出错引起用户无法访问网络
R1(config)#int f0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#vrrp 1 ip 192.168.1.254
R1(config-if)#vrrp 1 priority 111
R1(config-if)#vrrp 1 preempt
R1(config-if)#int f0/0
R1(config-if)#vrrp 2 ip 192.168.1.253
R1(config-if)#vrrp 2 priority 222
R1(config-if)#vrrp 2 preempt
R2(config)#int f0/0
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#vrrp 1 ip 192.168.1.254
R2(config-if)#vrrp 1 pri 222
R2(config-if)#vrrp 1 preempt
R2(config-if)#vrrp 2 ip 192.168.1.253
R2(config-if)#vrrp 2 pri 111
R2(config-if)#vrrp 2 preempt
R3(config)#no ip routing
R3(config)#int f0/0
R3(config-if)#ip add 192.168.1.3 255.255.255.0
R3(config)#ip default-gateway 192.168.1.254
R6(config)#no ip routing
R6(config)#int f0/0
R6(config-if)#ip add 192.168.1.6 255.255.255.0
R6(config)#ip default-gateway 192.168.1.253
R3#ping
Type escape sequence to abort.
Sending 400, 100-byte ICMP Echos to
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!..!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 99 percent (398/400), round-trip min/avg/max = 4/38/220 ms
将R2 的f0/0 shutdown
R3#traceroute
Type escape sequence to abort.
Tracing the route to
1 192.168.1.1 52 msec 68 msec *
将R2 的f0/0 no shutdown
R3#traceroute
Type escape sequence to abort.
Tracing the route to
1 *
192.168.1.2 56 msec 64 msec
R6#ping
Type escape sequence to abort.
Sending 500, 100-byte ICMP Echos to
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! . . .!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!
Success rate is 99 percent (496/500), round-trip min/avg/max = 4/38/124 ms
R6#sh sw FastEthernet0/3 (full duplex).