The experimental diagram shows:
The experimental connection is as follows: R1 F0/0<-> ESW1 f0/0R1 F0/1<-> ESW2 f0/1R2 equivalent to PC1, after turning off the router function, set the F0The/1 interface address is 192.168.1.1/24 and Gateway 192.168.1.254. R3 equivalent to PC2, after turning off the router function, set the F0/0 Interface address is 192.168.2.2/24 and Gateway 192.168.2.254. ESW1 F0/ -<-> ESW2 f0/ -ESW1 F0/ the<-> ESW2 f0/ theESW1 F1/1<-> R2 f0/1ESW2 F1/0<-> R3 f0/0Experimental Results: When the configuration is complete, R2 can interoperate with R3, VRRP Master is all taken over by ESW1. When the R1 interface is disconnected from the ESW1, VRRP Master is all taken over by ESW2, and R2 is able to interoperate with R3. R1:InterfaceLoopback0 IP Address1.1.1.1 255.255.255.255Interfacefastethernet0/0IP Address12.1.1.1 255.255.255.0No SHInterfacefastethernet0/1IP Address13.1.1.1 255.255.255.0no shrouter RIP network1.0.0.0Network12.0.0.0Network13.0.0.0ESW1:InterfaceLoopback0 IP Address2.2.2.2 255.255.255.255Interfaceport-channel1 switchport mode trunkInterfacefastethernet0/0IP Address12.1.1.2 255.255.255.0No SHInterfacefastethernet1/1switchport Access VLANTenNo SHInterfacefastethernet1/ -switchport mode trunk Duplex Full speed -Channel-group1mode on no shInterfacefastethernet1/ theswitchport mode trunk Duplex Full speed -Channel-group1mode on No shtrack1 Interfacefastethernet0/0line-Protocoltrack2 InterfacePort-channel1 line-ProtocolInterfaceVlan10 IP Address192.168.1.251 255.255.255.0VRRPTenIp192.168.1.254VRRPTenPriority theVRRPTenTrack1VRRPTenTrack2InterfaceVlan20 IP Address192.168.2.251 255.255.255.0VRRP -Ip192.168.2.254VRRP -Priority -VRRP -Track1VRRP -Track2Router RIP network2.0.0.0Network12.0.0.0Network192.168.1.0Network192.168.2.0ESW2:InterfaceLoopback0 IP Address3.3.3.3 255.255.255.255Interfaceport-channel1 switchport mode trunk no shInterfacefastethernet0/1IP Address13.1.1.3 255.255.255.0No SHInterfacefastethernet1/0switchport Access VLAN -Duplex Full speed -No SHInterfacefastethernet1/ -switchport mode trunk Duplex Full speed -Channel-group1mode on no shInterfacefastethernet1/ theswitchport mode trunk Duplex Full speed -Channel-group1mode on No shtrack1 Interfacefastethernet0/1line-Protocoltrack2 InterfacePort-channel1 line-ProtocolInterfaceVlan10 IP Address192.168.1.252 255.255.255.0VRRPTenIp192.168.1.254VRRPTenPriority -VRRPTenTrack1VRRPTenTrack2InterfaceVlan20 IP Address192.168.2.252 255.255.255.0VRRP -Ip192.168.2.254VRRP -Priority theVRRP -Track1VRRP -Track2Router RIP network3.0.0.0Network13.0.0.0Network192.168.1.0Network192.168.2.0r2:no IP RoutingInterfacefastethernet0/1IP Address192.168.1.1 255.255.255.0No shipdefault-gateway192.168.1.254r3:no IP RoutingInterfacefastethernet0/0IP Address192.168.2.2 255.255.255.0No shipdefault-gateway192.168.2.254Esw1:config Tintf0/0sh when disconnected with the R1, VRRP master began to change, the original in ESW1 master all become backup state. *mar1 xx:Ten:43.283:%vrrp-6-statechange:vl10 GRPTenState MasterBackup*mar1 xx:Ten:43.287:%vrrp-6-STATECHANGE:VL20 GRP -Backup with State Master
Cisco VRRP Config Case1