This section describes the configuration and activation commands available in the VR context.
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:
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.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.
NOTE: If the link-local address is changed, the VR configuration is removed. When an IP address is removed, the virtual IP address in that subnet is removed.
Example
If VLAN 10 on router "A" is configured with an IP address of 10.10.10.1/24 and VR 1, and you want router "A" to operate as the owner for this VR, the VIP of the owner in VR 1 on router "A" is also 10.10.10.1/24. On router "B," which will operate as a backup for VR 1, VLAN 10 is configured (in the same network) with an IP address of 10.10.10.15/24. However, because the backup must use the same VIP as the owner, the VIP for the backup configured on router "B" for VR 1 is also 10.10.10.1/24.
When you configure a backup in a VR, it is given a default priority of 100. This command is intended for use where it is necessary to establish a precedence among the backup routers on the same network or subnet in a given VR.
Syntax:
Used in a VR context of a VLAN where the router is configured as a backup. This command changes the backup's priority and is used to establish the precedence of a backup where there are multiple backups belonging to the same network or subnet.
NOTE: An owner is automatically assigned the highest priority, 255, which cannot be changed unless the owner status is reconfigured to backup.
Default: 100; Range: 1 - 254, where 1 is the lowest precedence