DELL N3000 User Manual

Page of 1460
Configuring VRRP
1233
This example configures two VRRP groups on each router. Router A is the 
VRRP master for the VRRP group with VRID 10 and the backup for VRID 20. 
Router B is the VRRP master for VRID 20 and the backup for VRID 10. If 
Router A fails, Router B will become the master of VRID 10 and will use the 
virtual IP address 192.168.10.1. Traffic from the clients configured to use 
Router A as the default gateway will be handled by Router B. 
To configure Router A:
Enable routing for the switch.
console#config 
console(config)#ip routing
Create and configure the VLAN routing interface to use as the default 
gateway for network clients. This example assumes all other routing 
interfaces, such as the interface to the external network, have been 
configured.
console(config)#interface vlan 10
console(config-if-vlan10)#ip address 192.168.10.1 255.255.255.0
console(config-if-vlan10)#exit
Enable VRRP for the switch.
console(config)#ip vrrp 
Assign a virtual router ID to the VLAN routing interface for the first VRRP 
group.
console(config)#interface vlan 10
console(config-if-vlan10)#vrrp 10
Specify the IP address that the virtual router function will use. The router 
is the virtual IP address owner (the routing interface has the same IP 
address as the virtual IP address for the VRRP group), so the priority value 
is 255.
console(config-if-vlan10)#vrrp 10 ip 192.168.10.1
Configure an optional description to help identify the VRRP group.
console(config-if-vlan10)#vrrp 10 description master
Assign a virtual router ID to the VLAN routing interface for the second 
VRRP group.
console(config-if-vlan10)#vrrp 20
Specify the IP address that the virtual router function will use.
console(config-if-vlan10)#vrrp 20 ip 192.168.10.2