switch(vlan-10)# vrrp vrid 1
switch(vlan-10-vrid-1)#
Selecting a Version of VRRP
The version command is configured in the IPv4 VR context. IPv4 virtual routers support VRRPv2 and VRRPv3.
IPv6 virtual routers support only VRRPv3.
The default is version 2. The
show running-config
command will display the version only when it is set at the
non-default value of version 3 for IPv4.
If an update is performed from a software version that only supported VRRPv2, all the IPv4 VRs remain in
VRRPv2 mode.
Syntax:
version
2|3
Example:
switch(vlan-10-vrid-1)# version 3
Configuring a VR instance on a VLAN interface
This section describes the configuration and activation commands available in the VR context.
Configuring a virtual IP address (VIP) in a VR
The VIP must be the same for the owner and all backups on the same network or subnet in a VR. The decision
about the VIP being an owner or backup is based on the whether the VIP is a configured IP address or not. If the
VIP is a configured IP address, it becomes the owner and the priority becomes 255. For backup VRs, the priority
is between 1–254.
Syntax:
virtual-ip-address
ipv4-addr
virtual-ip-address
ipv6-addr
Used in a VR context of a VLAN to assign an IPv4 address for IPv4, or an IPv6 address for IPv6, to a VR
instance.
Note:
This command had a
subnet
option in prior versions. This is not needed now because the subnet is
provided when the VLAN IP address is configured.
For an owner
The VIP must be one of the IP addresses configured on the VLAN interface for that VR.
For a backup
The VIP must match the VIP for the owner.
The owner and the backups using a given VIP must all belong to the same network or subnet.
For IPv6, you must configure the link-local address before you are able to configure the global IPv6 address. In
the owner VR, this is the link-local address of the interface. The VR can be enabled only after configuring the first
virtual IP address. Additional IP addresses can be configured without disabling the VR.
When removing virtual IP addresses, when the last virtual IP address is removed, the VR state is changed to
disabled. A warning message is displayed.
Chapter 16 Virtual Router Redundancy Protocol (VRRP)
317