![](/images/new-backgrounds/1121221/121221155x1.webp)
Configuring VRRP on the Switch as a Master Router
1Enable routing for the switch. IP forwarding is then enabled by default. console#config
console(config)#ip routing
2Configure the IP addresses and subnet masks for the VLAN routing interface that will participate in the protocol:
console(config)#interface vlan 50
3Enable VRRP for the switch: console(config)#ip vrrp
4Assign the virtual router ID to the interface that will participate in the protocol: console(config)#interface vlan 50
5Specify the IP address that the virtual router function will recognize. The interface IP address is the same as the virtual IP address. This means the router is the interface owner and therefore has a priority of 255, which guarantees that it is the master.
6Start the virtual router on the interface:
Configuring VRRP on the Switch as a Backup Router
1Enable routing for the switch. IP forwarding is then enabled by default. console#config
console(config)#ip routing
2Configure the IP addresses and subnet masks for the port that will participate in the protocol: console(config)#interface vlan 50
3Enable VRRP for the switch. console(config)#ip vrrp
78
Routing Configuration