4.7. Configuring VRRP with CLI

This section provides information to configure VRRP using the command line interface.

4.8. VRRP Configuration Overview

Configuring VRRP policies and instances on service interfaces is optional. The basic owner and non-owner VRRP configurations on an IES or VPRN service interface must specify the backup ip-address parameter.

VRRP helps eliminate the single point of failure in a routed environment by using virtual router IP addresses shared between two or more routers connecting the common domain. VRRP provides dynamic failover of the forwarding responsibility to the backup router 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.

4.8.1. Preconfiguration Requirements

VRRP policies:

  1. VRRP policies must be configured before they can be applied to an IES or VPRN VRRP instance. VRRP policies are configured in the config>vrrp context.

Configuring VRRP on an IES or VPRN service interface:

  1. the service customer account must be created prior to configuring an IES or VPRN VRRP instance
  2. the interface address must be specified in both the owner and non-owner IES or VPRN instances

4.9. Basic VRRP Configurations

VRRP parameters are configured in the following contexts:

4.9.1. VRRP Policy

Configuring and applying VRRP policies is optional. There are no default VRRP policies. Each policy must be explicitly defined. A VRRP configuration must include the following:

  1. policy ID
  2. at least one of the following priority events:
    1. port down
    2. LAG port down
    3. host unreachable
    4. route unknown

The following example displays a configuration of an IES VRRP policy.

config>vrrp>policy# info 
---------------------------------------------- 
    delta-in-use-limit 50 
    priority-event 
        port-down 4/1/2 
            hold-set 43200 
            priority 100 delta 
        exit 
        port-down 4/1/3 
            priority 200 explicit 
        exit 
        lag-port-down 1 
            number-down 3 
                priority 50 explicit 
            exit 
        exit 
        host-unreachable 10.10.24.4 
            drop-count 25 
        exit 
        route-unknown 10.10.0.0/32 
            priority 50 delta 
            protocol bgp 
        exit
    exit 
----------------------------------------------

The following example displays a configuration of a VPRN VRRP policy.

config>vrrp>policy 1 context 10# info 
---------------------------------------------- 
.... 
        priority event port-down 1/1/1
            priority 200 explicit 
        exit 
        lag-port-down 1 
            number-down 3 
                priority 50 explicit 
            exit 
        exit 
      exit
    exit 
----------------------------------------------

4.9.2. VRRP IES or VPRN Service Parameters

VRRP parameters are configured within an IES or VPRN 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 has the same real IP addresses as the virtual 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.

Note:

VRRP service parameter configuration is the same for both VPRN and IES services.

For IPv4 and IPv6, up to two VRRP instances (VRIDs) can be configured on an IES or VPRN service interface. IPv4 can backup up to eight addresses per VRRP instance (one primary and seven secondary). IPv6 can backup up to four addresses (one primary and three secondary.

VRRP parameters configured within an IES or VPRN service must include the following:

  1. VRID
  2. virtual backup IP addresses

The following example displays a configuration of IES service owner and non-owner VRRP configurations.

config>service>ies# info
----------------------------------------------
interface "tuesday" create
   address 10.10.36.2/24
   sap 7/1/1:100 create
   vrrp 19 owner
      backup 10.10.36.2
      authentication-key "testabc"
   exit
exit
interface "testing" create
   address 10.10.10.16/24
   sap 1/1/55:0 create
   vrrp 12
      backup 10.10.10.15
      policy 1
      authentication-key "testabc"
   exit
exit
   no shutdown
----------------------------------------------
config>service>ies#

4.9.2.1. Configuring IES or VPRN VRRP for IPv6

The following output shows an IES VRRP for IPV6 configuration example.

config>service>ies# info
----------------------------------------------
    description "VLAN 921 for DSC-101 Application"
    interface "DSC-101-Application" create
        address 10.152.2.220/28
        vrrp 217
            backup 10.152.2.222
            priority 254
            ping-reply
        exit
        ipv6
            address FD10:D68F:1:221::FFFD/64
            link-local-address FE80::D68F:1:221:FFFD preferred
            vrrp 219
                backup FE80::D68F:1:221:FFFF
                priority 254
                ping-reply
            exit
        exit
        sap 1/1/4 create
            description "sap-10-192.168.0.1"
        exit
    exit
    no shutdown
----------------------------------------------
config>service>ies#

4.10. Common Configuration Tasks

This section provides a brief overview of the tasks that must be performed to configure VRRP and lists the CLI commands.

VRRP parameters are defined under a service interface context. An IP address must be assigned to each IP interface. Only one primary IP address can be associated with an IP interface but several secondary IP addresses can be associated.

Owner and non-owner configurations must include the following parameters:

  1. all participating routers in a VRRP instance must be configured with the same VRID
  2. all participating non-owner routers can specify up to eight backup IP addresses (that is, the IP addresses that the master is representing). The owner configuration must include at least one backup IP address.
  3. for IPv6, one of the backup addresses configured must be the link-local address of the owner VRRP instance

Owner and non-owner configurations can also include the following optional commands:

  1. authentication-key (IPv4 only)
  2. MAC
  3. message-interval

In addition to the common parameters, the following non-owner commands can be configured:

  1. master-int-inherit
  2. priority
  3. bfd-enable
  4. initial delay
  5. policy
  6. ping-reply
  7. preempt
  8. telnet-reply
  9. ssh-reply (IPv4 only)
  10. shutdown

4.11. Configuring IES or VPRN VRRP Parameters

VRRP parameters can be configured on a service interface to provide virtual default router support that allows traffic to be routed without relying on a single router in case of failure. VRRP can be configured in the following ways:

4.11.1. Configuring VRRP on Subnets

If you have multiple subnets configured on an IES or VPRN service interface, you can configure VRRP on each subnet.

The following displays an IES interface configuration example:

config>service>ies# info 
#------------------------------------------ 
...
    interface "test-A" create
       address 123.123.123.123/24
    exit
    interface "testB"
       address 10.10.14.1/24
       secondary 10.10.16.1/24
       secondary 10.10.17.1/24
       secondary 10.10.18.1/24
    exit
    no shutdown
...
#------------------------------------------ 

4.11.2. Owner VRRP

The following displays an owner VRRP configuration example for an IPv4 service interface:

config>service>ies# info 
#----------------------------------------------
...
    interface “test2” create
        address 10.10.10.23/24
        vrrp 1 owner
            backup 10.10.10.23
            authentication-key “testabc”
        exit
    exit
...
#----------------------------------------------
config>service>ies#
 

If a VRRP instance is created as owner, it cannot be changed to the non-owner state. The VRID must be deleted and then recreated without the owner keyword to remove IP address ownership.

4.11.3. Non-owner VRRP

The following displays a basic non-owner VRRP configuration example for an IPv4 service interface:

config>service>ies# info
#----------------------------------------------
...
    interface "test2" create
        address 10.10.10.16/24
        sap 1/1/55:0 create
        vrrp 12
            backup 10.10.10.15
            policy 1
            authentication-key “testabc”
            exit
    exit
    no shutdown
...
#----------------------------------------------
config>service>ies#

If a VRRP instance is created as non-owner, it cannot be changed to the owner state. The VRID must be deleted and then recreated with the owner keyword to invoke IP address ownership.

4.12. VRRP Management Tasks

This section discusses the following VRRP management tasks:

4.12.1. Deleting a VRRP Policy

Policies are only applied to non-owner VRRP instances. A VRRP policy cannot be deleted if it is applied to an IES or VPRN service. Each instance in which the policy is applied must be deleted. The following example displays a policy deletion.

Example:
config>vrrp
config>vrrp# no policy 1

The” Applied” column in the following example displays whether the VRRP policies are applied to an entity. The services using the VRRP policy can be viewed using the specific policy ID in the CLI command (for example, show>vrrp>policy 1).

#show>vrrp# policy
======================================================
VRRP Policies
======================================================
Policy    Current             Current      Current      Delta Applied Svc
Id        Priority & Effect   Explicit     Delta Sum    Limit         Context
-------------------------------------------------------------------------------
1         70   Delta          None         70           1     Yes     None
100       None                None         None         1     No      None
255       None                None         None         1     No      None
-------------------------------------------------------------------------------
#show>vrrp# policy 1
===============================================================================
VRRP Policy 1
===============================================================================
Description     :
Current Priority: 100 Delta            Applied           : Yes
Current Explicit: None                 Current Delta Sum : 100
Delta Limit     : 1                    Svc Context       : None
-------------------------------------------------------------------------------
Rtr Id/    Applied To                       VR   Opr  Base In-use Master Is
Svc Id     Interface Name                   Id        Pri  Pri    Pri    Master
-------------------------------------------------------------------------------
800        tuesday                          6    Down 100  1      0      No
-------------------------------------------------------------------------------
Rtr Id/    Applied To                       IPv6 Opr  Base In-use Master Is
Svc Id     Interface Name                   VR-Id     Pri  Pri    Pri    Master
-------------------------------------------------------------------------------
None
-------------------------------------------------------------------------------
SRRP        Applied To Interface Name        Oper           Base  In-use Master
Id          Rtr Id/Svc Id                    State          Pri   Pri    Pri
-------------------------------------------------------------------------------
None
-------------------------------------------------------------------------------
Priority Control Events
-------------------------------------------------------------------------------
Event Type & ID                  Event Oper State        Hold Set  Priority In
                                                         Remaining &Effect  Use
-------------------------------------------------------------------------------
Port Down 1/2/1                  Set-down                Expired   100 Del  Yes
===============================================================================
#show>vrrp#

4.12.2. Deleting VRRP on a Service

The VRID does not need to be shut down to remove the virtual router instance from a service.

The following example displays the commands to delete a VRRP instance in non-owner mode from an IES service:

Example:
config>service# ies 10
config>service>ies# interface test
config>service>ies>if# no vrrp 1
config>service>ies>if# exit all