- Table of Contents
-
- H3C S9500 Series Routing Switches Command Manual-(V1.01)
- 00-1Cover
- 01-Getting Started Command
- 02-Port Command
- 03-VLAN-QinQ Command
- 04-Network Protocol Command
- 05-Routing Protocol Command
- 06-Multicast Protocol Command
- 07-QACL Command
- 08-MPLS Command
- 09-STP Command
- 10-Security Command
- 11-Reliability Command
- 12-System Management Command
- 13-PoE Command
- 14-NAT-URPF-VPLS Command
- 15-Integrated Management Command
- 16-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
11-Reliability Command | 93 KB |
Table of Contents
Chapter 1 VRRP Configuration Commands
1.1 VRRP Configuration Commands
1.1.6 vrrp authentication-mode
Chapter 2 HA Configuration Commands
2.1.2 display switchover state
2.1.4 slave auto-update config
2.1.7 slave update configuration
Chapter 1 VRRP Configuration Commands
1.1 VRRP Configuration Commands
1.1.1 debugging vrrp
Syntax
debugging vrrp { state | packet | error }
undo debugging vrrp { state | packet | error }
View
User view
Parameter
state: Debugs VRRP state.
packet: Debugs VRRP packets.
error: Debugs VRRP errors.
Description
Use the debugging vrrp command to enable the VRRP debugging.
Use the undo debugging vrrp command to disable the VRRP debugging.
By default, the VRRP debugging is disabled.
Example
# Enable VRRP state debugging.
<H3C> debugging vrrp state
1.1.2 display vrrp
Syntax
display vrrp [ interface vlan-interface interface-number [ virtual-router-ID ] ]
View
Any view
Parameter
interface: Displays the VRRP state of a specified VLAN interface.
vlan-interface interface-number: VLAN interface name.
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
Description
Use the display vrrp command to view the information about the VRRP state.
If the interface name and virtual router ID are not specified, the state information about all the virtual routers on the switch will be displayed. If only the interface name is specified, the state information about all the virtual routers on the interface will be displayed. If the interface name and virtual router ID are specified, the state information about the specified virtual router on the interface will be displayed.
Example
# Display the VRRP state information on VLAN-interface 1.
[H3C-Vlan-interface1] display vrrp interface vlan-interface 1
Run Method : VIRTUAL-MAC
Virtual Ip Ping : Disable
Interface : Vlan-interface1
VRID : 1 Adver. Timer : 1
Admin Status : UP State : Initialize
Config Pri : 100 Run Pri : 90
Preempt Mode : YES Delay Time : 0
Auth Type : NONE
Track IF : Vlan-interface2 Pri Reduced : 10
Virtual IP : 1.1.1.1
Master IP : 0.0.0.0
Table 1-1 Description on the fields of the display vrrp command
Field |
Description |
Run Method |
Run method: real or virtual MAC method |
Virtual IP ping |
Whether to enable to ping through virtual IP |
Interface |
Interface in which virtual router resides |
VRID |
ID of virtual router |
Adver.Timer |
Interval for sending vrrp packets |
Admin Status |
Control status of virtual router |
State |
Running state of virtual router |
Config Pri |
Configured priority |
Run Pri |
Run priority |
Preempt Mode |
Preempt mode |
Delay Time |
Delay time |
Auth Type |
Authentication type |
Track IF |
Track interface |
Pri Reduced |
Reduced priority value for virtual router when track interface is Down |
Virtual IP |
Virtual IP address list of virtual router |
Master IP |
IP address of the master device in virtual router |
1.1.3 display vrrp statistics
Syntax
display vrrp statistics [ vlan-interface interface-number [ virtual-router-ID ] ]
View
Any view
Parameter
vlan-interface interface-number: Specifies the name of the VLAN interface to which the virtual router belongs.
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
Description
Use the display vrrp statistics command to view the information about the VRRP statistics.
If the interface name and virtual router ID are not specified, the statistics information about all the virtual routers on the switch will be displayed. If only the interface name is specified, the statistics information about all the virtual routers on the interface will be displayed. If the interface name and virtual router ID are specified, the statistics information about the specified virtual router on the interface will be displayed.
Example
# Display the VRRP statistics information on VLAN-interface 2.
<H3C> display vrrp statistics vlan-interface 2
Interface : Vlan-interface2
VRID : 1
CheckSum Errors : 0 Version Errors : 0
VRID Errors : 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
Advertise Sent : 0 Invalid Type Pkts Rcvd : 0
1.1.4 display vrrp summary
Syntax
display vrrp summary
View
Any view
Parameter
None
Description
Use the display vrrp summary command to view the VRRP summary information on the switch.
Example
# Display the VRRP summary information on the switch.
<H3C> display vrrp summary
Run Method : VIRTUAL-MAC
Virtual Ip Ping : Disable
The total number of the vitual routers: 64
VLANID VRID State Run Adver. Auth Virtual
Pri Time Type IP
--------------------------------------------------------------------------
2 2 Initialize 100 1 NONE 2.2.2.192
3 3 Initialize 100 1 NONE 3.3.3.192
4 4 Initialize 100 1 NONE 4.4.4.192
5 5 Initialize 100 1 NONE 5.5.5.192
6 6 Initialize 100 1 NONE 6.6.6.192
7 7 Initialize 100 1 NONE 7.7.7.192
8 8 Initialize 100 1 NONE 8.8.8.192
9 9 Initialize 100 1 NONE 9.9.9.192
10 10 Initialize 100 1 NONE 10.10.10.192
11 11 Initialize 100 1 NONE 11.11.11.192
12 12 Initialize 100 1 NONE 12.12.12.192
13 13 Initialize 100 1 NONE 13.13.13.192
14 14 Initialize 100 1 NONE 14.14.14.192
15 15 Initialize 100 1 NONE 15.15.15.192
16 16 Initialize 100 1 NONE 16.16.16.192
17 17 Initialize 100 1 NONE 17.17.17.192
Table 1-2 Description on the fields of the display vrrp summary command
Field |
Description |
Run Method |
Run method: real or virtual MAC method |
Virtual IP ping |
Whether to enable to ping through virtual IP address |
VRID |
ID of virtual router |
Adver.Timer |
Interval for sending vrrp packets |
State |
Running state of virtual router |
Run Pri |
Run priority |
Auth Type |
Authentication type |
Virtual IP |
Virtual IP address list of virtual router |
1.1.5 reset vrrp statistics
Syntax
reset vrrp statistics [ vlan-interface interface-number [ virtual-router-ID ] ]
View
User view
Parameter
statistics: VRRP statistics.
vlan-interface interface-number: Interface name.
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
Description
Use the reset vrrp statistics command to clear the statistics information about VRRP.
If the interface name and virtual router ID are not specified, the statistics information about all the virtual routers on the switch will be cleared. If only the interface name is specified, the statistics information about all the virtual routers on the interface will be cleared. If the interface name and virtual router ID are specified, the statistics information about the specified virtual router on the interface will be cleared.
Example
# Clear the VRRP statistics on the switch.
<H3C> reset vrrp statistics
1.1.6 vrrp authentication-mode
Syntax
vrrp authentication-mode authentication-type authentication-key
undo vrrp authentication-mode
View
VLAN interface view
Parameter
authentication-type: Authentication type. There are following types:
l simple: Indicates to perform simple character authentication.
l md5: Indicates to perform the AH authentication with MD5 algorithm.
authentication-key: The key cannot exceed 8 characters.
Description
Use the vrrp authentication-mode command to configure the authentication type and key of a specified VRRP virtual router.
Use the undo vrrp authentication-mode command to reset the authentication type and key of a specified VRRP virtual router.
If the simple or md5 authentication is configured, it is required to set the authentication key.
This command is used to configure the authentication type and key for all the VRRP virtual routers on an interface. As defined in the protocol, all the virtual routers on an interface shall use the same authentication type and key. And all the members joining the same virtual router shall also use the same authentication type and key.
Note that the authentication key is case sensitive.
Example
# Specify the authentication type and key for a VRRP virtual router.
[H3C-vlan-interface2] vrrp authentication-mode simple H3C
1.1.7 vrrp method
Syntax
vrrp method { real-mac | virtual-mac }
undo vrrp method
View
System view
Parameter
real-mac: Uses the real MAC address of the interface to match the virtual IP address of the virtual router in VRRP backup.
virtual-mac: Uses the virtual MAC address of the interface to match the virtual IP address of the virtual router in VRRP backup.
Description
Use vrrp method command to set correspondence between the MAC address and the virtual IP address of the virtual router: matching the real MAC address or the virtual address with the virtual IP address.
Use the undo vrrp method command to reset the correspondence to the default value.
By default, the switch matches the virtual MAC address with the IP address of the virtual router.
Due to the chips installed, some switches support matching one IP address to multiple MAC addresses. Then you may configure correspondence between the virtual IP address of the virtual router and the real/virtual MAC address.
You should set correspondence between the IP address of the virtual router and the MAC address before configuring the virtual router. Otherwise, you cannot configure the correspondence.
If you set correspondence between the IP address of the virtual router and the real MAC address, then you can configure only one virtual router on VLAN interface.
Example
# Set the real MAC address of the interface match the virtual IP address of the virtual router.
[H3C] vrrp method real-mac
1.1.8 vrrp ping-enable
Syntax
vrrp ping-enable
undo vrrp ping-enable
View
System view
Parameter
None
Description
Use vrrp ping-enable command to enable the function to ping the virtual IP address of the virtual router.
Use the undo vrrp ping-enable command to disable the function.
By default, the ping function is disabled.
You can only use the commands before configuring any virtual router. If a virtual router is already established on the switch, it is not allowed to use the vrrp ping-enable command the undo vrrp ping-enable command to modify the configuration any more.
Example
# Enable to ping the virtual IP address of the virtual router.
[H3C] vrrp ping-enable
1.1.9 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 the check of TTL value of VRRP packet. Use the undo vrrp un-check ttl command to enable the check of TTL value of VRRP packet.
The TTL value must be 225. If the Backup switch finds TTL is not 225 when receiving VRRP packet, the packet will be discarded.
By default, the switch checks TTL value of VRRP packets.
Example
# Disable to check TTL value of VRRP packet.
[H3C-vlan-interface2] vrrp un-check ttl
1.1.10 vrrp vrid preempt-mode
Syntax
vrrp vrid virtual-router-ID preempt-mode [ timer delay delay-value ]
undo vrrp vrid virtual-router-ID preempt-mode
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
delay-value: Delay in seconds, ranging from 0 to 255.
Description
Use the vrrp vrid preempt-mode command to configure the preemption and delay of the virtual router.
Use the undo vrrp vrid preempt-mode command to cancel the preemption.
By default, virtual router is in preempt mode and delay-value is 0 second.
If a higher-priority switch is required to preempt the Master, you need to configure it as preemption. You can also set a delay for the preemption. If you configure it not to preempt, the delay will be set to 0 automatically.
Example
# Configure the switch to preempt.
[H3C-vlan-interface2] vrrp vrid 1 preempt-mode
# Set a delay.
[H3C-vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
# Configure the switch not to preempt.
[H3C-vlan-interface2] undo vrrp vrid 1 preempt-mode
1.1.11 vrrp vrid priority
Syntax
vrrp vrid virtual-router-ID priority priority
undo vrrp vrid virtual-router-ID priority
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
priority: Priority value, ranging from 1 to 254; By default, the priority value is 100.
Description
Use the vrrp vrid priority command to configure the virtual router priority.
Use the undo vrrp vrid priority command to remove the virtual router priority.
The priority decides the status of a switch in the virtual router. A higher-priority switch is more likely to be a Master. Priority 0 is reserved for some special purpose. 255 is reserved for the IP address owner. The priority of the IP address owner is always 255 and cannot be modified.
Example
# Set the virtual router priority on VLAN-interface2.
[H3C-vlan-interface2] vrrp vrid 1 priority 120
1.1.12 vrrp vrid timer
Syntax
vrrp vrid virtual-router-ID timer advertise adver-interval
undo vrrp vrid virtual-router-ID timer advertise
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
adver-interval: VRRP packet interval of the Master in the virtual router in seconds, ranging from 1 to 255; By default, the value is 1s.
Description
Use the vrrp vrid timer command to set the time interval for the Master in the virtual router to send VRRP packets.
Use the undo vrrp vrid timer advertise command to restore the default value.
You are supposed to set the identical timer value for the switches in the same virtual router to avoid wrong configuration.
Example
# Configure the Master to transmit VRRP packets every 15 seconds.
[H3C-vlan-interface2] vrrp vrid 1 timer advertise 15
1.1.13 vrrp vrid track
Syntax
vrrp vrid virtual-router-ID track vlan-interface interface-number [ reduced value-reduced ]
undo vrrp vrid virtual-router-ID track [ vlan-interface interface-name ]
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
vlan-interface interface-number: Interface which is to be tracked.
value-reduced: Reduced value of priority, ranging from 1 to 255; By default, the reduced value of priority is 10.
Description
Use the vrrp vrid track command to configure the switch to track the interface.
Use the undo vrrp vrid track command to stop tracking the interface.
VRRP interface track expends the backup function, which thereby can be implemented not only when the switch fails, but also when the state of a network interface is Down. The user can use this command to track or stop tracking an interface or all the interfaces. After the command is configured, the priority of the switch will be reduced, if the state of the tracked interface goes Down. Accordingly, some other switch in the virtual router will have the comparatively highest priority and become the new Master, thereby implementing the backup function. The IP address owner does not allow the configuration of interface tracking.
Each virtual router can track up to 8 interfaces.
Example
# Set to track vlan-interface1 on vlan-interface2, and lower the priority of virtual router 1 on vlan-interface2 by 50 when the state of vlan-interface1 goes Down.
[H3C-vlan-interface2] vrrp vrid 1 track vlan-interface 1 reduced 50
1.1.14 vrrp vrid virtual-ip
Syntax
vrrp vrid virtual-router-ID virtual-ip ip-address
undo vrrp vrid virtual-router-ID [ virtual-ip virtual-address ]
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
ip-address: Virtual IP address.
Description
Use the vrrp vrid virtual-ip command to create a virtual router or add a virtual IP address to an existing virtual router.
Use the undo vrrp vrid virtual-ip command to cancel an existing virtual router or an address from the virtual router.
You can add up to 16 virtual IP addresses to one virtual router.
If all of the addresses in a virtual router are deleted, the system will delete the virtual router automatically.
Example
# Create a virtual router.
[H3C-vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.10
# Add a virtual IP address to an existing virtual router.
[H3C-vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.11
# Delete a virtual IP address.
[H3C-vlan-interface2] undo vrrp vrid 1 virtual-ip 10.10.10.10
# Delete a virtual router.
[H3C-vlan-interface2] undo vrrp vrid 1
Chapter 2 HA Configuration Commands
2.1 HA Configuration Commands
2.1.1 debugging ha
Syntax
debugging ha { all | event | message | state }
undo debugging ha { all | event | message | state }
View
User view
Parameter
all: All HA debugging switches.
event: HA batch backup or tamed event debugging switch.
message: Debugging sswitch for messages received or sent by HA.
state: HA state machine state information debugging switch.
Description
Use the debugging ha command to enable HA debugging.
Use the undo debugging ha command to disable HA debugging.
By default, HA debugging is disabled.
Example
# Enable all the HA debugging.
<H3C> debugging ha all
2.1.2 display switchover state
Syntax
display switchover state [ slot-id ]
View
Any view
Parameter
slot-id: Slot number of master or slave board.
Description
Use the display switchover state command to view the switchover state of master or slave board.
This command is used to display the switchover state of master or slave board according to the specified slot number. If slot-id is not specified, the status of SRPU will be displayed.
Example
# Display the switchover state of master board.
<H3C> display switchover state
HA FSM State(master): Slave is absent.
2.1.3 display xbar
Syntax
display xbar
View
System view
Parameter
None
Description
Use the display xbar command to view the load mode of master and slave boards, which includes the configured system Xbar load mode and the active system Xbar load mode.
Note that the configured system Xbar load mode is not always the same as the active system Xbar load mode. Only when the slave board is in position or is started, can the system operate in the configured load mode.
Example
# Display the load mode of the master/slave board.
<H3C> display xbar
The configured system HA Xbar Load Mode is BALANCE
The active system HA Xbar Load Mode is SINGLE
2.1.4 slave auto-update config
Syntax
slave auto-update config
undo slave auto-update config
View
System view
Parameter
None
Description
Use the slave auto-update config command to enable automatic synchronization between the master and slave systems.
Use the undo slave auto-update config command to disable automatic synchronization between the master and slave systems.
By default, automatic synchronization is enabled.
Related command: slave update config.
Example
# Enable automatic synchronous switch between master/slave systems.
[H3C] slave auto-update config
2.1.5 slave restart
Syntax
slave restart
View
User view
Parameter
None
Description
Use the slave restart command to restart slave board.
When the slave system works abnormally, and needs to be reloaded, you can use this command to restart the slave board.
Example
# Implement the restart of the slave system.
<H3C> slave restart
The slave will reset! Continue?[Y/N]:y
2.1.6 slave switchover
Syntax
slave switchover
View
User view
Parameter
None
Description
Use the slave switchover command to start the master-slave switchover manually.
In the environment in which the slave board is available and master in real-time backup state, the user can inform the slave board of a master-slave switchover by using a command if he expects the slave board to operate in place of the master board. After the switchover, the slave board will control the system and the original master board will be forced to reset.
Example
# Enable master-slave switchover manually.
<H3C> slave switchover
Caution!!! Confirm switch slave to master[Y/N]?y
Starting.....
RAM Line....OK
2.1.7 slave update configuration
Syntax
slave update configuration
View
User view
Parameter
None
Description
Use the slave update configuration command to manually synchronize the configuration file between the master and slave boards.
Related command: slave auto-update config.
Example
# Synchronize the configuration file between the master and slave boards.
<H3C> slave update configuration
2.1.8 xbar
Syntax
xbar [ load-balance | load-single ]
View
System view
Parameter
load-balance: Sets Xbar load balance mode.
load-single: Sets Xbar load single mode.
Description
Use the xbar command to configure the load mode of the master/slave board.
By default, the master and slave boards are both in load single mode.
Caution:
When a single SRPU is in position, the load-balance mode is not effective and the SRPU changes to the load-single mode automatically.
Example
# Configure the system Xbar load mode.
[H3C] xbar load-balance