#configure terminal | Enter the Configure mode. |
(config)#interface eth2 | Enter interface mode for eth2. |
(config-if)#ip address 2.2.2.1/24 | Configure the IP address for interface eth2 to be in network 0. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode for eth1. |
(config-if)#ip address 1.1.1.1/24 | Configure the IP address for interface eth1 to be in network 1. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#router vrrp 1 eth2 | Create a VRRP instance for interface eth2. |
(config-router)#virtual-ip 2.2.2.1 owner | Configure R1 as the owner. |
(config-router)#advertisement-interval 100 | Configure the default value for the advertisement interval. The configurable range is 5 to 4095 centi seconds (value must be a multiple of 5). |
(config-router)#preempt-mode true | Set true as the default value for the field. |
(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)#interface eth2 | Enter interface mode for eth2. |
(config-if)#ip address 2.2.2.2/24 | Configure the IP address for interface eth2 to be in network 0. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode for eth1. |
(config-if)#ip address 1.1.1.2/24 | Configure the IP address for interface eth1 to be in network 1. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#router vrrp 1 eth2 | Create a VRRP instance for interface eth2. |
(config-router)#virtual-ip 2.2.2.1 | Configure R2 as the backup. |
(config-router)#advertisement-interval 100 | Configure the default value for the advertisement interval. The configurable range is 5 to 4095 centi seconds (value must be a multiple of 5). |
(config-router)#priority 100 | Set the default value for the backup router. |
(config-router)#preempt-mode true | Set true as the default value for the field. |
(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)#interface eth2 | Enter interface mode for eth2. |
(config-if)#ip address 2.2.2.3/24 | Configure the IP address for interface eth2 to be in network 0. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode for eth1. |
(config-if)#ip address 1.1.1.3/24 | Configure the IP address for interface eth1 to be in network 1. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
(config-if)#exit | Exit interface mode. |
(config)#router vrrp 1 eth2 | Create a VRRP instance for interface eth2. |
(config-router)#virtual-ip 2.2.2.1 | Configure R3 as the backup. |
(config-router)#advertisement-interval 100 | Configure the default value for the advertisement interval. The configurable range is 5 to 4095 centi seconds (value must be a multiple of 5). |
(config-router)#priority 254 | Configure the priority for R3. The configurable range is 1-255. |
(config-router)#preempt-mode true | Set true as the default value for the field. |
(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)#disable | Disable the VRRP session. |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
(config-router)#exit | Exit Router mode. |