12-High Availability Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18212-High Availability Command Reference
09-VRRP Commands
Title Size Download
09-VRRP Commands 243.2 KB

VRRP configuration commands

The term router in this document refers to both routers and Layer 3 switches.

The interfaces that VRRP involves can only be Layer 3 Ethernet interfaces, VLAN interfaces, Layer 3 aggregate interfaces, and RPR logical interfaces unless otherwise specified.

VRRP cannot be configured on interfaces in aggregation groups.

Common VRRP configuration commands

vrrp mode

Syntax

vrrp mode load-balance

undo vrrp mode

View

System view

Default level

2: System level

Parameters

load-balance: Specifies the load balancing mode.

Description

Use vrrp mode to configure the VRRP working mode.

Use undo vrrp mode to restore the default.

By default, VRRP is operating in standard protocol mode.

·     When you configure the working mode of VRRP by using this command, both IPv4-based and IPv6-based VRRP groups are operating in the specified mode.

·     When VRRP is operating in load balancing mode, the virtual IP address cannot be the same as the IP address of any interface in the VRRP group, and the virtual IP address should be mapped to the virtual MAC address. Otherwise, VRRP cannot operate in load balancing mode.

·     When a VRRP group is created, you can still change the VRRP working mode. When you change the VRRP working mode, all VRRP groups on the router are operating in the specified mode.

Related commands: display vrrp and display vrrp ipv6.

Examples

# Configure VRRP to operate in load balancing mode.

<Sysname> system-view

[Sysname] vrrp mode load-balance

vrrp version

Syntax

vrrp version version-number

undo vrrp version

View

Interface view

Default level

2: System level

Parameters

version-number: Specifies a VRRP version. The version number is 2 or 3.

 

Value

VRRP version

RFC

Value of the version field in VRRP packets

2

IPv4 VRRPv2

RFC 2338

·     In standard protocol mode, the value of the version field is 2.

·     In load balancing mode, the value of the version field is 8.

IPv6 VRRPv2

RFC 3768

·     In standard protocol mode, the value of the version field is 3.

·     In load balancing mode, the value of the version field is 9.

3

IPv4/IPv6 VRRPv3

RFC 5798

In standard protocol or load balancing mode, the value of the version field is 3.

 

The IPv6 VRRP packet format is not defined in RFC 3768. The IPv6 VRRPv2 version is implemented by H3C based on RFC 3768.

Description

Use vrrp version to specify the VRRP version on an interface.

Use undo vrrp version to restore the default.

By default, VRRPv2 is used.

The version of VRRP on all routers in a VRRP group must be the same.

When the VRRP version of an interface is IPv4/IPv6 VRRPv3, the authentication configuration of the VRRP group does not take effect, and the maximum VRRP advertisement interval is 40 seconds (even if you configure an interval larger than 40 seconds).

Examples

# Specify VRRPv3 to run on VLAN-interface 2.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp version 3

IPv4-based VRRP configuration commands

display vrrp

Syntax

display vrrp [ verbose ] [ interface interface-type interface-number [ vrid virtual-router-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

verbose: Displays detailed state information of VRRP groups.

interface interface-type interface-number: Displays VRRP group state information of the specified interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Displays state information of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display vrrp to display the state information of VRRP groups.

If you do not specify verbose, only the brief state information of VRRP group is displayed.

If you specify both an interface and a VRRP group, only the state information of the specified VRRP group on the interface is displayed. If you only specify an interface, the state information of all the VRRP groups on the interface is displayed. If you specify neither, the state information of all the VRRP groups on the router is displayed.

Examples

# When VRRP is operating in standard protocol mode, display brief information about all VRRP groups on the router.

<Sysname> display vrrp

 IPv4 Standby Information:

     Run Mode       : Standard

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

 Interface          VRID  State        Run     Adver   Auth     Virtual

                                       Pri     Timer   Type        IP

 ---------------------------------------------------------------------

 Vlan2              1      Master      140     1       Simple   1.1.1.1

Table 1 Command output (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Run Pri

Running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, when the state of the monitored interface or track entry changes, the priority of the router changes.

Adver. Timer

VRRP advertisement interval, in seconds.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

·     MD5—MD5 authentication.

Virtual IP

Virtual IP address of the VRRP group.

 

# When VRRP is operating in standard protocol mode, display detailed information about all VRRP groups on the router.

<Sysname> display vrrp verbose

 IPv4 Standby Information:

     Run Mode       : Standard

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

   Interface Vlan-interface2

     VRID           : 1               Adver Timer  : 1

     Admin Status   : Up              State        : Master

     Config Pri     : 150             Running Pri  : 140

     Preempt Mode   : Yes             Delay Time   : 5

     Auth Type      : Simple          Key          : hello

     Virtual IP     : 1.1.1.1

     Virtual MAC    : 0000-5e00-0101

     Master IP      : 1.1.1.2

   VRRP Track Information:

     Track Interface: Vlan3          State : Down              Pri Reduced : 10

     Track Object   : 1              State : Positive          Pri Reduced : 50

Table 2 Command output (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Adver. Timer

VRRP advertisement interval, in seconds.

Admin Status

Administrative state:

·     UP.

·     DOWN.

State

Status of the router in the VRRP group:

·     Master.

·     Backup.

·     Initialize.

Config Pri

Configured priority of the router, or in other words, the priority value specified by using the vrrp vrid priority command.

Running Pri

Running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, when the state of the monitored interface or track entry changes, the priority of the router changes.

Preempt Mode

Preemptive mode:

·     Yes—The router in the VRRP group is operating in preemptive mode.

·     No—The router in the VRRP group is operating in non-preemptive mode.

Delay Time

Preemption delay, in seconds.

Become Master

Time to wait before the router becomes the master. The unit is milliseconds.

Only routers in backup mode have such information.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

·     MD5—MD5 authentication.

Key

Authentication key.

Virtual IP

Virtual IP address of the VRRP group.

Virtual MAC

Virtual MAC address that corresponds to the virtual IP address of the VRRP group. It is displayed only when the router is in the state of master.

Master IP

Primary IP address of the interface where the router in the state of master resides.

VRRP Track Information

Information about the tracked interface or object. It is displayed only when the vrrp vrid track or vrrp vrid track interface command is executed.

Track Interface

The interface to be tracked. It is displayed only when the vrrp vrid track interface command is executed.

Track Object

The track entry to be tracked. It is displayed only when the vrrp vrid track command is executed.

State

State of the tracked interface or track entry.

State of a tracked interface:

·     Up.

·     Down.

·     Removed.

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Pri Reduced

The priority value that is reduced when the monitored interface is down or removed, or when the status of the monitored track entry turns to negative. It is displayed only when the vrrp vrid track interface command or the vrrp vrid track command is executed.

Switchover

Switchover mode. When the status of the monitored track entry turns to negative, the backup immediately switches to the master.

 

# When VRRP is operating in load balancing mode, display brief information about all VRRP groups on the router.

<Sysname> display vrrp

IPv4 Standby Information:

     Run Mode       : Load Balance

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

 Interface          VRID   State       Run   Address             Active

                                       Pri

 ----------------------------------------------------------------------

 Vlan2              1      Master      140   1.1.1.1             Local

 -----              VF 1   Active      255   000f-e2ff-0011      Local

Table 3 Command output (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group or ID of the virtual forwarder (VF).

State

·     If the VRID is number, this field indicates the status of the router in the VRRP group, including Master, Backup, and Initialize.

·     If the VRID is VF number, this field indicates the status of the VF in the VRRP group, including Active, Listening, and Initialize.

Run Pri

·     If the VRID is number, this field indicates the running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, if the state of the monitored interface or track entry changes, the priority of the router changes.

·     If the VRID is VF number, this field indicates the running priority of the VF. With VF tracking configured, if the state of the monitored track entry changes, the priority of the VF changes.

Address

·     If the VRID is number, this field indicates the virtual IP address of the VRRP group.

·     If the VRID is VF number, this field indicates the virtual MAC address of the VF.

Active

·     If the VRID is number, this field indicates the IP address of the interface of the master. If the current router is the master, it is displayed as local.

·     If the VRID is VF number, this field indicates the IP address of the interface of the active virtual forwarder (AVF). If the current VF is the AVF, it is displayed as local.

 

# When VRRP is operating in load balancing mode, display detailed information about all VRRP groups on the router.

<Sysname> display vrrp verbose

 IPv4 Standby Information:

     Run Mode       : Load Balance

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

   Interface Vlan-interface2

     VRID           : 1               Adver Timer  : 1

     Admin Status   : Up              State        : Master

     Config Pri     : 120             Running Pri  : 110

     Preempt Mode   : Yes             Delay Time   : 5

     Auth Type      : None

     Virtual IP     : 10.1.1.1

     Member IP List : 10.1.1.2 (Local, Master)

                      10.1.1.3 (Backup)

   VRRP Track Information:

     Track Interface: Vlan3          State : Down              Pri Reduced : 10

     Track Object   : 1              State : Positive          Pri Reduced : 50

   Forwarder Information: 2 Forwarders 1 Active

     Config Weight  : 255

     Running Weight : 255

    Forwarder 01

     State          : Active

     Virtual MAC    : 000f-e2ff-0011 (Owner)

     Owner ID       : 0000-5e01-1101

     Priority       : 255

     Active         : local

    Forwarder 02

     State          : Listening

     Virtual MAC    : 000f-e2ff-0012 (Learnt)

     Owner ID       : 0000-5e01-1103

     Priority       : 127

     Active         : 10.1.1.3

   Forwarder Weight Track Information:

     Track Object   : 1              State : Positive       Weight Reduced : 250

   Forwarder Switchover Track Information:

     Track Object   : 2              State : Positive

       Member IP    : 10.1.1.3

Table 4 Command output (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Adver Timer

VRRP advertisement interval, in seconds.

Admin Status

Administrative state:

·     UP.

·     DOWN.

State

Status of the router in the VRRP group:

·     Master.

·     Backup.

·     Initialize.

Config Pri

Configured priority of the router, that is, the priority value specified by using the vrrp vrid priority command.

Running Pri

Running priority of the router, that is, the current priority of the router. With VRRP tracking configured, if the state of the monitored interface or track entry changes, the priority of the router changes.

Preempt Mode

Preemptive mode:

·     Yes—The router in the VRRP group is operating in preemptive mode.

·     No—The router in the VRRP group is operating in non-preemptive mode.

Delay Time

Preemption delay, in seconds.

Become Master

Time to wait before the router becomes the master. The unit is milliseconds.

Only routers in backup mode have such information.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

·     MD5—MD5 authentication.

Key

Authentication key.

Virtual IP

Virtual IP address of the VRRP group.

Member IP List

List of IP addresses of members in the VRRP group. This address list is displayed only when the VRRP group is operating in load balancing mode.

·     Local—IP address of the local device.

·     Master—IP address of the master.

·     Backup—IP address of the backup.

VRRP Track Information

Information of the tracked interface or track entry.

Track Interface

Interface to be tracked. It is displayed only when the vrrp vrid track interface command is executed.

Track Object

Object to be tracked. It is displayed only when the vrrp vrid track command is executed.

State

State of the tracked interface or track entry.

State of a tracked interface:

·     Up.

·     Down.

·     Removed.

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Pri Reduced

The priority value that is reduced when the monitored interface is down or removed, or when the status of the monitored track entry turns to negative. It is displayed only when the vrrp vrid track interface command or the vrrp vrid track command is executed.

Switchover

Switchover mode. When the status of the monitored track entry turns to negative, the backup immediately switches to the master.

Forwarder Information: 2 Forwarders 1 Active

VF Information: The number of VFs of the router is 2, and the number of AVFs is 1.

Config Weight

Configured weight of the VF: 255.

Running Weight

Running weight of the VF, or in other words, the current weight of the VF. When VF tracking is configured, if the state of the monitored track entry changes, the weight of the VF changes.

Forwarder 01

Information about VF 01.

State

State of a VF:

·     Active.

·     Listening.

·     Initialize.

Virtual MAC

Virtual MAC address of the VF.

Owner ID

Real MAC address of the interface of the VF owner.

Priority

VF priority.

Active

The IP address of the interface of the AVF. If the current VF is the AVF, it is displayed as local.

Forwarder Weight Track Configuration

Weight track configuration of the VF. It is displayed only when the vrrp vrid weight track command is executed.

Track Object

Weight track entry. It is displayed only when the vrrp vrid weight track command is executed.

State

Track entry state:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Weight Reduced

The weight value that is reduced when the status of the monitored track entry turns to negative. It is displayed only when the vrrp vrid weight track command is executed.

Forwarder Switchover Track Information

VF switchover information.

The information is displayed only after the vrrp vrid track forwarder-switchover command is executed.

Track Object

Track entry monitored by the VF switchover feature.

The information is displayed only after the vrrp vrid track forwarder-switchover command is executed.

State

Track entry state:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Member IP

IP address of the member device.

If the status of the monitored track entry turns to negative and the local device has an LVF whose corresponding AVF is on the specified member device, the LVF immediately becomes active.

 

display vrrp statistics

Syntax

display vrrp statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Displays VRRP group statistics of the specified interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Displays statistics of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display vrrp statistics to display statistics about VRRP groups.

If you specify both an interface and a VRRP group, only the statistics about the specified VRRP group on the interface are displayed. If you only specify an interface, the statistics about all the VRRP groups on the interface are displayed. If you specify neither, the statistics about all the VRRP groups on the router are displayed.

To clear the VRRP group statistics, use the reset vrrp statistics command.

Related commands: reset vrrp statistics.

Examples

# When VRRP is operating in standard protocol mode, display the statistics about all VRRP groups.

<Sysname> display vrrp statistics

 Interface               : Vlan-interface2

 VRID                    : 1

 CheckSum Errors         : 0          Version Errors                : 0

 Invalid Type Pkts Rcvd  : 0          Advertisement Interval Errors : 0

 IP TTL Errors           : 0          Auth Failures                 : 0

 Invalid Auth Type       : 0          Auth Type Mismatch            : 0

 Packet Length Errors    : 0          Address List Errors           : 0

 Become Master           : 1          Priority Zero Pkts Rcvd       : 0

 Adver Rcvd              : 0          Priority Zero Pkts Sent       : 0

 Adver Sent              : 807

 Global statistics

 CheckSum Errors         : 0

 Version Errors          : 0

 VRID Errors             : 0

# When VRRP is operating in load balancing mode, display the statistics about all VRRP groups.

<Sysname> display vrrp statistics

 Interface               : Vlan-interface2

 VRID                    : 1

 CheckSum Errors         : 0          Version Errors                : 0

 Invalid Type Pkts Rcvd  : 0          Advertisement Interval Errors : 0

 IP TTL Errors           : 0          Auth Failures                 : 0

 Invalid Auth Type       : 0          Auth Type Mismatch            : 0

 Packet Length Errors    : 0          Address List Errors           : 0

 Become Master           : 2          Redirect Timer Expires        : 0

 Become AVF              : 1          Time-out Timer Expires        : 0

 Adver Rcvd              : 0          Request Rcvd                  : 0

 Adver Sent              : 1460       Request Sent                  : 1

 Reply Rcvd              : 0          Release Rcvd                  : 0

 Reply Sent              : 0          Release Sent                  : 0

 Priority Zero Pkts Rcvd : 0          VF Priority Zero Pkts Rcvd    : 0

 Priority Zero Pkts Sent : 1          VF Priority Zero Pkts Sent    : 0

 Status Option Errors    : 0

 Global statistics

 CheckSum Errors         : 0

 Version Errors          : 0

 VRID Errors             : 0

Table 5 Command output (Standard protocol mode)

Field

Description

Interface

Interface to which the VRRP group belongs.

VRID

Serial number of the VRRP group.

CheckSum Errors

Number of packets with checksum errors.

Version Errors

Number of packets with version errors.

Invalid Type Pkts Rcvd

Number of packets with incorrect packet type.

Advertisement Interval Errors

Number of packets with advertisement interval errors.

IP TTL Errors

Number of packets with TTL errors.

Auth Failures

Number of packets with authentication failures.

Invalid Auth Type

Number of packets with authentication failures due to invalid authentication types.

Auth Type Mismatch

Number of packets with authentication failures due to mismatching authentication types.

Packet Length Errors

Number of packets with VRRP packet length errors.

Address List Errors

Number of packets with virtual IP address list errors.

Become Master

Number of times that the router worked as the master.

Priority Zero Pkts Rcvd

Number of received advertisements with the priority of 0.

Adver Rcvd

Number of received advertisements.

Priority Zero Pkts Sent

Number of sent advertisements with the priority of 0.

Adver Sent

Number of advertisements sent.

Global statistics

Global statistics about all VRRP groups.

CheckSum Errors

Total number of packets with checksum errors.

Version Errors

Total number of packets with version errors.

VRID Errors

Total number of packets with VRID errors.

 

Table 6 Command output (Load balancing mode)

Field

Description

Interface

Interface to which the VRRP group belongs.

VRID

Serial number of the VRRP group.

CheckSum Errors

Number of packets with checksum errors.

Version Errors

Number of packets with version errors.

Invalid Type Pkts Rcvd

Number of packets with incorrect packet type.

Advertisement Interval Errors

Number of packets with advertisement interval errors.

IP TTL Errors

Number of packets with TTL errors.

Auth Failures

Number of packets with authentication failures.

Invalid Auth Type

Number of packets with authentication failures due to invalid authentication types.

Auth Type Mismatch

Number of packets with authentication failures due to mismatching authentication types.

Packet Length Errors

Number of packets with VRRP packet length errors.

Address List Errors

Number of packets with virtual IP address list errors.

Become Master

Number of times that the router worked as the master.

Redirect Timer Expires

Number of times that the redirect timer expires.

Become AVF

Number of times that the VF worked as the AVF.

Time-out Timer Expires

Number of times that the timeout timer expires.

Adver Rcvd

Number of received advertisements.

Request Rcvd

Number of received requests.

Adver Sent

Number of advertisements sent.

Request Sent

Number of requests sent.

Reply Rcvd

Number of received replies.

Release Rcvd

Number of received releases.

Reply Sent

Number of replies sent.

Release Sent

Number of releases sent.

Priority Zero Pkts Rcvd

Number of received advertisements with the priority of 0.

VF Priority Zero Pkts Rcvd

Number of received advertisements with the VF priority of 0.

Priority Zero Pkts Sent

Number of sent advertisements with the priority of 0.

VF Priority Zero Pkts Sent

Number of sent advertisements with the VF priority of 0.

Status Option Errors

Number of times that the status option errors.

Global statistics

Global statistics about all VRRP groups.

CheckSum Errors

Total number of packets with checksum errors.

Version Errors

Total number of packets with version errors.

VRID Errors

Total number of packets with VRID errors.

 

reset vrrp statistics

Syntax

reset vrrp statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]

View

User view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Clears VRRP group statistics of a specified interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Clears VRRP statistics of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

Description

Use reset vrrp statistics to clear VRRP group statistics.

If you specify both an interface and a VRRP group, the statistics about the specified VRRP group on the specified interface are cleared. If you specify only the interface, the statistics about all the VRRP groups on the interface are cleared. If you specify neither, the statistics about all the VRRP groups on the router are cleared.

Related commands: display vrrp statistics.

Examples

# Clear the statistics about all the VRRP groups on the router.

<Sysname> reset vrrp statistics

vrrp method

Syntax

vrrp method { real-mac | virtual-mac }

undo vrrp method

View

System view

Default level

2: System level

Parameters

real-mac: Maps the real MAC address of the interface to the virtual IP address of the VRRP group.

virtual-mac: Maps the virtual MAC address to the virtual IP address of the VRRP group.

Description

Use vrrp method to specify the type of the MAC addresses mapped to the virtual IP addresses of the VRRP groups.

Use undo vrrp method to restore the default.

By default, the virtual MAC addresses are mapped to the virtual IP addresses of the VRRP groups.

Specify the type of the MAC addresses mapped to the virtual IP address before creating a VRRP group. Otherwise, you cannot change the type of the MAC address by using this command. .

When VRRP is operating in load balancing mode, a virtual IP address is always mapped to a virtual MAC address regardless of which type of the MAC addresses to be mapped to the virtual IP address is specified.

Related commands: display vrrp.

Examples

# Map the virtual IP address of a VRRP group to the real MAC address of the interface.

<Sysname> system-view

[Sysname] vrrp method real-mac

vrrp un-check ttl

Syntax

vrrp un-check ttl

undo vrrp un-check ttl

View

Interface view

Default level

2: System level

Parameters

None

Description

Use vrrp un-check ttl to disable TTL check on VRRP packets.

Use undo vrrp un-check ttl to enable TTL check on VRRP packets.

By default, TTL check on VRRP packets is enabled.

The master of a VRRP group periodically sends VRRP advertisements to indicate its existence. The VRRP advertisements are multicast onto the local network segment and not forwarded by a router, and therefore the packet TTL value will not be changed. When the master of a VRRP group advertises VRRP packets, it sets the packet TTL to 255. After you configure to check the VRRP packet TTL, when the backups of the VRRP group receive VRRP packets, they check the packet TTL and drop the VRRP packets whose TTL is smaller than 255 to prevent attacks from other network segments.

Because devices of different vendors might implement VRRP in a different way, when the device is interoperating with devices of other vendors, VRRP packet TTL check might result in dropping packets that should not be dropped. In this case, use the vrrp un-check ttl command to disable TTL check on VRRP packets. 

Examples

# Disable TTL check on VRRP packets.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp un-check ttl

vrrp vrid authentication-mode

Syntax

vrrp vrid virtual-router-id authentication-mode { md5 | simple } [ cipher ] key

undo vrrp vrid virtual-router-id authentication-mode

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

md5: Specifies the MD5 authentication mode.

simple: Specifies the simple authentication mode.

cipher: Sets a ciphertext authentication key.

key: Sets the authentication key. This argument is case sensitive.

·     When md5 authentication applies, it must be a plaintext string of 1 to 8 characters or a ciphertext string of 24 characters if the cipher keyword is not specified, or a ciphertext string of 1 to 41 characters if the cipher keyword is specified.

·     When simple authentication applies, it must be a plaintext string of 1 to 8 characters if the cipher keyword is not specified, or a ciphertext string of 1 to 41 characters if the cipher keyword is specified.

Description

Use vrrp vrid authentication-mode to configure authentication mode and authentication key for a VRRP group to send and receive VRRP packets.

Use undo vrrp vrid authentication-mode to restore the default.

By default, authentication is disabled.

For security purposes, all keys, including keys configured in plain text, are saved in cipher text.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

You might configure different authentication modes and authentication keys for the VRRP groups on an interface. However, the members of the same VRRP group must use the same authentication mode and authentication key.

Related commands: display vrrp.

Examples

# Set the authentication mode to simple and authentication key to Sysname for VRRP group 1 on VLAN-interface 2 to send and receive VRRP packets.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 authentication-mode simple Sysname

vrrp vrid preempt-mode

Syntax

vrrp vrid virtual-router-id preempt-mode [ timer delay delay-value ]

undo vrrp vrid virtual-router-id preempt-mode [ timer delay ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

timer delay delay-value: Sets preemption delay. The value range for the delay-value argument is 0 to 255 seconds, and the default is 0 seconds.

Description

Use vrrp vrid preempt-mode to enable preemption on the router and configure its preemption delay in a specific VRRP group.

Use undo vrrp vrid preempt-mode to disable preemption on the router in a specific VRRP group. As a result, the router is operating in non-preemptive mode.

Use undo vrrp vrid preempt-mode timer delay to restore the default preemption delay.

By default, the router is operating in preemptive mode and the preemption delay is 0 seconds.

To avoid frequent member state changes in a VRRP group and make the backups have enough time to collect information (such as routing information), each backup waits for a period of time (the preemption delay time) after it receives an advertisement with the priority lower than the local priority, then sends VRRP advertisements to start a new master election in the VRRP group and becomes the master.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

Related commands: display vrrp.

Examples

# Enable preemption on the switch in VRRP group 1, and set the preemption delay to 5 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5

vrrp vrid priority

Syntax

vrrp vrid virtual-router-id priority priority-value

undo vrrp vrid virtual-router-id priority

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

priority-value: Specifies the priority value of the router in the specified VRRP group, in the range of 1 to 254. A higher number indicates a higher priority.

Description

Use vrrp vrid priority to configure the priority of the router in the specified VRRP group.

Use undo vrrp vrid priority to restore the default.

By default, the priority of a router in a VRRP group is 100.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

The role that a router plays in a VRRP group depends on its priority. A higher priority means that the router is more likely to become the master. Priority 0 is reserved for special use and 255 for the IP address owner.

If the router is the IP address owner, its priority is always 255. Therefore, it remains as the master so long as it is functioning correctly.

Related commands: display vrrp.

Examples

# Set the priority of VRRP group 1 on VLAN-interface 2 to 150.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 priority 150

vrrp vrid timer advertise

Syntax

vrrp vrid virtual-router-id timer advertise adver-interval

undo vrrp vrid virtual-router-id timer advertise

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

adver-interval: Specifies the interval at which the master in the specified VRRP group sends VRRP advertisements, in the range of 1 to 255 seconds.

Description

Use vrrp vrid timer advertise to configure the Adver_Timer of the specified VRRP group.

Use undo vrrp vrid timer advertise to restore the default.

By default the Adver_Timer is 1 second.

The Adver_Timer controls the interval at which the master sends VRRP packets.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

Routers in the same VRRP group must use the same Adver_Timer setting.

Related commands: display vrrp.

Examples

# Set the master in VRRP group 1 to send VRRP advertisements at intervals of 5 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 timer advertise 5

vrrp vrid track

Syntax

vrrp vrid virtual-router-id track track-entry-number [ forwarder-switchover member-ip ip-address | reduced priority-reduced | switchover ]

undo vrrp vrid virtual-router-id track [ track-entry-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

track track-entry-number: Specifies a track entry. The value range for the track-entry-number argument is 1 to 1024.

forwarder-switchover member-ip ip-address: Enables the LVF on the router to take over the role of the AVF at the specified IP address immediately after the specified track entry changes to the negative state. You can use the display vrrp verbose command to view the IP addresses of VFs.

reduced priority-reduced: Reduces the priority of the router in the VRRP group by a specific value when the state of the specified track entry changes to the negative state. The value range for the priority-reduced argument is 1 to 255.

switchover: Enables the router in backup state to take over as the master immediately after the specified track entry changes to the negative state.

Description

Use vrrp vrid track to associate a VRRP group with a track entry and control master switchover or AVF switchover in the VRRP group in response to changes (such as uplink state changes) detected by the track entry.

Use undo vrrp vrid track to remove the association between a VRRP group and a track entry. If no track entry is specified, the association between the VRRP group and any track entry is removed.

By default, a VRRP group is not associated with any track entry.

When the associated track entry changes to the negative state, the priority of the router in the VRRP group decreases by a specified value, or the router immediately takes over as the master if it is a backup router, or the LVF on the router immediately takes over the role of the AVF at the specified IP address, depending on your configuration.

If forwarder-switchover member-ip ip-address, reduced priority-reduced, and switchover are not specified, the priority of the router in the VRRP group decreases by 10 when the track entry changes to negative.

When the track entry changes from negative to positive or invalid, the router automatically restores its priority.

 

IMPORTANT

IMPORTANT:

You must create the VRRP group and assign a virtual IP address to it before you can associate it with any track entry.

The vrrp vrid track command cannot take effect on an IP address owner. If you have configured the command on an IP address owner, the configuration takes effect after the router changes to be a non IP address owner.

 

You can create a track entry with the track command before or after you associate it with a VRRP group. For more information about configuring track entries, see High Availability Configuration Guide.

Related commands: display vrrp.

Examples

# Associate VRRP group 1 on VLAN-interface 2 with track entry 1 and decrease the priority of the router in the VRRP group by 50 when the state of track entry 1 changes to negative.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 track 1 reduced 50

# Associate VRRP group 1 on VLAN-interface 2 with track entry 2 and enable the VF in listening state whose AVF is on the member device with the IP address of 10.1.1.3 to take over as the AVF immediately after the specified track entry changes to the negative state.

[Sysname-Vlan-interface2] vrrp vrid 1 track 2 forwarder-switchover member-ip 10.1.1.3

vrrp vrid track interface

Syntax

vrrp vrid virtual-router-id track interface interface-type interface-number [ reduced priority-reduced ]

undo vrrp vrid virtual-router-id track [ interface interface-type interface-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

interface interface-type interface-number: Specifies an interface to be tracked by its type and number.

reduced priority-reduced: Value by which the priority decrements. The value range for the priority-reduced argument is 1 to 255, and the default is 10.

Description

Use vrrp vrid track interface to configure to track the specified interface.

Use undo vrrp vrid track interface to disable tracking the specified interface.

By default, no interface is tracked.

When the uplink interface of a router in a VRRP group fails, usually the VRRP group cannot be aware of the uplink interface failure. If the router is the master of the VRRP group, hosts on the LAN are not able to access external networks because of the uplink failure. This problem can be solved through tracking a specified uplink interface. After you configure to monitor the uplink interface, when the uplink interface is down or removed, the priority of the master is automatically decreased by a specified value, allowing a higher priority router in the VRRP group to become the master.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

If you configure an interface to be tracked on a router that is the IP address owner in a VRRP group, the configuration does not take effect. If the router is not the IP address owner in the VRRP group later, the configuration takes effect.

When the status of the tracked interface turns from down or removed to up, the corresponding router automatically restores its priority.

The interface specified in this command can be a Layer 3 Ethernet interface, a VLAN interface, a Layer 3 aggregate interface, a POS interface, an HDLC link bundle interface, or an RPR logical interface.

Related commands: display vrrp.

Examples

# On VLAN-interface 2, set the interface to be tracked as VLAN-interface 1, making the priority of VRRP group 1 on VLAN-interface 2 decrement by 50 when VLAN-interface 1 is down or removed.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 track interface vlan-interface 1 reduced 50

vrrp vrid virtual-ip

Syntax

vrrp vrid virtual-router-id virtual-ip virtual-address

undo vrrp vrid virtual-router-id [ virtual-ip virtual-address ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

virtual-address: Specifies the virtual IP address.

Description

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

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

By default, no VRRP group is created.

The system removes a VRRP group after you delete all the virtual IP addresses in it.

The virtual IP address of a VRRP group cannot be 0.0.0.0, 255.255.255.255, loopback address, non A/B/C address and other illegal IP addresses such as 0.0.0.1.

A VRRP group operates correctly only when the configured virtual IP address and the interface IP address belong to the same segment and are legal host addresses. If they are not in the same network segment, or the configured IP address is the network address or network broadcast address of the network segment to which the interface IP address belongs, though you can perform the configuration successfully, the state of the VRRP group is always Initialize, which means VRRP does not take effect .

Related commands: display vrrp.

Examples

# Create VRRP group 1 and set its virtual IP address to 10.10.10.10.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.10

# Add virtual IP address 10.10.10.11 to VRRP group 1.

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.11

vrrp vrid weight track

Syntax

vrrp vrid virtual-router-id weight track track-entry-number [ reduced weight-reduced ]

undo vrrp vrid virtual-router-id weight track [ track-entry-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number in the range of 1 to 1024.

reduced weight-reduced: Specifies the value by which the weight decreases, in the range of 1 to 255. The default setting is 30.

Description

Use vrrp vrid weight track to specify the track entry to be monitored by VFs when VRRP is operating in load balancing mode. If the status of the monitored track entry changes to negative, the weights of all VFs in the VRRP group to which the current router belongs decrease by a specified value.

Use undo vrrp vrid weight track to remove the specified track entry.

By default, no track entry is specified to be monitored.

The command is effective only when VRRP is operating in load balancing mode.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

When the status of the monitored track entry turns from negative to positive or invalid, the corresponding VFs automatically restore their weights.

The track entry specified in this command can be nonexistent. You can use the vrrp vrid weight track command to specify a track entry, and then create the track entry using the track command.

By default, the weight of a VF is 255, and the lower limit of failure is 10. When the weight of a VF owner is no less than the lower limit of failure, the priority of the VF owner is always 255. To enable other VFs to take over the role of the VF owner as the AVF when the uplink interface fails, you must set a value larger than 245 for the reduced weight-reduced option.

For more information about track entries, see High Availability Configuration Guide.

Related commands: display vrrp.

Examples

# Configure to monitor track entry 1, making the weights of VFs belonging to VRRP group 1 on VLAN-interface 2 decrease by 50 when track entry 1 turns to negative.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1

[Sysname-Vlan-interface2] vrrp vrid 1 weight track 1 reduced 50

IPv6-based VRRP configuration commands

display vrrp ipv6

Syntax

display vrrp ipv6 [ verbose ] [ interface interface-type interface-number [ vrid virtual-router-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

verbose: Displays detailed state information of VRRP groups.

interface interface-type interface-number: Displays VRRP group state information of the specified interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Displays state information of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display vrrp ipv6 to display the state information of VRRP groups for IPv6.

If you do not specify the verbose keyword, only the brief state information of VRRP groups is displayed.

If you specify both an interface and a VRRP group, only the state information of the specified VRRP group on the interface is displayed. If you only specify an interface, the state information of all the VRRP groups on the interface is displayed. If you specify neither, the state information of all the VRRP groups on the router is displayed.

Examples

# When VRRP is operating in standard protocol mode, display brief information about all VRRP groups on the router.

<Sysname> display vrrp ipv6

IPv6 Standby Information:

     Run Mode       : Standard

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

 Interface          VRID  State        Run     Adver   Auth     Virtual

                                       Pri     Timer   Type        IP

 ---------------------------------------------------------------------

 Vlan2              1      Master      140     100     Simple   FE80::1

Table 7 Command output (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Run Pri

Running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, when the state of the monitored interface or track entry changes, the priority of the router changes.

Adver Timer

VRRP advertisement interval in centiseconds.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

Virtual IP

Virtual IPv6 addresses of the VRRP group.

 

# When VRRP is operating in standard protocol mode, display detailed information about all VRRP groups on the router.

<Sysname> display vrrp ipv6 verbose

 IPv6 Standby Information:

     Run Mode       : Standard

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

   Interface Vlan-interface2

     VRID           : 1               Adver Timer  : 100

     Admin Status   : Up              State        : Master

     Config Pri     : 150             Running Pri  : 140

     Preempt Mode   : Yes             Delay Time   : 10

     Auth Type      : Simple          Key          : ******

     Virtual IP     : FE80::1

     Virtual MAC    : 0000-5e00-0201

     Master IP      : FE80::2

   VRRP Track Information:

     Track Interface: Vlan3          State : Down              Pri Reduced : 10

     Track Object   : 1              State : Positive          Pri Reduced : 50

Table 8 Command output (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Adver Timer

VRRP advertisement interval in centiseconds.

Admin Status

Administrative state:

·     UP.

·     DOWN.

State

Status of the router in the VRRP group:

·     Master.

·     Backup.

·     Initialize.

Config Pri

Configured priority of the router, or in other words, the priority value specified by using the vrrp ipv6 vrid priority command.

Running Pri

Running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, when the state of the monitored interface or track entry changes, the priority of the router changes.

Preempt Mode

Preemptive mode:

·     Yes—The router in the VRRP group is operating in preemptive mode.

·     No—The router in the VRRP group is operating in non-preemptive mode.

Delay Time

Preemption delay, in seconds.

Become Master

Time to wait before the router becomes the master. The unit is milliseconds.

Only routers in backup mode have such information.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

Key

Authentication key.

Virtual IP

Virtual IPv6 addresses of the VRRP group.

Virtual MAC

Virtual MAC address that corresponds to the virtual IPv6 address of the VRRP group. It is displayed only when the router is in the state of master.

Master IP

Primary IP address of the interface where the router in the state of master resides.

VRRP Track Information

Information of the tracked interface or track entry. It is displayed only when the vrrp ipv6 vrid track or vrrp ipv6 vrid track interface command is executed.

Track Interface

Interface to be tracked. It is displayed only when the vrrp ipv6 vrid track interface command is executed.

Track Object

Track entry to be tracked. It is displayed only when the vrrp ipv6 vrid track command is executed.

State

State of the tracked interface or track entry.

State of a tracked interface:

·     Up.

·     Down.

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Pri Reduced

The priority value that is reduced when the monitored interface is down or removed, or when the status of the monitored track entry turns to negative. It is displayed only when the vrrp ipv6 vrid track interface or vrrp ipv6 vrid track command is executed.

Switchover

Switchover mode. If the status of the monitored track entry turns to negative, the backup immediately switches to the master.

 

# When VRRP is operating in load balancing mode, display brief information about all VRRP groups on the router.

<Sysname> display vrrp ipv6

 IPv6 Standby Information:

     Run Mode       : Load Balance

     Run Method     : Virtual MAC

 Total number of virtual routers : 2

 Interface          VRID   State       Run   Address             Active

                                       Pri

 ----------------------------------------------------------------------

 Vlan2              1      Master      140   FE80::1             Local

 -----              VF 1   Active      255   000f-e2ff-4011      Local

Table 9 Command output (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group number or ID of the VF VF number.

State

·     If VRID is number, this field indicates the status of the router in the VRRP group, including Master, Backup, and Initialize.

·     If VRID is VF number, this field indicates the status of the VF in the VRRP group, including Active, Listening, and Initialize.

Run Pri

·     If VRID is number, this field indicates the running priority of the router, that is, the current priority of the router. With VRRP tracking configured, when the state of the monitored interface or track entry changes, the priority of the router changes.

·     If VRID is VF number, this field indicates the running priority of the VF. With VF tracking configured, when the state of the monitored track entry changes, the priority of the VF changes.

Address

·     If VRID is number, this field indicates the virtual IP address of the VRRP group.

·     If VRID is VF number, this field indicates the virtual MAC address of the VF.

Active

·     If VRID is number, this field indicates the IP address of the interface of the master. If the current router is the master, it is displayed as local.

·     If VRID is VF number, this field indicates the IP address of the interface of the active virtual forwarder (AVF). If the current VF is the AVF, it is displayed as local.

 

# When VRRP is operating in load balancing mode, display detailed information about all VRRP groups on the router.

<Sysname> display vrrp ipv6 verbose

 IPv6 Standby Information:

     Run Mode       : Load Balance

     Run Method     : Virtual MAC

 Total number of virtual routers : 1

   Interface Vlan-interface2

     VRID           : 1               Adver Timer  : 100

     Admin Status   : Up              State        : Master

     Config Pri     : 120             Running Pri  : 110

     Preempt Mode   : Yes             Delay Time   : 5

     Auth Type      : None

     Virtual IP     : FE80::10

     Member IP List : FE80::1 (Local, Master)

                      FE80::2 (Backup)

   VRRP Track Information:

     Track Interface: Vlan3          State : Down              Pri Reduced : 10

     Track Object   : 1              State : Positive          Pri Reduced : 50

   Forwarder Information: 2 Forwarders 1 Active

     Config Weight  : 255

     Running Weight : 255

    Forwarder 01

     State          : Active

     Virtual MAC    : 000f-e2ff-4011 (Owner)

     Owner ID       : 0000-5e01-1101

     Priority       : 255

     Active         : local

    Forwarder 02

     State          : Listening

     Virtual MAC    : 000f-e2ff-4012 (Learnt)

     Owner ID       : 0000-5e01-1103

     Priority       : 127

     Active         : FE80::2

   Forwarder Weight Track Information:

     Track Object   : 1          State : Positive   Weight Reduced : 250

   Forwarder Switchover Track Information:

     Track Object   : 2              State : Positive

       Member IP    : FE80::2

Table 10 Command output (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode:

·     Standard—Standard protocol mode.

·     Load Balance—Load balancing mode.

Run Method

Current VRRP running mode:

·     Real MAC—Real MAC mode, which means the virtual IP address of the VRRP group is mapped to the real MAC address of the interface.

·     Virtual MAC—Virtual MAC mode, which means the virtual IP address of the VRRP group is mapped to the virtual MAC address.

Total number of virtual routers

Number of VRRP groups.

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

Adver Timer

VRRP advertisement interval, in centiseconds.

Admin Status

Administrative state:

·     UP.

·     DOWN.

State

Status of the router in the VRRP group:

·     Master.

·     Backup.

·     Initialize.

Config Pri

Configured priority of the router, or in other words, the priority value specified by using the vrrp ipv6 vrid priority command.

Running Pri

Running priority of the router, or in other words, the current priority of the router. With VRRP tracking configured, if the state of the monitored interface or track entry changes, the priority of the router changes.

Preempt Mode

Preemptive mode:

·     Yes—The router in the VRRP group is operating in preemptive mode.

·     No—The router in the VRRP group is operating in non-preemptive mode.

Delay Time

Preemption delay, in seconds.

Become Master

Time to wait before the router becomes the master. The unit is milliseconds.

Only routers in backup mode have such information.

Auth Type

Authentication type:

·     None—No authentication.

·     Simple—Simple text authentication.

Key

Authentication key.

Virtual IP

Virtual IP addresses of the VRRP group.

Member IP List

List of IP addresses of members in the VRRP group. This address list is displayed only when the VRRP group is operating in load balancing mode.

·     Local—IP address of the local device.

·     Master—IP address of the master.

·     Backup—IP address of the backup.

VRRP Track Information

Information of the tracked interface or object.

Track Interface

Interface to be tracked. It is displayed only when the vrrp ipv6 vrid track interface command is executed.

Track Object

Track entry to be tracked. It is displayed only when the vrrp ipv6 vrid track command is executed.

State

State of the tracked interface or track entry.

State of a tracked interface:

·     Up.

·     Down.

·     Removed.

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Pri Reduced

The priority value that is reduced when the monitored interface is down or removed, or when the status of the monitored track entry turns to negative. It is displayed only when the vrrp ipv6 vrid track interface command or the vrrp ipv6 vrid track command is executed.

Switchover

Switchover mode. When the status of the monitored track entry turns to negative, the backup immediately switches to the master.

Forwarder Information: 2 Forwarders 1 Active

VF Information: The number of VFs of the router is 2, and the number of AVFs is 1.

Config Weight

Configured weight of the VF: 255.

Running Weight

Running weight of the VF, or in other words, the current weight of the VF. With VF tracking configured, if the state of the monitored track entry changes, the weight of the VF changes.

Forwarder 01

Information about VF 01.

State

State of a VF:

·     Active.

·     Listening.

·     Initialize.

Virtual MAC

Virtual MAC address of the VF.

Owner ID

Real MAC address of the interface of the VF owner.

Priority

VF priority.

Active

IP address of the interface of the AVF. If the current VF is the AVF, it is displayed as local.

Forwarder Weight Track Configuration

Weight track configuration of the VF. It is displayed only when the vrrp ipv6 vrid weight track command is executed.

Track Object

Weight track entry. It is displayed only when the vrrp ipv6 vrid weight track command is executed.

State

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Weight Reduced

The weight value that is reduced when the status of the monitored track entry turns to negative. It is displayed only when the vrrp ipv6 vrid weight track command is executed.

Forwarder Switchover Track Information

VF switchover information.

The information is displayed only after the vrrp ipv6 vrid track forwarder-switchover command is executed.

Track Object

Track entry monitored by the VF switchover feature.

The information is displayed only after the vrrp ipv6 vrid track forwarder-switchover command is executed.

State

State of a track entry:

·     Invalid.

·     Negative.

·     Positive.

·     Not existing.

Member IP

IP address of the member device.

If the status of the monitored track entry turns to negative and the local device has an LVF whose corresponding AVF is on the specified member device, the LVF immediately becomes active.

 

display vrrp ipv6 statistics

Syntax

display vrrp ipv6 statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Displays VRRP group statistics information of the specified interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Displays statistics information of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display vrrp ipv6 statistics to display statistics about VRRP groups for IPv6.

If you specify both an interface and a VRRP group, only the statistics about the specified VRRP group on the interface are displayed. If you only specify an interface, the statistics about all the VRRP groups on the interface are displayed. If you specify neither, the statistics about all the VRRP groups on the router are displayed.

To clear the VRRP group statistics, use the reset vrrp ipv6 statistics command.

Related commands: reset vrrp ipv6 statistics.

Examples

# When VRRP is operating in standard protocol mode, display the statistics about all VRRP groups.

<Sysname> display vrrp ipv6 statistics

 Interface               : Vlan-interface2

 VRID                    : 2

 CheckSum Errors         : 0          Version Errors                : 0

 Invalid Type Pkts Rcvd  : 0          Advertisement Interval Errors : 0

 Hop Limit Errors        : 0          Auth Failures                 : 0

 Invalid Auth Type       : 0          Auth Type Mismatch            : 0

 Packet Length Errors    : 0          Address List Errors           : 0

 Become Master           : 0          Priority Zero Pkts Rcvd       : 0

 Adver Rcvd              : 0          Priority Zero Pkts Sent       : 0

 Adver Sent              : 0

 Global statistics

 CheckSum Errors         : 0

 Version Errors          : 0

 VRID Errors             : 0

# When VRRP is operating in load balancing mode, display the statistics about all VRRP groups.

<Sysname> display vrrp ipv6 statistics

 Interface               : Vlan-interface2

 VRID                    : 2

 CheckSum Errors         : 0          Version Errors                : 0

 Invalid Type Pkts Rcvd  : 0          Advertisement Interval Errors : 0

 Hop Limit Errors        : 0          Auth Failures                 : 0

 Invalid Auth Type       : 0          Auth Type Mismatch            : 0

 Packet Length Errors    : 0          Address List Errors           : 0

 Become Master           : 0          Redirect Timer Expires        : 0

 Become AVF              : 0          Time-out Timer Expires        : 0

 Adver Rcvd              : 0          Request Rcvd                  : 0

 Adver Sent              : 0          Request Sent                  : 0

 Reply Rcvd              : 0          Release Rcvd                  : 0

 Reply Sent              : 0          Release Sent                  : 0

 Priority Zero Pkts Rcvd : 0          VF Priority Zero Pkts Rcvd    : 0

 Priority Zero Pkts Sent : 0          VF Priority Zero Pkts Sent    : 0

 Status Option Errors    : 0

 Global statistics

 CheckSum Errors         : 0

 Version Errors          : 0

 VRID Errors             : 0

Table 11 Command output (standard protocol mode)

Field

Description

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

CheckSum Errors

Number of packets with checksum errors.

Version Errors

Number of packets with version errors.

Invalid Type Pkts Rcvd

Number of packets with incorrect packet type.

Advertisement Interval Errors

Number of packets with advertisement interval errors.

Hop Limit Errors

Number of packets with hop limit errors.

Auth Failures

Number of packets with authentication failures.

Invalid Auth Type

Number of packets with authentication failures due to invalid authentication types.

Auth Type Mismatch

Number of packets with authentication failures due to mismatching authentication types.

Packet Length Errors

Number of packets with VRRP packet length errors.

Address List Errors

Number of packets with virtual IP address list errors.

Become Master

Number of times that the router worked as the master.

Priority Zero Pkts Rcvd

Number of received advertisements with the priority of 0.

Adver Rcvd

Number of received advertisements.

Priority Zero Pkts Sent

Number of advertisements with the priority of 0 sent.

Adver Sent

Number of advertisements sent.

Global statistics

Global statistics about all VRRP groups.

CheckSum Errors

Total number of packets with checksum errors.

Version Errors

Total number of packets with version errors.

VRID Errors

Total number of packets with VRID errors.

 

Table 12 Command output (load balancing mode)

Field

Description

Interface

Interface to which the VRRP group belongs.

VRID

ID of the VRRP group.

CheckSum Errors

Number of packets with checksum errors.

Version Errors

Number of packets with version errors.

Invalid Type Pkts Rcvd

Number of packets with incorrect packet type.

Advertisement Interval Errors

Number of packets with advertisement interval errors.

Hop Limit Errors

Number of packets with hop limit errors.

Auth Failures

Number of packets with authentication failures.

Invalid Auth Type

Number of packets with authentication failures due to invalid authentication types.

Auth Type Mismatch

Number of packets with authentication failures due to mismatching authentication types.

Packet Length Errors

Number of packets with VRRP packet length errors.

Address List Errors

Number of packets with virtual IP address list errors.

Become Master

Number of times that the router worked as the master.

Redirect Timer Expires

Number of times that the redirect timer expires.

Become AVF

Number of times that the VF worked as the AVF.

Time-out Timer Expires

Number of times that the timeout timer expires.

Adver Rcvd

Number of received advertisements.

Request Rcvd

Number of received requests.

Adver Sent

Number of advertisements sent.

Request Sent

Number of requests sent.

Reply Rcvd

Number of received replies.

Release Rcvd

Number of received releases.

Reply Sent

Number of replies sent.

Release Sent

Number of releases sent.

Priority Zero Pkts Rcvd

Number of received advertisements with the priority of 0.

VF Priority Zero Pkts Rcvd

Number of received advertisements with the VF priority of 0.

Priority Zero Pkts Sent

Number of sent advertisements with the priority of 0.

VF Priority Zero Pkts Sent

Number of sent advertisements with the VF priority of 0.

Status Option Errors

Number of times that the status option errors.

Global statistics

Global statistics about all VRRP groups.

CheckSum Errors

Total number of packets with checksum errors.

Version Errors

Total number of packets with version errors.

VRID Errors

Total number of packets with VRID errors.

 

reset vrrp ipv6 statistics

Syntax

reset vrrp ipv6 statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]

View

User view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Clears VRRP group statistics of a specific interface. interface-type interface-number specifies an interface by its type and number.

vrid virtual-router-id: Clears VRRP statistics of the specified VRRP group. virtual-router-id specifies a VRRP group by its group number in the range of 1 to 255.

Description

Use reset vrrp ipv6 statistics to clear VRRP group statistics.

If you specify both an interface and a VRRP group, the statistics about the specified VRRP group on the specified interface are cleared. If you specify only an interface, the statistics about all the VRRP groups on the interface are cleared. If you specify neither, the statistics about all the VRRP groups on the router are cleared.

Related commands: display vrrp ipv6 statistics.

Examples

# Clear the statistics about all the VRRP groups on the router.

<Sysname> reset vrrp ipv6 statistics

vrrp ipv6 method

Syntax

vrrp ipv6 method { real-mac | virtual-mac }

undo vrrp ipv6 method

View

System view

Default level

2: System level

Parameters

real-mac: Maps the real MAC address of the interface to the virtual IPv6 addresses of VRRP groups.

virtual-mac: Maps the virtual MAC addresses to the virtual IPv6 addresses of VRRP groups.

Description

Use vrrp ipv6 method to specify the type of the MAC addresses mapped to the virtual IPv6 addresses of the VRRP groups.

Use undo vrrp ipv6 method to restore the default.

By default, the virtual MAC addresses are mapped to the virtual IP addresses of the VRRP groups.

Specify the type of the MAC addresses mapped to the virtual IPv6 addresses before creating a VRRP group. Otherwise, you cannot change the type of the MAC address by using this command.

When VRRP is operating in load balancing mode, a virtual IPv6 address is always mapped to a virtual MAC address regardless of which type of the MAC addresses to be mapped to the virtual IP addresses is specified.

Related commands: display vrrp ipv6.

Examples

# Map the virtual IPv6 address of the current VRRP group to the real MAC address of the interface.

<Sysname> system-view

[Sysname] vrrp ipv6 method real-mac

vrrp ipv6 vrid authentication-mode

Syntax

vrrp ipv6 vrid virtual-router-id authentication-mode simple [ cipher ] key

undo vrrp ipv6 vrid virtual-router-id authentication-mode

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

simple: Specifies the simple authentication mode.

cipher: Sets a ciphertext authentication key.

key: Sets the authentication key. This argument is case sensitive. If cipher is not specified, it must be a plaintext string of 1 to 8 characters. If cipher is specified, it must be a ciphertext string of 1 to 41 characters.

Description

Use vrrp ipv6 vrid authentication-mode to configure authentication mode and authentication key for the VRRP groups to send and receive VRRP packets.

Use undo vrrp ipv6 vrid authentication-mode to restore the default.

By default, authentication is disabled.

For security purposes, all keys, including keys configured in plain text, are saved in cipher text.

Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.

You might configure different authentication types and authentication keys for the VRRP groups on an interface. However, the members of the same VRRP group must use the same authentication mode and authentication key.

Related commands: display vrrp ipv6.

Examples

# Set the authentication mode to simple and authentication key to test for VRRP group 10 on VLAN-interface 2 to send and receive VRRP packets.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 10 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 10 authentication-mode simple test

vrrp ipv6 vrid preempt-mode

Syntax

vrrp ipv6 vrid virtual-router-id preempt-mode [ timer delay delay-value ]

undo vrrp ipv6 vrid virtual-router-id preempt-mode [ timer delay ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

timer delay delay-value: Sets preemption delay. The value range for the delay-value argument is 0 to 255 seconds, and the default is 0 seconds.

Description

Use vrrp ipv6 vrid preempt-mode to configure preemption on the router and configure its preemption delay in a specific VRRP group.

Use undo vrrp ipv6 vrid preempt-mode to disable preemption on the router in a specific VRRP group. As a result, the router is operating in non-preemptive mode.

Use undo vrrp ipv6 vrid preempt-mode timer delay to restore the default preemption delay.

By default, the router is operating in preemptive mode and the preemption delay is 0 seconds.

If you set the router in the VRRP group to operate in non-preemptive mode, the delay period automatically changes to 0 seconds.

To avoid frequent member state changes in a VRRP group and make the backups have enough time to collect information (such as routing information), each backup waits for a period of time (the preemption delay time) after it receives an advertisement with the priority lower than the local priority, then sends VRRP advertisements to start a new master election in the VRRP group and becomes the master.

Before executing the command, create a VRRP group on an interface and configure the virtual IPv6 address of the VRRP group.

Related commands: display vrrp ipv6.

Examples

# Enable preemption on the switch in VRRP group 80 and set the preemption delay to 5 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 10 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 10 preempt-mode timer delay 5

vrrp ipv6 vrid priority

Syntax

vrrp ipv6 vrid virtual-router-id priority priority-value

undo vrrp ipv6 vrid virtual-router-id priority

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

priority-value: Specifies the priority value of the router in the specified VRRP group, in the range of 1 to 254. A higher number indicates a higher priority.

Description

Use vrrp ipv6 vrid priority to configure the priority of the router in the specified VRRP group.

Use undo vrrp ipv6 vrid priority to restore the default.

By default, the priority of a router in a VRRP group is 100.

Before executing the command, create a VRRP group on an interface and configure the virtual IPv6 address of the VRRP group.

The role that a router plays in a VRRP group depends on its priority. A higher priority means that the router is more likely to become the master. Priority 0 is reserved for special use and 255 for the IP address owner.

If the router is the IP address owner, its priority is always 255. Therefore, it remains as the master as long as it is functioning correctly.

Related commands: display vrrp ipv6.

Examples

# Set the priority of VRRP group 1 on VLAN-interface 2 to 150.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 priority 150

vrrp ipv6 vrid timer advertise

Syntax

vrrp ipv6 vrid virtual-router-id timer advertise adver-interval

undo vrrp ipv6 vrid virtual-router-id timer advertise

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

adver-interval: Specifies the interval at which the master in the specified VRRP group sends VRRP advertisements, in the range of 100 to 4095 centiseconds.

Description

Use vrrp ipv6 vrid timer advertise to configure the Adver_Timer of the specified VRRP group.

Use undo vrrp ipv6 vrid timer advertise to restore the default.

By default the Adver_Timer is 100 centiseconds.

The Adver_Timer controls the interval at which the master sends VRRP packets.

Before executing the command, create a VRRP group on an interface and configure the virtual IPv6 address of the VRRP group.

Routers in the same VRRP group must use the same Adver_Timer setting.

Related commands: display vrrp ipv6.

Examples

# Set the master in VRRP group 1 to send VRRP advertisements at intervals of 500 centiseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 timer advertise 500

vrrp ipv6 vrid track

Syntax

vrrp ipv6 vrid virtual-router-id track track-entry-number [ forwarder-switchover member-ip ipv6-address | reduced priority-reduced | switchover ]

undo vrrp ipv6 vrid virtual-router-id track [ track-entry-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

track track-entry-number: Specifies a track entry. The value range for the track-entry-number argument is 1 to 1024.

forwarder-switchover member-ip ipv6-address: Enables the LVF on the router to take over the role of the AVF at the specified IPv6 address immediately after the specified track entry changes to the negative state. You can use the display vrrp verbose command to view the IPv6 addresses of VFs.

reduced priority-reduced: Reduces the priority of the router in the VRRP group by a specific value when the state of the specified track entry changes to the negative state. The value range for the priority-reduced argument is 1 to 255.

switchover: Enables the router in backup state to take over as the master immediately after the specified track entry changes to the negative state.

Description

Use vrrp ipv6 vrid track to associate an IPv6 VRRP group with a track entry and control master switchover or AVF switchover in the VRRP group in response to changes (such as uplink state changes) detected by the track entry.

Use undo vrrp ipv6 vrid track to remove the association between an IPv6 VRRP group and a track entry. If no track entry is specified, the association between the VRRP group and any track entry is removed.

By default, an IPv6 VRRP group is not associated with any track entry.

When the associated track entry changes to the negative state, the priority of the router in the VRRP group decreases by a specified value, or the router immediately takes over as the master if it is a backup router, or the LVF on the router immediately takes over the role of the AVF at the specified IPv6 address, depending on your configuration.

If forwarder-switchover member-ip ipv6-address, reduced priority-reduced, and switchover are not specified, the priority of the router in the VRRP group decreases by 10 when the track entry changes to negative.

When the track entry changes from negative to positive or invalid, the router automatically restores its priority.

 

IMPORTANT

IMPORTANT:

You must create the VRRP group and assign a virtual IP address to it before you can associate it with any track entry.

The vrrp ipv6 vrid track command cannot take effect on an IP address owner. If you have configured the command on an IP address owner, the configuration takes effect after the router changes to be a non IP address owner.

 

You can create a track entry with the track command before or after you associate it with an IPv6 VRRP group. For more information about configuring track entries, see High Availability Configuration Guide.

Related commands: display vrrp ipv6.

Examples

# Associate IPv6 VRRP group 1 on VLAN-interface 2 with track entry 1 and decrease the priority of the router in the VRRP group by 50 when the state of track entry 1 changes to negative.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 1 reduced 50

# Associate VRRP group 1 on VLAN-interface 2 with track entry 2 and enable the VF in listening state whose AVF is on the member device with the IP address of FE80::10 to take over as the AVF immediately after the specified track entry changes to the negative state.

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 2 forwarder-switchover member-ip fe80::10

vrrp ipv6 vrid track interface

Syntax

vrrp ipv6 vrid virtual-router-id track interface interface-type interface-number [ reduced priority-reduced ]

undo vrrp ipv6 vrid virtual-router-id track [ interface interface-type interface-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

interface interface-type interface-number: Specifies an interface by its type and number.

reduced priority-reduced: Value by which the priority decrements. The value range for the priority-reduced argument is 1 to 255, and the default is 10.

Description

Use vrrp ipv6 vrid track interface to configure to track the specified interface.

Use undo vrrp ipv6 vrid track interface to disable tracking the specified interface.

By default, no interface is being tracked.

When the uplink interface of a router in a VRRP group fails, usually the VRRP group cannot be aware of the uplink interface failure. If the router is the master of the VRRP group, hosts on the LAN are not able to access external networks because of the uplink failure. This problem can be solved by the tracking a specified uplink interface. When the uplink interface is down or removed, the priority of the master is automatically decreased by a specified value, allowing a higher priority router in the VRRP group to become the master.

Before executing the command, create a VRRP group on an interface and configure the virtual IPv6 address of the VRRP group.

If you configure an interface to be tracked on a router that is the IP address owner in a VRRP group, the configuration does not take effect. If the router is not the IP address owner in the VRRP group later, the configuration takes effect.

When the status of the tracked interface turns from down or removed to up, the corresponding router restores its priority automatically.

The interface specified in this command can be a Layer 3 Ethernet interface, a VLAN interface, a Layer 3 aggregate interface, a POS interface, an HDLC link bundle interface, or an RPR logical interface.

Related commands: display vrrp ipv6.

Examples

# On VLAN-interface 2, set the interface to be tracked to VLAN-interface 1, making the priority of VRRP group 1 on VLAN-interface 2 decrement by 50 when VLAN-interface 1 is down or removed.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track interface vlan-interface 1 reduced 50

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: Specifies the VRRP group number in the range of 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

vrrp ipv6 vrid weight track

Syntax

vrrp ipv6 vrid virtual-router-id weight track track-entry-number [ reduced weight-reduced ]

undo vrrp ipv6 vrid virtual-router-id weight track [ track-entry-number ]

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: Specifies the VRRP group number in the range of 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number in the range of 1 to 1024.

reduced weight-reduced: Specifies the value by which the weight decreases, in the range of 1 to 255. The default setting is 30.

Description

Use vrrp ipv6 vrid weight track to specify the track entry to be monitored by VFs when VRRP is operating in load balancing mode. If the status of the monitored track entry changes to negative the weights of the all VFs in the VRRP group to which the current router belongs decrease by a specified value.

Use the undo vrrp ipv6 vrid weight track command to cancel the specified track entry.

By default, no track entry is specified to be monitored.

The command is effective only when VRRP is operating in load balancing mode.

Before executing the command, create a VRRP group on an interface and configure the virtual IPv6 address of the VRRP group.

When the status of the monitored track entry turns from negative to positive or invalid, the corresponding VFs automatically restore their weights.

The track entry specified in this command can be nonexistent. You can use the vrrp ipv6 vrid weight track command to specify a track entry, and then create the track entry with the track command.

By default, the weight of a VF is 255, and its lower limit of failure is 10.

If the weight of a VF owner is higher than or equal to the lower limit of failure, the priority of the VF owner is always 255 and does not change with the weight value. Therefore, when an uplink fails, another VF takes over the VF owner and becomes the AVF only when the weight of the VF owner decreases by a correctly specified value and becomes lower than the lower limit of failure, which means the weight of the VF owner decreases by more than 245.

For more information about track entries, see High Availability Configuration Guide.

Related commands: display vrrp ipv6.

Examples

# Configure to monitor track entry 1, making the weights of VFs that belong to VRRP group 1 on VLAN-interface 2 decrease by 50 when track entry 1 turns to negative.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 weight track 1 reduced 50

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网