- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
07-GVRP Command | 46.11 KB |
GARP Configuration Commands
display garp statistics
Syntax
display garp statistics [ interface interface-list ]
View
Any view
Parameters
interface interface-list: Specifies an Ethernet port list. You need to provide the interface-list argument in the format of { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where the interface-type argument represents the port type, the interface-number argument represents the port number, and & <1-10> means that you can provide up to 10 port indexes/port index ranges for this argument.
Description
Use the display garp statistics command to display the GARP statistics of specified ports or all ports.
If the interface interface-list keyword-argument combination is not specified, this command displays the GARP statistics on all the ports. Otherwise, only the GARP statistics on the specified Ethernet port is displayed.
Examples
# Display the GARP statistics on GigabitEthernet 1/0/1.
<device> display garp statistics interface GigabitEthernet 1/0/1
GARP statistics on port GigabitEthernet1/0/1
Number Of GVRP Frames Received : 0
Number Of GVRP Frames Transmitted : 0
Number Of Frames Discarded : 0
Table 1-1 display garp statistics command output description
Field |
Description |
Number of GVRP Frames Received |
Number of the GVRP frames received on the port |
Number of GVRP Frames Transmitted |
Number of the GVRP frames transmitted through the port |
Number of Frames Discarded |
Number of GVRP frames discarded by the port |
display garp timer
Syntax
display garp timer [ interface interface-list ]
View
Any view
Parameters
interface interface-list: Specifies an Ethernet port list. You need to provide the interface-list argument in the format of { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where the interface-type argument represents the port type, the interface-number argument represents the port number, and & <1-10> means that you can provide up to 10 port indexes/port index ranges for this argument.
Description
Use the display garp timer command to display the settings of the GARP timers on specified ports or all ports.
If the interface interface-list keyword-argument combination is not specified, this command displays the GARP timer settings of all ports. Otherwise, only the GARP timer settings of the specified Ethernet port are displayed.
This command displays the settings of the following timers:
l Join timer
l Leave timer
l LeaveAll timer
l Hold timer
Related commands: garp timer, garp timer leaveall.
Examples
# Display the settings of the GARP timers on port GigabitEthernet 1/0/1.
<device> display garp timer interface GigabitEthernet 1/0/1
GARP timers on port GigabitEthernet1/0/1
Garp Join Time : 20 centiseconds
Garp Leave Time : 60 centiseconds
Garp LeaveAll Time : 1000 centiseconds
Garp Hold Time : 10 centiseconds
garp timer
Syntax
garp timer { hold | join | leave } timer-value
undo garp timer { hold | join | leave }
View
Ethernet port view
Parameters
hold: Sets the GARP Hold timer.
join: Sets the GARP Join timer.
leave: Sets the GARP Leave timer.
timer-value: Timeout time (in centiseconds) of the GARP timer (Hold, Join or Leave) to be set.
Description
Use the garp timer command to set a GARP timer (that is, the Hold timer, the Join timer, or the Leaver timer) for an Ethernet port.
Use the undo garp timer command to restore the default setting of a GARP timer.
By default, the Hold, Join, and Leave timers are set to 10, 20, and 60 centiseconds.
Note that:
l The setting of each timer must be a multiple of 5 (in centiseconds).
l The timeout ranges of the timers vary depending on the timeout values you set for other timers. If you want to set the timeout time of a timer to a value out of the current range, you can set the timeout time of the associated timer to another value to change the timeout range of this timer.
The following table describes the relations between the timers:
Table 1-2 Relations between the timers
Timer |
Lower threshold |
Upper threshold |
Hold |
10 centiseconds |
This upper threshold is less than or equal to one-half of the timeout time of the Join timer. You can change the threshold by changing the timeout time of the Join timer. |
Join |
This lower threshold is greater than or equal to twice the timeout time of the Hold timer. You can change the threshold by changing the timeout time of the Hold timer. |
This upper threshold is less than one-half of the timeout time of the Leave timer. You can change the threshold by changing the timeout time of the Leave timer. |
Leave |
This lower threshold is greater than twice the timeout time of the Join timer. You can change the threshold by changing the timeout time of the Join timer. |
This upper threshold is less than the timeout time of the LeaveAll timer. You can change the threshold by changing the timeout time of the LeaveAll timer. |
LeaveAll |
This lower threshold is greater than the timeout time of the Leave timer. You can change threshold by changing the timeout time of the Leave timer. |
32,765 centiseconds |
Related commands: display garp timer.
Examples
# Set the GARP Join timer to 30 centiseconds for GigabitEthernet 1/0/1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] garp timer join 30
garp timer leaveall
Syntax
garp timer leaveall timer-value
undo garp timer leaveall
View
System view
Parameters
timer-value: Setting (in centiseconds) of the GARP LeaveAll timer. You need to set this argument with the Leave timer settings of other Ethernet ports as references. That is, this argument needs to be larger than the Leave timer settings of any Ethernet ports. Also note that this argument needs to be a multiple of 5 and cannot be larger than 32,765.
Description
Use the garp timer leaveall command to set the GARP LeaveAll timer.
Use the undo garp timer leaveall command to restore the default setting of the GARP LeaveAll timer.
By default, the LeaveAll timer is set to 1,000 centiseconds, that is, 10 seconds.
Related commands: display garp timer.
Examples
# Set the GARP LeaveAll timer to 100 centiseconds.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] garp timer leaveall 100
reset garp statistics
Syntax
reset garp statistics [ interface interface-list ]
View
User view
Parameters
Description
Use the reset garp statistics command to clear the GARP statistics (such as the information about the packets received/sent/discarded by GVRP) on specified or all ports.
Executing the reset garp statistics command without any parameter clears the GARP statistics of all ports.
Related commands: display garp statistics.
Examples
# Clear GARP statistics of all ports.
<device> reset garp statistics
GVRP Configuration Commands
display gvrp statistics
Syntax
display gvrp statistics [ interface interface-list ]
View
Any view
Parameters
interface interface-list: Specifies an Ethernet port list. You need to provide the interface-list argument in the format of { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where the interface-type argument represents the port type, the interface-number argument represents the port number, and & <1-10> means that you can provide up to 10 port indexes/port index ranges for this argument.
Description
Use the display gvrp statistics command to display the GVRP statistics of all trunk ports.
This command displays the following information:
l GVRP status
l Number of the GVRP entries that fail to be registered
l Source MAC address of the previous GVRP PDU
l GVRP registration type of a port
Examples
# Display the GVRP statistics of GigabitEthernet 1/0/1, assuming that the port is a trunk port.
<device> display gvrp statistics interface GigabitEthernet 1/0/1
GVRP statistics on port GigabitEthernet1/0/1
GVRP Status : Enabled
GVRP Failed Registrations : 0
GVRP Last Pdu Origin : 0000-0000-0000
GVRP Registration Type : Normal
display gvrp status
Syntax
display gvrp status
View
Any view
Parameters
None
Description
Use the display gvrp status command to display the global GVRP status (enabled or disabled).
Examples
# Display the global GVRP status.
<device> display gvrp status
GVRP is enabled
The above information indicates that GVRP is enabled globally.
gvrp
Syntax
gvrp
undo gvrp
View
System view, Ethernet port view
Parameters
None
Description
Use the gvrp command to enable GVRP globally (in system view) or for a port (in Ethernet port view).
Use the undo gvrp command to disable GVRP globally (in system view) or on a port (in Ethernet port view).
By default, GVRP is disabled both globally and on ports.
Note that:
l To enable GVRP for a port, you need to enable GVRP globally first.
l You can enable/disable GVRP only on trunk ports.
l After you enable GVRP on a trunk port, you cannot change the port to other types.
Related commands: display gvrp status.
Examples
# Enable GVRP globally.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] gvrp
GVRP is enabled globally.
gvrp registration
Syntax
gvrp registration { fixed | forbidden | normal }
undo gvrp registration
View
Ethernet port view
Parameters
fixed: Specifies the fixed GVRP registration mode. A port operating in this mode cannot register/deregister VLAN information dynamically. It only propagates static VLAN information. Besides, the port permits only static VLANs, that is, it propagates only static VLAN information to the other GARP members.
forbidden: Specifies the forbidden GVRP registration mode. A port operating in this mode cannot register/deregister VLAN information dynamically. It permits only VLAN 1, that is, it propagates only the information about VLAN 1 to the other GARP members.
normal: Specifies the normal mode. A port operating in this mode can dynamically register/deregister VLAN information and can propagate both dynamic and static VLAN information.
Description
Use the gvrp registration command to configure the GVRP registration mode on a port.
Use the undo gvrp registration command to restore the default GVRP registration mode on a port.
By default, the registration mode is normal.
Note that these commands only apply to trunk ports.
Related commands: display gvrp statistics
Examples
# Configure GigabitEthernet 1/0/1 to operate in fixed GVRP registration mode.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet1/0/1
[device-GigabitEthernet1/0/1] gvrp registration fixed