Configuring the VRRP interface

Configure VRRP to provide fast failover of a default router for IPv6 LAN hosts, in order to create a VRRP instance.

Before you begin

  • Assign an IPv6 address to the interface.

  • Enable routing globally.

  • Do not configure RSMLT on the VLAN.

  • You must specify a link-local address to associate with the virtual router.

About this task

VRRP supports a virtual IPv6 address shared between two or more routers that connect the common subnet to the enterprise network.

VRRP for IPv6 provides a faster switchover to an alternate default router than is possible using the ND protocol.

Perform this procedure to also configure the additional addresses for which the virtual router acts as a backup.

Procedure

  1. Enter Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]} or interface vlan <1–4059>

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Associate an address with the virtual router for either link-local or global:
    • ipv6 vrrp address <1-255> link-local WORD <0-127>

    • ipv6 vrrp address <1-255> global WORD <0-255>

    Note

    Note

    You must configure the link-local address before you configure the global address.

  3. Enable VRRP for the interface:

    ipv6 vrrp <1-255> enable

Example

Associate a link-local address with the virtual router ID 12:

Switch:1(config-if)#ipv6 vrrp address 12 link-local fe80::1234

Associate a global address with the virtual router ID 12

Swith:1(config-if)#ipv6 vrrp address 12 global 3333::1234/64

Enable VRRP for the interface:

Switch:1(config-if)#ipv6 vrrp 12 enable

Variable Definitions

Use the data in the following table to use the ipv6 vrrp address command.

Variable

Value

<1-255>

Specifies the virtual router ID. The virtual router acts as the default router for one or more associated addresses.

enable

Enables IPv6 VRRP. The default is disabled.

global WORD <0–255>

Specifies a global IPv6 address and mask to associate with the virtual router.

link-local WORD <0-127>

Specifies a link-local IPv6 address to associate with the virtual router.

Use the data in the following table to use the interface command.

Variable

Value

<1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

{slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.