Figure 4-2. VRRP Example Network Configuration
Layer 3 Switch acting
VLAN 50
Port 1/0/2
192.150.2.1
Virtual Router ID 20
Virtual Addr. 192.150.2.1
Example 1: Configuring VRRP on the Switch as a Master Router
Enable routing for the switch. IP forwarding is then enabled by default.
console#config
console(config)#ip routing
Configure the IP addresses and subnet masks for the VLAN routing interfaces that will participate in the
protocol, for example:
console(config)#interface vlan 50
console(config-if-vlan50)#routing
console(config-if-vlan50)#ip address 192.150.2.1 255.255.255.0
console(config-if-vlan50)#exit
Enable VRRP for the switch:
console#config
console(config)#ip vrrp
Layer 3 Switch acting
as Router 1
Hosts
as Router 2
Layer 2 Switch
VLAN 60
Port 1/0/4
192.150.4.1
Virtual Router ID 20
Virtual Addr. 192.150.2.1
Routing Configuration
71