Part 9 - High Availability

01-VRRP Commands

Chapters Download  (186.25 KB)

01-VRRP Commands


VRRP Configuration Commands

 

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

l   At present, the interfaces that VRRP involves can only be VLAN interfaces.

 

IPv4- and IPv6-Based 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 VRRP to work in load balancing mode.

Description

Use the vrrp mode command to configure the VRRP working mode.

Use the undo vrrp mode command to restore the default.

By default, VRRP works in standard protocol mode.

Note the following:

l   When you configure the VRRP working mode by using this command, both IPv4-based and IPv6-based VRRP groups work in the specified mode.

l   When VRRP works in load balancing mode, the virtual IP address of a VRRP cannot be the same as the IP address of any interface in the VRRP group, and the virtual IP address should be mapped to a virtual MAC address. Otherwise, VRRP cannot work in load balancing mode.

l   The VRRP working mode can still be modified when a VRRP group is created. If you change the VRRP working mode, all VRRP groups on the router work in the specified mode.

Related commands: display vrrp, display vrrp ipv6.

Examples

# Configure VRRP to work in load balancing mode.

<Sysname> system-view

[Sysname] vrrp mode load-balance

IPv4-Based VRRP Configuration Commands

display vrrp

Syntax

display vrrp [ verbose ] [ interface interface-type interface-number [ vrid virtual-router-id ] ]

View

Any view

Default Level

1: Monitor level

Parameters

verbose: Displays detailed state information about VRRP group(s).

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 1 to 255.

Description

Use the display vrrp command to display the state information of VRRP group(s).

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 VRRP groups on the interface is displayed; if you specify neither, the state information of all VRRP groups on your device is displayed.

Examples

# When VRRP works in standard protocol mode, display brief information about all VRRP groups.

<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

# When VRRP works in standard protocol mode, display detailed information about all VRRP groups.

<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

# When VRRP works in standard protocol mode, display detailed information about all VRRP groups.

<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

# When VRRP works in the load balancing mode, display brief information about all VRRP groups.

<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     : 150                  Running Pri  : 140

     Preempt Mode   : Yes                  Delay Time   : 5

     Auth Type      : Simple               Key          : hello

     Virtual IP     : 1.1.1.1

     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

   Forwarder Information: 1 Forwarders 1 Active

     Config Weight  : 255

     Running Weight : 205

    Forwarder 01

     State          : Active

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

     Owner ID       : 0000-5e01-1100

     Priority       : 255

     Active         : local

   Forwarder Weight Track Information:

     Track Object   : 3          State : Negative   Weight Reduced : 50

Table 1-1 display vrrp command output description (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode, including

l  Standard: Standard protocol mode

l  Load Balance: Load balancing mode

Run Method

Current VRRP running mode, including

l  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.

l  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

Serial number of the VRRP group

Run Pri

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

Adver. Timer

VRRP advertisement interval, in seconds

Admin Status

Administrative state, including

l  UP

l  DOWN

State

Status of the router in the VRRP group, including

l  Master

l  Backup

l  Initialize

Config Pri

Configured priority of the router, which 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. When VRRP tracking is configured, if the state of the monitored interface or track entry changes, the priority of the router also changes.

Preempt Mode

Preemptive mode, including

l  YES: The router in the VRRP group works in preemptive mode

l  NO: The router in the VRRP group works in non preemptive mode

Delay Time

Preemption delay, in seconds

Auth Type

Authentication type, including

l  None: No authentication

l  Simple: Simple text authentication

l  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 of the tracked interface or entry. It is displayed only after execution of the vrrp vrid track command or the vrrp vrid track interface command.

Track Interface

The interface to be tracked. It is displayed only after execution of the vrrp vrid track interface command.

Track Object

The track entry to be tracked. It is displayed only after execution of the vrrp vrid track command.

State

State of the tracked interface or entry.

The state of a tracked interface includes:

l  Up

l  Down

l  Removed

The state of a track entry includes:

l  Invalid

l  Negative

l  Positive

l  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 or invalid. It is displayed only after execution of the vrrp vrid track interface command or the vrrp vrid track command.

Switchover

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

 

Table 1-2 display vrrp command output description (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode, including

l  Standard: Standard protocol mode

l  Load Balance: Load balancing mode

Run Method

Current VRRP running mode, including

l  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.

l  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

In the brief information, it is the serial number of the VRRP group or the serial number of the virtual forwarder (VF).

In the detailed information, it is the serial number of the VRRP group.

State

In the brief information,

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

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

In the detailed information, this field indicates the status of the router in the VRRP group, including

l  Master

l  Backup

l  Initialize

Run Pri

In the brief information,

l  If VRID is number, this field indicates the running priority of the router, which is the current priority of the router. When VRRP tracking is configured, if the state of the monitored interface or track entry changes, the priority of the router also changes.

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

Address

In the brief information,

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

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

Active

In the brief information,

l  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.

l  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.

Adver Timer

VRRP advertisement interval, in seconds.

Admin Status

Administrative state, including

l  UP

l  DOWN

Config Pri

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

Running Pri

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

Preempt Mode

Preemptive mode, including

l  YES: The router in the VRRP group works in preemptive mode.

l  NO: The router in the VRRP group works in non preemptive mode.

Delay Time

Preemption delay, in seconds

Auth Type

Authentication type, including

l  None: No authentication

l  Simple: Simple text authentication

l  MD5: MD5 authentication

Key

Authentication key

Virtual IP

Virtual IP address of the VRRP group

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.

Track Interface

The interface to be tracked. It is displayed only after the execution of the vrrp vrid track interface command.

Track Object

The track entry to be tracked. It is displayed only after execution of the vrrp vrid track command.

State

State of the tracked interface or track entry.

The state of a tracked interface includes

l  Up

l  Down

l  Removed

The state of a track entry includes

l  Invalid

l  Negative

l  Positive

l  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 or invalid. It is displayed only after execution of the vrrp vrid track interface command or the vrrp vrid track command.

Switchover

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

Forwarder Information: 1 Forwarders 1 Active

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

Config Weight

Configured weight of the VF, the value is 255.

Running Weight

Running weight of the VF, which is 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 also changes.

Forwarder 01

Information about VF 01.

State

The state of a VF, including

l  Active

l  Listening

l  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

The weight track configuration of the VF. It is displayed only after execution of the vrrp vrid weight track command.

Track Object

Weight track entry. It is displayed only after execution of the vrrp vrid weight track command.

State

The state of a track entry includes

l  Invalid

l  Negative

l  Positive

l  Not existing

Weight Reduced

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

 

display vrrp statistics

Syntax

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

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 1 to 255.

Description

Use the display vrrp statistics command to display statistics about VRRP group(s).

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 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 works 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 works 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 1-3 display vrrp statistics command output description (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

Advertise Rcvd

Number of received advertisements

Priority Zero Pkts Sent

Number of advertisements with the priority of 0 sent

Advertise 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 1-4 display vrrp statistics command output description (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

Advertise Rcvd

Number of received advertisements

Request Rcvd

Number of received requests

Advertise 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 1 to 255.

Description

Use the reset vrrp statistics command 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 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 an interface to the virtual IP addresses of the VRRP groups.

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

Description

Use the vrrp method command to map virtual IP addresses and MAC addresses of the VRRP groups.

Use the undo vrrp method command to restore the default association.

By default, the virtual MAC address is mapped to the virtual IP address of the VRRP group.

Note that:

l   Configure the mapping between the virtual IP address and the MAC address before creating any VRRP group. Otherwise, your configuration fails.

l   When VRRP works in load balancing mode, the mapping between a virtual IP address and a MAC address cannot be configured. In this mode, a virtual IP address is always mapped a virtual MAC address.

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 the vrrp un-check ttl command to disable TTL check on VRRP packets.

Use the undo vrrp un-check ttl command 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, and therefore the packet TTL value is not changed. When the master of a VRRP group advertises VRRP packets, it sets the packet TTL to 255. With VRRP packet TTL check enabled, 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 may implement VRRP in a different way, when the device is interoperating with devices of other vendors, VRRP packet TTL check may result in dropping packets that should not be dropped. In this case, use the 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 } key

undo vrrp vrid virtual-router-id authentication-mode

View

Interface view

Default Level

2: System level

Parameters

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

md5: Authentication using the MD5 algorithm.

simple: Plain text authentication mode.

key: Authentication key, which is case sensitive.

l   When md5 authentication applies, the authentication key is in MD5 cipher text or in plain text and the length of the key depends on its input format. If the key is input in plain text, its length is 1 to 8 characters, such as 1234567; if the key is input in cipher text, its length must be 24 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!!.

l   When simple authentication applies, the authentication key is in plain text with a length of 1 to 8 characters.

Description

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

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

By default, authentication is disabled.

Note that:

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

l   You may 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: Virtual router ID or VRRP group number, in the range 1 to 255.

timer delay delay-value: Sets preemption delay. The delay-value argument is in the range of 0 to 255 seconds and defaults to 0 seconds.

Description

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

Use the undo vrrp vrid preempt-mode command to disable preemption on the router in the specified VRRP group, which means to specify the router to work in the non-preemptive mode.

Use the undo vrrp vrid preempt-mode timer delay command to restore the default preemption delay, which is zero seconds.

The default mode is immediate preemption without delay.

To avoid frequent state changes among members in a VRRP group and provide the backups 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.

Note that 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 five 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: VRRP group number, in the range 1 to 255.

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

Description

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

Use the undo vrrp vrid priority command to restore the default.

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

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

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

l   If the router is the IP address owner, its priority is always 255. Therefore, it acts as the master as long as it is functioning normally.

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: VRRP group number, in the range 1 to 255.

adver-interval: Interval at which the master in the specified VRRP group sends VRRP advertisements. It ranges from 1 to 255 seconds.

Description

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

Use the undo vrrp vrid timer advertise command 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.

Note that:

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

l   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 an interval of five 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 [ 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: VRRP group number, in the range 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number. track-entry-number ranges from 1 to 1024.

reduced priority-reduced: Specifies the value by which the priority decreases. priority-reduced ranges from 1 to 255 and defaults to 10.

switchover: Switchover mode of a router. If the status of the monitored track entry turns to negative or invalid and the router is a backup in the VRRP group, it becomes the master immediately.

Description

Use the vrrp vrid track command to specify the track entry to be monitored. When a monitored track entry is specified, if the status of the monitored track entry changes to negative or invalid, the priority of the router decreases by a specified value or the router immediately becomes the master.

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

By default, no track entry is to be monitored.

Note that:

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

l   When the router is the IP address owner, you cannot perform the configuration.

l   When the status of the monitored track entry turns from negative or invalid to positive, the corresponding router automatically restores its priority.

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

 

For details of track entry, refer to Track Configuration in the Configuration Guide - Part 9 - High Availability.

 

Related commands: display vrrp.

Examples

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

<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

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: VRRP group number, in the range 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. priority-reduced ranges from 1 to 255 and defaults to 10.

Description

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

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

By default, no interface is tracked.

If the uplink interface of a router in a VRRP group fails, usually the VRRP group cannot be aware of the uplink 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 tracking a specified uplink interface. If the tracked uplink interface is down or removed, the priority of the master is automatically decreased by a specified value and a higher priority router in the VRRP group becomes the master.

Note that:

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

l   When the router is the owner of the IP address, you cannot perform the configuration.

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

l   The interface specified in this command should be a VLAN interface.

Related commands: display vrrp.

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 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: VRRP group number, in the range 1 to 255.

virtual-address: Virtual IP address.

Description

Use the vrrp vrid virtual-ip command 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 the undo vrrp vrid virtual-ip command to remove an existing VRRP group or the virtual IP address of the VRRP group.

By default, no VRRP group is created.

Note that:

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

l   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.

l   A VRRP group operates normally 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. In this case, 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: VRRP group number, in the range 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number. track-entry-number ranges from 1 to 1024.

reduced weight-reduced: Specifies the value by which the weight decreases. priority-reduced ranges from 1 to 255 and defaults to 30.

Description

Use the vrrp vrid weight track command to specify a track entry to be monitored by VFs when VRRP works in load balancing mode. If the status of the monitored track entry changes to negative or invalid, the weights of all VFs decrease by a specified value.

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

By default, no track entry is to be monitored.

Note that:

l   The execution of this command is effective only when VRRP works in load balancing mode.

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

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

l   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 by using the track command.

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

l   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, if an uplink failure, another VF takes over the VF owner's work and becomes the AVF only when the weight of the VF owner decreases a properly specified value and becomes lower than the lower limit of failure.

 

For details of track entry, refer to Track Configuration in the Configuration Guide - Part 9 - High Availability.

 

Related commands: display vrrp.

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 or invalid.

<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 ] ]

View

Any view

Default Level

1: Monitor level

Parameters

verbose: Displays detailed VRRP group state information

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 about the specified VRRP group. virtual-router-id specifies a VRRP group by its group number, in the range 1 to 255.

Description

Use the display vrrp ipv6 command to display state information about IPv6 VRRP groups.

If you do not specify verbose, only brief state information about IPv6 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 VRRP groups on the interface is displayed; if you specify neither, the state information of all VRRP groups on the router is displayed.

Examples

# When VRRP works in standard protocol, 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

# When VRRP works 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          : hello

     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

# When VRRP works 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

# When VRRP works 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 : 2

   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          : hello

     Virtual IP     : FE80::1

     Master IP      : FE80::2

   VRRP Track Information:

     Track Interface: Vlan3                State : Down       Pri Reduced : 10

     Track Object   : 1                    State : Positive   Pri Reduced : 50

   Forwarder Information: 1 Forwarders 1 Active

     Config Weight  : 255

     Running Weight : 255

    Forwarder 01

     State          : Active

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

     Owner ID       : 0000-5e01-1100

     Priority       : 255

     Active         : local

   Forwarder Weight Track Information:

     Track Object   : 1          State : Positive   Weight Reduced : 30

Table 1-5 display vrrp ipv6 command output description (standard protocol mode)

Field

Description

Run Mode

Current VRRP working mode, including

l  Standard: Standard protocol mode

l  Load Balance: Load balancing mode

Run Method

Current VRRP running mode, including

l  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

l  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

VRRP group ID

Run Pri

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

Adver Timer

VRRP advertisement interval in centiseconds

Admin Status

Administrative state, including

l  UP

l  DOWN

State

Status of the router in the VRRP group, including

l  Master

l  Backup

l  Initialize

Config Pri

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

Running Pri

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

Preempt Mode

Preemptive mode, including

l  YES: The router in the VRRP group works in preemptive mode

l  NO: The router in the VRRP group works in non preemptive mode

Delay Time

Preemption delay, in seconds

Auth Type

Authentication type, including

l  None: No authentication

l  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 after execution of the vrrp ipv6 vrid track command or the vrrp ipv6 vrid track interface command.

Track Interface

The interface to be tracked. It is displayed only after the execution of the vrrp ipv6 vrid track interface command.

Track Object

The track entry to be tracked. It is displayed only after execution of the vrrp ipv6 vrid track command.

State

State of the tracked interface or track entry.

The state of a tracked interface includes:

l  Up

l  Down

l  Removed

The state of a track entry includes

l  Invalid

l  Negative

l  Positive

l  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 or invalid. It is displayed only after execution of the vrrp ipv6 vrid track interface command or the vrrp ipv6 vrid track command.

Switchover

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

 

Table 1-6 display vrrp ipv6 command output description (load balancing mode)

Field

Description

Run Mode

Current VRRP working mode, including

l  Standard: Standard protocol mode

l  Load Balance: Load balancing mode

Run Method

Current VRRP running mode, including

l  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

l  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

In the brief information, it is the serial number of the VRRP group number or the serial number of the VF VF number.

In the detailed information, it is the serial number of the VRRP group.

State

In the brief information,

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

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

In the detailed information, this field indicates the status of the router in the VRRP group, including

l  Master

l  Backup

l  Initialize

Run Pri

In the brief information,

l  If VRID is number, this field indicates the running priority of the router, which is the current priority of the router. When VRRP tracking is configured, if the state of the monitored interface or track entry changes, the priority of the router also changes.

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

Address

In the brief information,

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

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

Active

In the brief information,

l  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.

l  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.

Adver Timer

VRRP advertisement interval, in centiseconds.

Admin Status

Administrative state, including

l  UP

l  DOWN

Config Pri

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

Running Pri

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

Preempt Mode

Preemptive mode, including

l  YES: The router in the VRRP group works in preemptive mode

l  NO: The router in the VRRP group works in non preemptive mode

Delay Time

Preemption delay, in seconds

Auth Type

Authentication type, including

l  None: No authentication

l  Simple: Simple text authentication

Key

Authentication key

Virtual IP

Virtual IP addresses of the VRRP group

Master IP

Primary IP address of the interface that belongs to the router in the state of master

VRRP Track Information

Information of the tracked interface or track entry.

Track Interface

The interface to be tracked. It is displayed only after execution of the vrrp ipv6 vrid track interface command.

Track Object

The track entry to be tracked. It is displayed only after execution of the vrrp ipv6 vrid track command.

State

State of the tracked interface or track entry.

The state of a tracked interface includes

l  Up

l  Down

l  Removed

The state of a track entry includes

l  Invalid

l  Negative

l  Positive

l  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 or invalid. It is displayed only after execution of the vrrp ipv6 vrid track interface command or the vrrp ipv6 vrid track command.

Switchover

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

Forwarder Information: 1 Forwarders 1 Active

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

Config Weight

Configured weight of the VF, the value is 255.

Running Weight

Running weight of the VF, which is the current weight of the VF. After 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

The state of a VF, including

l  Active

l  Listening

l  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

The weight track configuration of the VF. It is displayed only after execution of the vrrp ipv6 vrid weight track command.

Track Object

Weight track entry. It is displayed only after execution of the vrrp ipv6 vrid weight track command.

State

The state of a track entry includes

l  Invalid

l  Negative

l  Positive

l  Not existing

Weight Reduced

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

 

display vrrp ipv6 statistics

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

interface interface-type interface-number: Displays VRRP group statistics information about 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 1 to 255.

Description

Use the display vrrp ipv6 statistics command to display statistics about IPv6 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 ipv6 statistics command .

Related commands: reset vrrp ipv6 statistics.

Examples

# When VRRP works 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 works 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 1-7 display vrrp ipv6 statistics command output description (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

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

Advertise Rcvd

Number of received advertisements

Priority Zero Pkts Sent

Number of advertisements with the priority of 0 sent

Advertise 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 1-8 display vrrp ipv6 statistics command output description (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

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

Advertise Rcvd

Number of received advertisements

Request Rcvd

Number of received requests

Advertise 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 1 to 255.

Description

Use the reset vrrp ipv6 statistics command 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 an interface to the virtual IPv6 address of a VRRP group.

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

Description

Use the vrrp ipv6 method command to map the virtual IPv6 address and the MAC address of a VRRP group.

Use the undo vrrp ipv6 method command to restore the default.

By default, the virtual MAC address is mapped to the virtual IP address of a VRRP group.

Note that:

l   Configure the mapping between the virtual IPv6 address and the MAC address before creating any VRRP group. Otherwise, your configuration fails.

l   When VRRP works in load balancing mode, the mapping between a virtual IPv6 address and a MAC address cannot be configured. In this mode, a virtual IPv6 address is always mapped to a virtual MAC address.

Related commands: display vrrp ipv6.

Examples

# Map the virtual IPv6 address of a 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 key

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

View

Interface view

Default Level

2: System level

Parameters

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

simple: Sets the authentication mode to plain text authentication.

key: Authentication key of 1 to 8 case-sensitive characters in plain text.

Description

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

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

By default, authentication is disabled.

Note that:

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

l   You may 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: Virtual router ID or VRRP group number, in the range 1 to 255.

timer delay delay-value: Sets preemption delay. The delay-value argument is in the range of 0 to 255 seconds and defaults to 0 seconds.

Description

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

Use the undo vrrp ipv6 vrid preempt-mode command to disable preemption on the router in the specified VRRP group, which means to specify the router to work in non-preemptive mode.

Use the undo vrrp ipv6 vrid preempt-mode timer delay command to restore the default preemption delay, which is zero seconds.

The default mode is immediate preemption without delay.

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

To avoid frequent state changes among members in a VRRP group and provide the backups 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.

Note that 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 five 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: VRRP group number, in the range 1 to 255.

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

Description

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

Use the undo vrrp ipv6 vrid priority command to restore the default.

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

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

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

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

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: VRRP group number, in the range 1 to 255.

adver-interval: Interval at which the master in the specified VRRP group sends VRRP advertisements. It ranges from 100 to 4095 centiseconds.

Description

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

Use the undo vrrp ipv6 vrid timer advertise command 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.

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

l   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 an interval 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 [ 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: VRRP group number, in the range 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number. track-entry-number ranges from 1 to 1024.

reduced priority-reduced: Specifies the value by which the priority decreases. priority-reduced ranges from 1 to 255 and defaults to 10.

switchover: Switchover mode of a router. If the status of the monitored track entry turns to negative or invalid and the router is a backup in the VRRP group, it becomes the master immediately.

Description

Use the vrrp ipv6 vrid track command to specify a track entry to be monitored. When the track entry is specified, if the status of the monitored track entry changes to negative or invalid, the priority of the router decreases by a specified value or the router immediately becomes the master.

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

By default, no track entry is to be monitored.

Note that:

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

l   When the router is the IP address owner, you cannot perform the configuration.

l   When the status of the monitored track entry turns from negative or invalid to positive, the corresponding router automatically restores its priority.

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

 

For details of track entry, refer to Track Configuration in the Configuration Guide - Part 9 - High Availability.

 

Related commands: display vrrp ipv6.

Examples

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

<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

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: VRRP group number, in the range 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. priority-reduced ranges from 1 to 255 and defaults to 10.

Description

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

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

By default, no interface is being tracked.

If the uplink interface of a router in a VRRP group fails, normally the VRRP group cannot be aware of the uplink failure. If the router is the master of the VRRP group, hosts on the LAN will not be able to access the external network because of the uplink failure. You can solve the problem through the function of tracing a specified interface. In this case, it is the 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.

Note that:

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

l   When the router is the owner of the IP address, you cannot perform the configuration.

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

l   The interface specified in this command should be a VLAN 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: VRRP group number, in the range 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 the vrrp ipv6 vrid virtual-ip command 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 the undo vrrp ipv6 vrid virtual-ip command to remove an existing VRRP group or the virtual IPv6 address of the VRRP group.

By default, no VRRP group is created.

Note that:

l   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.

l   If 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: VRRP group number, in the range 1 to 255.

track track-entry-number: Specifies a track entry to be monitored by its number. track-entry-number ranges from 1 to 1024.

reduced weight-reduced: Specifies the value by which the weight decreases. priority-reduced ranges from 1 to 255 and defaults to 30.

Description

Use the vrrp ipv6 vrid weight track command to specify the track entry to be monitored by VFs when VRRP works in load balancing mode. If the status of the monitored track entry changes to negative or invalid, the weights of the all VFs decrease by a specified value.

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

By default, no track entry is to be monitored.

Note that:

l   Execution of this command is effective only when VRRP works in load balancing mode.

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

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

l   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 by using the track command.

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

l   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, if an uplink fails, another VF takes over the VF owner's work and becomes the AVF only when the weight of the VF owner decreases a properly specified value and becomes lower than the lower limit of failure.

 

For details of track entry, refer to Track Configuration in the Configuration Guide - Part 9 - High Availability.

 

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 or invalid.

<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

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.