This section provides information to configure VRRP using the command line interface.
Topics in this section include:
Configuring VRRP policies and configuring VRRP instances on interfaces and router interfaces is optional. The basic owner and non-owner VRRP configurations on an IES or router interface must specify the backup ip-address parameter.
VRRP helps eliminate the single point of failure in a routed environment by using a virtual router IP address shared between two or more routers connecting the common domain. VRRP provides dynamic failover of the forwarding responsibility if the master becomes unavailable.
The VRRP implementation allows one master per IP subnet. All other VRRP instances in the same domain must be in backup mode.
VRRP policies:
Configuring VRRP on an IES or VPRN service interface:
Configure VRRP parameters in the following contexts:
Configuring and applying VRRP policies are optional. There are no default VRRP policies. Each policy must be explicitly defined. A VRRP configuration must include the following:
The following example shows a sample configuration of a VRRP policy for the 7450 ESS:
The following example shows a sample configuration of a VRRP policy for the 7750 SR and 7950 XRS:
VRRP parameters are configured within an IES service with two contexts: owner or non-owner. The status is specified when the VRRP configuration is created. When configured as owner, the virtual router instance owns the backup IP addresses. All other virtual router instances participating in this message domain must have the same VRID configured and cannot be configured as owner.
For IPv4, up to four virtual router IDs can be configured on an IES service interface. Each virtual router instance can manage up to 16 backup IP addresses. For IPv6, only one virtual router instance can be configured on an IES service interface.
VRRP parameters configured within an IES service must include the following:
The following example shows a sample IES service owner and non-owner VRRP configuration:
The following example shows a VRRP for IPV6 configuration and applies to the 7750 SR and 7950 XRS. The interface must be configured first.
VRRP parameters are configured on a router interface with two contexts: owner or non-owner. The status is specified when the VRRP configuration is created. When configured as owner, the virtual router instance owns the backed up IP addresses. All other virtual router instances participating in this message domain must have the same VRID configured and cannot be configured as owner.
For IPv4, up to four virtual router IDs can be configured on a router interface. Each virtual router instance can manage up to 16 backup IP addresses. For IPv6, only one virtual router instance can be configured on a router interface.
VRRP parameters configured on a router interface must include the following:
The following example shows a sample router interface owner and non-owner VRRP configuration:
This section provides a brief overview of the tasks that must be performed to configure VRRP and provides the CLI commands.
VRRP parameters are defined under a service interface or a router interface context. An IP address must be assigned to each IP interface. Only one IP address can be associated with an IP interface but several secondary IP addresses also be associated.
Owner and non-owner configurations must include the following parameters:
Other owner and non-owner configurations include the following optional commands:
In addition to the common parameters, the following non-owner commands can be configured:
If you have multiple subnets configured on an Ethernet interface, you can configure VRRP on each subnet.
The following displays an IP interface configuration example:
The following displays a VRRP policy configuration example:
VRRP parameters can be configured on an interface in a service to provide virtual default router support, which allows traffic to be routed without relying on a single router in case of failure. VRRP can be configured the following ways:
The following displays a basic non-owner VRRP configuration example:
The following displays an owner service VRRP configuration example:
VRRP parameters can be configured on an interface in an interface to provide virtual default router support, which allows traffic to be routed without relying on a single router in case of failure.
VRRP can be configured the following ways:
The following displays a router interface non-owner VRRP configuration example:
The following displays a router interface owner VRRP configuration example:
This section describes the following VRRP configuration management tasks:
To access a specific VRRP policy, you must specify the policy ID. To display a list of VRRP policies, use the show vrrp policy command.
The following example shows the modified VRRP policy configuration:
Policies are only applied to non-owner VRRP instances. A VRRP policy cannot be deleted if it is applied to an interface or to an IES service. Each instance in which the policy is applied must be deleted.
The Applied column in the following example shows whether the VRRP policies are applied to an entity.
After a VRRP instance is created as non-owner, it cannot be modified to the owner state. The VRID must be deleted, then recreated with the owner keyword, to invoke IP address ownership.
After a VRRP instance is created as owner, it cannot be modified to the non-owner state. The VRID must be deleted, then recreated without the owner keyword, to remove IP address ownership.
Entering the owner keyword is optional when entering the VRID for modification purposes.
The VRID does not need to be shutdown to remove the virtual router instance from an interface or service.
The following example shows the command usage to delete a VRRP instance from an interface or IES service: