#configure terminal | Enter the Configure mode. |
(config)#router vrrp 1 eth2 | Create a VRRP instance for interface eth2. |
(config-router)#virtual-ip 10.10.10.50 owner | Set the virtual IP address for the VRRP session. Define the default state (owner) of the VRRP router within the virtual router. |
(config-router)#preempt-mode true | Set the preempt mode to specify that the highest priority will function as a backup to master when master is unavailable. |
(config-router)#advertisement-interval 100 | Configure the advertisement interval to 100 centi seconds (value must be a multiple of 5). |
(config-router)# v2-compatible | Enable the v2-compatible |
(config-router)#authentication text abcd | Configure the authentication text to specify that as simple text for vrrpv2 packets, accept only 8 characters |
(config-router)#enable | Enable the VRRP session on the router. |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
(config-router)#exit | Exit Router mode. |
#configure terminal | Enter the Configure mode. |
(config)#router vrrp 1 eth2 | Create a VRRP instance for interface eth2. |
(config-router)#virtual-ip 10.10.10.50 | Set the virtual IP address for the VRRP session. |
(config-router)#priority 200 | Configure the priority to 200 (less than 255), because R2 is the Backup router. |
(config-router)#preempt-mode true | Set the preempt mode to specify that the highest priority will function as a backup to master when master is unavailable. |
(config-router)#advertisement-interval 100 | Configure the advertisement interval to 100 centi seconds (value must be a multiple of 5). |
(config-router)# v2-compatible | Enable the v2-compatible |
(config-router)#authentication text abcd | Configure the authentication text to specify that as simple text for vrrpv2 packets, accept only 8 characters |
(config-router)#enable | Enable the VRRP session on the router. |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
(config-router)#exit | Exit Router mode. |