Command | Purpose |
R1(config)# ip routing R1(config)# ip vrrp |
Enable routing on the switch using the ip routing command and use the ip vrrp command to enable the VRRP routing protocol on the switch. |
R1(config)# interface vlan 10 R1(config-if-vlan10)# ip address 10.10.10.2 /24 |
Enter the selected VLAN interface and assign an IP address. |
R1(config-if-vlan10)# vrrp 1 | Set the VRID for the group. |
R1(config-if-vlan10)# vrrp 1 10.10.10.1 | Set the virtual IP address for the VRRP router. |
R1(config-if-vlan10)# vrrp 1 mode R1(config-if-vlan10)# vrrp 1 priority 20 |
Use the vrrp 1 mode command to activate the VRRP router. Use the vrrp 1 priority command to set the priority for primary election. Range 1-254. |
Command | Purpose |
R2(config)# ip routing R2(config)# ip vrrp |
Enable routing on the switch using the ip routing command and use the ip vrrp command to enable the VRRP routing protocol on the switch. |
R2(config)# interface vlan 10 R2(config-if-vlan10)# ip address 10.10.10.3 /24 |
Enter the selected VLAN interface and assign an IP address. |
R2(config-if-vlan10)# vrrp 1 | Set the VRID for the group. |
R2(config-if-vlan10)# vrrp 1 10.10.10.1 | Set the virtual IP address for the VRRP router. |
R2(config-if-vlan10)# vrrp 1 mode R2(config-if-vlan10)# vrrp 1 priority 200 |
Use the vrrp 1 mode command to activate the VRRP router. Use the vrrp 1 priority command to set the priority for primary election. Range 1-254. |