- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
30-VRRP Command | 147 KB |
Table of Contents
Chapter 1 VRRP Configuration Commands
1.1 IPv4-Based VRRP Configuration Commands
1.1.4 vrrp vrid authentication-mode
1.1.10 vrrp vrid timer advertise
1.2 VRRP Configuration Commands for IPv6
1.2.2 display vrrp ipv6 statistics
1.2.3 reset vrrp ipv6 statistics
1.2.4 vrrp ipv6 vrid authentication-mode
1.2.7 vrrp ipv6 vrid preempt-mode
1.2.9 vrrp ipv6 vrid timer advertise
1.2.11 vrrp ipv6 vrid virtual-ip
Chapter 1 VRRP Configuration Commands
& Note:
l The term router in this document refers to a router in a generic sense or a Layer 3 switch.
l At present, the interfaces that VRRP involves can only be VLAN interfaces unless otherwise specified.
1.1 IPv4-Based VRRP Configuration Commands
1.1.1 display vrrp
display vrrp [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
Any view
interface interface-type interface-number: Specifies an interface by its type and number.
vrid virtual-router-id: Specifies a standby group by its group number, in the range 1 to 255.
Description
Use the display vrrp command to display the state information of VRRP.
If you do not specify verbose, only the brief state information of VRRP is displayed.
If you specify both interface and standby group, only the state information of the specified standby group is displayed; if you only specify an interface, the state information of all the standby groups on the interface is displayed; if you specify neither, the state information of all the standby groups on the device is displayed.
# Display brief information about all standby groups on the device when no VRRP standby group is created.
<Sysname> display vrrp
IPv4 Standby Information:
Run Method : VIRTUAL-MAC
Virtual Ip Ping : Enable
Interface : Vlan-interface2
VRID : 1 Adver. Timer : 1
Admin Status : UP State : Master
Config Pri : 100 Run Pri : 100
Preempt Mode : YES Delay Time : 0
Auth Type : NONE
Track IF : Vlan-interface1 Pri Reduced : 50
Virtual IP : 1.1.1.10
1.1.1.20
Virtual MAC : 0000-5e00-0101
Master IP : 1.1.1.2
Interface : Vlan-interface2
VRID : 20 Adver. Timer : 1
Admin Status : UP State : Master
Config Pri : 100 Run Pri : 100
Preempt Mode : YES Delay Time : 0
Auth Type : NONE
Virtual IP : 1.1.1.50
Virtual MAC : 0000-5e00-0114
Master IP : 1.1.1.2
Table 1-1 Description on the fields of the display vrrp command
Field |
Description |
Run Method |
Current VRRP running mode, real MAC or virtual MAC |
Virtual IP Ping |
Whether you can ping the virtual IP address |
Interface |
Interface to which the standby group belongs |
VRID |
Number of the standby group |
Adver. Timer |
VRRP advertisement interval |
Admin Status |
Administrative state: UP or DOWN |
State |
Status of the router in the standby group, master, backup, or initialize |
Config Pri |
Configured priority |
Run Pri |
Running priority |
Preempt Mode |
Preemption mode |
Delay Time |
Preemption delay |
Auth Type |
Authentication type |
Virtual IP |
Virtual IP addresses of the standby group |
Virtual MAC |
Virtual MAC address corresponding to the virtual IP address of the standby group. It is displayed only when the router is in the state of master. |
Master IP |
Master IP address of the interface to which the router in the state of master belongs |
1.1.2 display vrrp statistics
Syntax
display vrrp statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
Any view
Parameter
interface interface-type interface-number: Specifies an interface by its type and number.
vrid virtual-router-id: Specifies a standby group by its group number, in the range 1 to 255.
Description
Use the display vrrp statistics command to display statistics about VRRP.
If you specify both interface and standby group, only the statistics about the specified standby group are displayed; if you only specify an interface, the statistics about all the standby groups on the interface are displayed; if you specify neither, the statistics about all the standby groups on the device are displayed.
Example
# Display the statistics about all standby groups.
<Sysname> display vrrp statistics
Interface : Vlan-interface1
VRID : 1
Version : 2
CheckSum Errors : 16 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
Advertise Rcvd : 16 Priority Zero Pkts Sent : 0
Interface : Vlan-interface8
VRID : 105
Version : 2
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 : 0 Priority Zero Pkts Rcvd : 0
Advertise Rcvd : 0 Priority Zero Pkts Sent : 0
Global statistics
CheckSum Errors : 16
Version Errors : 0
VRID Errors : 20
Table 1-2 Description on the fields of the display vrrp statistics command
Field |
Description |
Interface |
Interface to which the standby group belongs |
VRID |
Number of the standby group |
Version |
VRRP version |
CheckSum Errors |
Number of packets with checksum errors |
Version Errors |
Number of packets with version errors |
Invalid Type Pkts Rcvd |
Number of packets that received packet type errors |
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 |
Advertise Sent |
Number of advertisements sent |
Global statistics |
Statistics about all standby 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 |
1.1.3 reset vrrp statistics
Syntax
reset vrrp statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
User view
Parameter
interface interface-type interface-number: Specifies an interface by its type and number.
vrid virtual-router-id: Specifies a standby group by its group number, in the range 1 to 255.
Description
Use the reset vrrp statistics command to clear VRRP statistics.
If you specify both the interface and standby group, the statistics about the specified standby group on the specified interface are cleared; if you specify only the interface, the statistics about all the standby groups on the interface are cleared; if you specify neither, the statistics about all the standby groups on the device are cleared.
Example
# Clear the statistics about all the standby groups on the device.
<Sysname> reset vrrp statistics
1.1.4 vrrp vrid authentication-mode
vrrp vrid virtual-router-id authentication-mode { md5 | simple } key
undo vrrp vrid virtual-router-id authentication-mode
View
VLAN interface view
simple: Plain text authentication mode.
md5: Authentication header (AH) authentication using the MD5 algorithm.
key: Authentication key, case sensitive. When simple authentication applies, the authentication key is in plain text with a length of 1 to 8 characters. When md5 authentication applies, the authentication key is in MD5 ciphertext 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 ciphertext, its length must be 24 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Use the vrrp vrid authentication-mode command to configure authentication mode and authentication key for the VRRP standby groups on the interface.
Use the undo vrrp vrid authentication-mode command to disable authentication in the VRRP standby groups on the interface.
By default, authentication is disabled.
You may configure different authentication types and authentication keys for the standby groups on an interface. However, the members of the same standby group must use the same authentication mode and authentication key.
# Configure authentication mode and authentication key for all the VRRP standby groups on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 authentication-mode simple aabbcc
1.1.5 vrrp method
Syntax
vrrp method { real-mac | virtual-mac }
undo vrrp method
View
System view
Parameter
real-mac: Associates the real MAC address of the interface with the virtual IP address of the standby group.
virtual-mac: Associates the virtual MAC address with the virtual IP address of the standby group.
Description
Use the vrrp method command to set the mappings between the MAC addresses and the virtual IP addresses of the standby groups.
Use the undo vrrp method command to restore the default mapping.
By default, the virtual MAC address of the standby group is associated with the virtual IP address.
You must configure the mapping between the virtual MAC address and the virtual IP address before configuring a standby group. Otherwise, your configuration will fail.
Example
# Associate the virtual IP address of the standby group with the real MAC address of the routing interface.
<Sysname> system-view
[Sysname] vrrp method real-mac
1.1.6 vrrp ping-enable
Syntax
vrrp ping-enable
undo vrrp ping-enable
View
System view
Parameter
None
Description
Use the vrrp ping-enable command to enable users to ping the virtual IP addresses of standby groups.
Use the undo vrrp ping-enable command to disable the virtual IP addresses of standby groups from being pinged.
By default, the virtual IP addresses of standby groups can be pinged.
Perform this configuration before configuring a standby group.
Example
# Enable users to ping the virtual IP addresses of standby groups.
<Sysname> system-view
[Sysname] vrrp ping-enable
1.1.7 vrrp un-check ttl
Syntax
vrrp un-check ttl
undo vrrp un-check ttl
View
VLAN Interface view
Parameter
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.
Example
# Disable TTL check on VRRP packets.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp un-check ttl
1.1.8 vrrp vrid preempt-mode
vrrp vrid virtual-router-id preempt-mode [ timer delay delay-value ]
undo vrrp vrid virtual-router-id preempt-mode [ timer delay ]
View
VLAN Interface view
virtual-router-id: Virtual router ID or VRRP standby group number, in the range 1 to 255.
timer delay: Sets preemption delay. In preemption mode, if you configure a preemption delay, the standby group member in the backup state will wait for the specified period of time before becoming the master.
delay-value: Preemption delay, in the range 0 to 255 seconds. It defaults to 0 seconds.
Use the vrrp vrid preempt-mode command to enable preemption on the router and configure its preemption delay in the specified standby group.
Use the undo vrrp vrid preempt-mode command to disable preemption on the router in the specified standby group.
Use the undo vrrp vrid preempt-mode timer delay command to restore the default preemption delay, that is, zero seconds.
The default mode is immediate preemption without delay.
If you disable preemption, the delay period changes to zero seconds automatically.
On an instable network, the standby group member in the backup state may not normally receive the packets from the master member due to network congestion, resulting in frequent master/backup state transition of the standby group members. Preemption delay is introduced to solve this problem. With a preemption delay set, if the backup member does not receive the packet from the master member duly, it waits for a period to see whether it can receive any packet from the master. If the specified period elapses but it still receives no packet from the master, it becomes the master.
# Configure the device to work in the preempt mode and set the preempt delay to five seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
1.1.9 vrrp vrid priority
vrrp vrid virtual-router-id priority priority-value
undo vrrp vrid virtual-router-id priority
View
VLAN Interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
priority-value: Priority value of the router in the specified standby group, in the range 1 to 254, with a higher number indicating a higher priority.
Use the vrrp vrid priority command to configure the priority of the router in the specified standby group.
Use the undo vrrp vrid priority command to restore the default.
By default, the priority of a router in a standby group is 100.
In VRRP, the role that a router plays in a standby 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.
If the router is the IP address owner, its priority is always 255. Therefore, it will be the master so long as it is functioning normally.
# Set the priority of standby group 1 to 150 on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 priority 150
1.1.10 vrrp vrid timer advertise
vrrp vrid virtual-router-id timer advertise adver-interval
undo vrrp vrid virtual-router-id timer advertise
View
VLAN Interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
adver-interval: Interval at which the master in the specified standby group sends VRRP packets. It ranges from 1 to 255 seconds.
Use the vrrp vrid timer advertise command to configure the Adver_Timer of the specified standby 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.
Routers in the same VRRP standby group must use the same Adver_Timer setting.
# Set the interval at which the master device in standby group 1 sends VRRP packets to five seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 timer advertise 5
1.1.11 vrrp vrid track
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
VLAN interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
interface interface-type interface-number: Specifies an interface to be tracked by its type and number.
priority-reduced: Value by which the priority decrements. It ranges from 1 to 255. If it is not specified, the default 10 applies.
Use the vrrp vrid track command to configure the interface to be tracked.
Use the undo vrrp vrid track command to disable tracking the specified interface.
By default, no interface is being tracked.
Note that:
l When the switch is an IP address owner, the interface tracking function cannot be enabled.
l After the tracked interface changes from down to up state, the corresponding router automatically restores its priority configuration.
l The tracked interface specified in this command can be a VLAN interface or Tunnel interface, but cannot be the interface where the standby group is created.
# On VLAN-interface 2, configure to track VLAN-interface 1, so that when VLAN-interface 1 turns down, the priority of standby group 1 on VLAN-interface 2 is reduced by 50.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 track interface vlan-interface 1 reduced 50
1.1.12 vrrp vrid virtual-ip
vrrp vrid virtual-router-id virtual-ip virtual-address
undo vrrp vrid virtual-router-id [ virtual-ip virtual-address ]
View
VLAN Interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
virtual-address: Virtual IP address.
Use the vrrp vrid virtual-ip command to create a standby group the first time that you add a virtual IP address or add a virtual IP address to it after that.
Use the undo vrrp vrid virtual-ip virtual-router-id command to remove a standby group.
Use the undo vrrp vrid virtual-router-id virtual-ip virtual-address command to remove a virtual IP address from a standby group.
By default, no standby group is created.
Note that:
l The system removes a standby group after you delete all the virtual IP addresses in it.
l The virtual IP address of the standby 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 Only when the configured virtual IP address and the interface IP address belong to the same segment and are legal host address can the standby group operates normally; otherwise. the state of the standby group is always Initialize.
This command is available depending on your device.
# Create standby group 1 and add virtual IP address 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 standby group 1.
[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.11
1.2 VRRP Configuration Commands for IPv6
1.2.1 display vrrp ipv6
Syntax
display vrrp ipv6 [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
Any view
Parameter
interface interface-type interface-number: Displays the VRRP state information of a specified VLAN interface. Where interface-type interface-number represents the interface type and interface number.
vrid virtual-router-id: Displays the state information of a specified VRRP standby group. virtual-router-id: ID of a VRRP standby group, ranging from 1 to 255.
Description
Use the display vrrp ipv6 command to display the state information of VRRP for IPv6.
If you specify both interface and standby group, only the state information of the specified standby group is displayed; if you only specify an interface, the state information of all the standby groups on the interface is displayed; if you specify neither, the state information of all the standby groups on the device is displayed.
Example
# Display state information of all the standby groups.
<Sysname> display vrrp ipv6
IPv6 Standby Information:
Run Method : VIRTUAL-MAC
Virtual Ip Ping : Disable
Interface : Vlan-interface2
VRID : 10 Adver. Timer : 100
Admin Status : UP State : Master
Config Pri : 100 Run Pri : 100
Preempt Mode : YES Delay Time : 0
Auth Type : NONE
Virtual IP : FE80::10
Virtual MAC : 0000-5e00-020a
Master IP : FE80::1
Table 1-3 Description on the fields of the display vrrp ipv6 command
Field |
Description |
Run Method |
Current VRRP running mode, real MAC or virtual MAC |
Virtual Ip Ping |
Whether you can ping the virtual IPv6 address |
Interface |
Interface to which the standby group belongs |
VRID |
Number of the standby group |
Adver. Timer |
VRRP advertisement interval |
Admin Status |
Administrative state: UP or DOWN |
State |
Status of the router in the standby group, master, backup, or initialize |
Config Pri |
Configured priority |
Run Pri |
Running priority |
Preempt Mode |
Preemption mode |
Delay Time |
Preemption delay |
Auth Type |
Authentication type |
Virtual IP |
Virtual IPv6 addresses of the standby group |
Virtual MAC |
Virtual MAC address corresponding to the virtual IPv6 address of the standby group. It is displayed only when the router is in the state of master. |
Master IP |
Master IPv6 address of the interface to which the router in the state of master belongs |
1.2.2 display vrrp ipv6 statistics
Syntax
display vrrp ipv6 statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
Any view
Parameter
interface interface-type interface-number: Displays the VRRP statistics about a specified interface and global statistics, where interface-type and interface-number indicates the interface type and the interface number.
vrid virtual-router-id: Displays VRRP statistics about a specified standby group. virtual-router-id: ID of a VRRP standby group, ranging from 1 to 255.
Description
Use the display vrrp ipv6 statistics command to display statistics about VRRP for IPv6.
If you specify both interface and standby group, only the statistics about the specified standby group are displayed; if you only specify an interface, the statistics about all the standby groups on the interface are displayed; if you specify neither, the statistics about all the standby groups on the device are displayed.
Example
# Display the statistics of all the standby groups.
<Sysname> display vrrp ipv6 statistics
Interface : Vlan-interface2
VRID : 80
Version : 3
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
Advertise Rcvd : 0 Priority Zero Pkts Sent : 0
Interface : Vlan-interface2
VRID : 10
Version : 3
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
Advertise Rcvd : 0 Priority Zero Pkts Sent : 0
Global statistics
CheckSum Errors : 0
Version Errors : 0
VRID Errors : 1439
Table 1-4 Description on the fields of the display vrrp ipv6 statistics command
Field |
Description |
Interface |
Interface to which the standby group belongs |
VRID |
Number of the standby group |
Version |
VRRP version |
CheckSum Errors |
Number of packets with checksum errors |
Version Errors |
Number of packets with version errors |
Invalid Type Pkts Rcvd |
Number of packets that received packet type errors |
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 IPv6 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 |
Advertise Sent |
Number of advertisements sent |
Global statistics |
Statistics about all standby 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 |
1.2.3 reset vrrp ipv6 statistics
Syntax
reset vrrp ipv6 statistics [ interface interface-type interface-number [ vrid virtual-router-id ] ]
View
User view
Parameter
interface interface-type interface-number: Clears the VRRP statistics of a specified interface. interface-type interface-number indicates the interface type and interface number.
vrid virtual-router-id: Clears VRRP statistics of a specified standby group. virtual-router-id: ID of a VRRP standby group, ranging from 1 to 255.
Description
Use the reset vrrp ipv6 statistics command to clear VRRP statistics.
If you specify both the interface and standby group, the statistics about the specified standby group on the specified interface are cleared; if you specify only the interface, the statistics about all the standby groups on the interface are cleared; if you specify neither, the statistics about all the standby groups on the device are cleared.
Example
# Clear the statistics about all the standby groups on the device.
<Sysname> reset vrrp ipv6 statistics
1.2.4 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
VLAN Interface view
Parameter
virtual-router-id: VRRP standby group number, in the range 1 to 255.
simple: Sets the authentication mode to plain text authentication.
Key: Authentication key in plain text, comprising one to eight case-sensitive characters.
Description
Use the vrrp ipv6 vrid virtual-router-id authentication-mode simple key command to configure authentication mode and authentication key for the VRRP standby groups on the interface for IPv6.
Use the undo vrrp ipv6 vrid virtual-router-id authentication-mode command to disable authentication in the VRRP standby groups on the interface for IPv6.
By default, authentication is disabled.
Before this configuration, you need to create a standby group and configure virtual IPv6 address first. However, the members of the same standby group must use the same authentication mode and authentication key.
Example
# Configure authentication mode and authentication key for all the VRRP standby groups on VLAN-interface 2.
<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
1.2.5 vrrp ipv6 method
Syntax
vrrp ipv6 method { real-mac | virtual-mac }
undo vrrp ipv6 method
View
System view
Parameter
real-mac: Associates the real MAC address of the interface with the virtual IPv6 address of the standby group.
virtual-mac: Associates the virtual MAC address with the virtual IPv6 address of the standby group.
Description
Use the vrrp ipv6 method command to set the mappings between the MAC addresses and the virtual IPv6 addresses of the standby groups.
Use the undo vrrp ipv6 method command to restore the default mapping.
By default, the virtual MAC address of the standby group is associated with the virtual IP address.
Configure the mapping between the virtual MAC address and the virtual IPv6 address before configuring a standby group. Otherwise, your configuration will fail.
Example
# Configure the mapping between the virtual IPv6 address of the standby group and the MAC address of the routing interface.
<Sysname> system-view
[Sysname] vrrp ipv6 method real-mac
1.2.6 vrrp ipv6 ping-enable
Syntax
vrrp ipv6 ping-enable
undo vrrp ipv6 ping-enable
View
System view
Parameter
None
Description
Use the vrrp ipv6 ping-enable command to enable users to ping the virtual IPv6 addresses of standby groups.
Use the undo vrrp ipv6 ping-enable command to disable the virtual IPv6 addresses of standby groups from being pinged.
By default, the virtual IP addresses of standby groups can be pinged.
Perform this configuration before configuring a standby group.
Example
# Allow to ping the virtual IPv6 addresses of standby groups.
<Sysname> system-view
[Sysname] vrrp ipv6 ping-enable
1.2.7 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
VLAN Interface view
Parameter
virtual-router-id: Virtual router ID or VRRP standby group number, in the range 1 to 255.
timer delay: Sets preemption delay. In preemption mode, if you configure a preemption delay, the standby group member in the backup state will wait for the specified period of time before becoming the master.
delay-value: Preemption delay, in the range 0 to 255 seconds. It defaults to 0 seconds.
Description
Use the vrrp ipv6 vrid preempt-mode command to enable preemption on the router and configure its preemption delay in the specified standby group.
Use the undo vrrp ipv6 vrid preempt-mode command to disable preemption on the router in the specified standby group.
Use the undo vrrp ipv6 vrid preempt-mode timer delay command to restore the default preemption delay, that is, zero seconds.
The default mode is immediate preemption without delay.
If you disable preemption, the delay period changes to zero seconds automatically.
On an instable network, the standby group member in the backup state may not normally receive the packets from the master member due to network congestion, resulting in frequent master/backup state transition of the standby group members. Preemption delay is introduced to solve this problem. With a preemption delay set, if the backup member does not receive the packet from the master member duly, it waits for a period to see whether it can receive any packet from the master. If the specified period elapses but it still receives no packet from the master, it becomes the master.
Example
# Configure the device to work in the preempt mode and set the preempt delay to five seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 80 preempt-mode timer delay 5
1.2.8 vrrp ipv6 vrid priority
Syntax
vrrp ipv6 vrid virtual-router-id priority priority-value
undo vrrp ipv6 vrid virtual-router-id priority
View
VLAN Interface view
Parameter
virtual-router-id: VRRP standby group number, in the range 1 to 255.
priority-value: Priority value of the router in the specified standby group, in the range 1 to 254, with a higher number indicating a higher priority.
Description
Use the vrrp ipv6 vrid priority command to configure the priority of the router in the specified standby group.
Use the undo vrrp ipv6 vrid priority command to restore the default.
By default, the priority of a router in a standby group is 100.
In VRRP, the role that a router plays in a standby 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.
If the router is the IP address owner, its priority is always 255. Therefore, it will be the master so long as it is functioning normally.
Example
# Set the priority of the device in standby group 1 to 150 on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 priority 150
1.2.9 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
VLAN interface view
Parameter
virtual-router-id: VRRP standby group number, in the range 1 to 255.
adver-interval: Interval at which the master device in the standby group sends VRRP packets, ranging from 0 to 4095, in centiseconds.
Description
Use the vrrp ipv6 vrid timer advertise command to configure the Adver_Timer of the specified standby group.
Use the undo vrrp ipv6 vrid timer advertise command to restore the default.
By default, Adver_Timer is set to 100 centiseconds.
The Adver_Timer controls the interval at which the master sends VRRP packets.
Routers in the same VRRP standby group must use the same Adver_Timer setting.
Example
# Set the interval at which the master device in standby group 1 sends VRRP packets to 500 centiseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 timer advertise 500
1.2.10 vrrp ipv6 vrid track
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
VLAN interface view
Parameter
virtual-router-id: VRRP standby group number, in the range 1 to 255.
interface interface-type interface-number: Specifies an interface by its type and number.
priority-reduced: Value by which the priority decrements. It ranges from 1 to 255. If it is not specified, the default 10 applies.
Description
Use the vrrp ipv6 vrid track command to configure the interface to be tracked.
Use the undo vrrp ipv6 vrid track command to disable tracking the specified interface.
By default, no interface is being tracked.
Note that:
l When the virtual router is an IP address owner, the interface tracking function cannot be enabled.
l When the tracked interface turns from down to up state, the corresponding router automatically restores its priority configuration.
l The interface to be tracked can a Layer-3 Ethernet interface or VLAN interface.
l The tracked interface configured with the vrrp ipv6 vrid track command can be a VLAN interface or Tunnel interface, but cannot be the interface where the standby group is created.
Example
# On VLAN-interface 2, configure to track VLAN-interface 1, so that when VLAN-interface 1 turns down, the priority of standby group 1 on VLAN-interface 2 is reduced by 50.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track interface vlan-interface 1 reduced 50
1.2.11 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
VLAN interface view
Parameter
virtual-router-id: VRRP standby group number, in the range 1 to 255.
virtual-address: Virtual IPv6 address.
link-local: Indicates that the virtual IPv6 address of the standby group is a link local address.
Description
Use the vrrp ipv6 vrid virtual-ip link-local command to assign the first virtual IPv6 address to the specified standby group. The first virtual IPv6 address assigned to a standby group must be a link local address and only one such address is allowed in a standby group.
Use the vrrp ipv6 vrid virtual-ip command to add a virtual IPv6 address to a standby group.
Use the undo vrrp ipv6 vrid command to remove a standby group.
Use the undo vrrp ipv6 vrid virtual-router-id virtual-ip virtual-address [ link-local ] command to remove a virtual IPv6 address from a standby group.
After you remove all virtual IPv6 addresses, the standby group is automatically removed. Note that the first address assigned to the group must be removed the last.
By default, no standby group exists.
Example
# Create standby group 1 and add virtual IPv6 address fe80::10.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::10
# Add the virtual IPv6 address 1::10 to standby group 1.
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip 1::10