
Configuring VRRP
VRRP Configuration Overview
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
page 22-11
•
Preempt mode
): To change from the default preempt mode and to turn it off, use
no
preempt
. Use
preempt
to turn it back on. For more information about the preempt mode, see
Preemption for Virtual Routers” on page 22-12
.
•
Advertising interval
): Measured in seconds. Use the
interval
keyword with the desired
number of seconds for the delay in sending VRRP advertisement packets. You can change the default
interval value and set a desired value. See
“Configuring the Advertisement Interval” on page 22-12
The following example creates a virtual router (with VRID 7) on VLAN 2 with a priority of 75. The
preempt mode of the router is enabled and VRRP advertisements will be sent at intervals of 2 seconds:
-> vrrp 7 2 priority 75 preempt interval 2
Note.
All virtual routers with the same VRID on the same LAN should be configured with the same
advertising interval; otherwise the network may produce duplicate IP or MAC address messages.
command may also be used to specify whether the virtual router is enabled or disabled.
However, the virtual router must have an IP address assigned to it before it can be enabled
. Use the
vrrp
address
command as described in the next section to specify an IP address or addresses.
To delete a virtual router, use the
no
form of the
vrrp
command with the relevant VRID and VLAN ID.
For example:
-> no vrrp 7 3
Virtual router 7 on VLAN 3 is deleted from the configuration. (The virtual router does not have to be
disabled before you delete it.)
For more information about the
vrrp
command syntax, see the
OmniSwitch CLI Reference Guide
.
Specifying an IP Address for a Virtual Router
An IP address must be specified before a virtual router may be enabled. To specify an IP address for a
virtual router, use the
command and the relevant IP address. For example:
-> vrrp 6 4 address 10.10.2.3
-> vrrp 6 4 admin-state enable
In this example, the
vrrp address
command specifies that virtual router 6 on VLAN 4 will be used to
backup IP address 10.10.2.3. The virtual router is then enabled with the
vrrp
command.
Note that if a virtual router is to be the IP address owner, then all addresses on the virtual router must
match an address on the switch interface.
To remove an IP address from a virtual router, use the
no
form of the
vrrp address
command. For exam-
ple:
-> vrrp 6 4 admin-state disable
-> vrrp 6 4 no address 10.10.2.3
In this example, virtual router 6 is disabled. (A virtual router must be disabled before IP addresses may be
added/removed from the router.) IP address 10.10.2.3 is then removed from the virtual router with the
no
form of the
vrrp address
command.