vrrp ipv6 vrid virtual-ip

Syntax

vrrp ipv6 vrid virtual-router-id virtual-ip virtual-address [ link-local ]

undo vrrp ipv6 vrid virtual-router-id [ virtual-ip virtual-address [ link-local ] ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: VRRP group number, which ranges from 1 to 255.

virtual-address: Virtual IPv6 address.

link-local: Indicates that the virtual IPv6 address of the VRRP group is a link local address.

Description

Use vrrp ipv6 vrid virtual-ip to create a VRRP group, and configure a virtual IPv6 address for it, or, add another virtual IPv6 address for an existing VRRP group.

Use undo vrrp ipv6 vrid virtual-ip to remove an existing VRRP group or the virtual IPv6 address of the VRRP group.

By default, no VRRP group is created.

The first virtual IPv6 address assigned to a VRRP group must be a link local address and only one such address is allowed in a VRRP group.

After you remove all virtual IPv6 addresses, the VRRP group is automatically removed. The first address assigned to the group must be removed the last.

Related commands: display vrrp ipv6.

Examples

# Create VRRP group 1, and configure its virtual IPv6 address as fe80::10.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::10 link-local

# Configure the virtual IPv6 address of VRRP group 1 as 1::10.

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip 1::10