11-GVRP Commands
Chapters Download (58.82 KB)
Syntax
display garp statistics [ interface interface-list ]
View
Any view
Default Level
1: Monitor level
Parameters
interface interface-list: Defines one or multiple Ethernet ports for which the GARP statistics will be displayed. You can provide up to 10 Ethernet port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1. If no ports are specified, this command displays the GARP statistics for all ports.
Description
Use the display garp statistics command to display the GARP statistics of the specified port(s) or all ports if no ports are specified.
This command displays the statistics about GVRP packets received, transmitted, and dropped on GVRP-enabled ports. When the system is restarted or after you perform the reset garp statistics command, the existing packet statistics are cleared and the system starts to collect new GARP statistics. With the statistics, you can judge whether a GVRP-enabled port is operating normally.
l If the number of received and transmitted GVRP packets on the port is the same as that on the remote port, it indicates that the two ends are transmitting and receiving GVRP packets normally and no registration information is lost.
l If there are dropped GVRP packets on the port, check its registration mode. GVRP packets are likely to be dropped if the registration mode is fixed or forbidden, because dynamic VLANs cannot be registered in either of the modes.
Related commands: reset garp statistics.
Examples
# Display GARP statistics on ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
<Sysname> display garp statistics interface gigabitethernet 1/0/1 to gigabitethernet 1/0/2
GARP statistics on port GigabitEthernet1/0/1
Number of GVRP Frames Received : 0
Number of GVRP Frames Transmitted : 0
Number of Frames Discarded : 0
GARP statistics on port GigabitEthernet1/0/2
Number of GVRP Frames Received : 0
Number of GVRP Frames Transmitted : 0
Number of Frames Discarded : 0
Syntax
display garp timer [ interface interface-list ]
View
Any view
Default Level
1: Monitor level
Parameters
interface interface-list: Defines one or multiple Ethernet ports. You can provide up to 10 Ethernet port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1. If no ports are specified, this command displays the GARP timer settings on all ports.
Description
Use the display garp timer command to display GARP timer settings of specific ports.
Related commands: garp timer hold, garp timer join, garp timer leave, garp timer leaveall.
Examples
# Display GARP timers on port GigabitEthernet 1/0/1.
<Sysname> 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
Syntax
display gvrp local-vlan interface interface-type interface-number
View
Any view
Default Level
0: Visit level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display gvrp local-vlan interface command to display the local VLAN information maintained by GVRP on the specified port.
Examples
# Display the local VLAN information maintained by GVRP on GigabitEthernet 1/0/1.
<Sysname> display gvrp local-vlan interface gigabitethernet 1/0/1
Following VLANs exist in GVRP local database:
1(default),2-500
Syntax
display gvrp state interface interface-type interface-number vlan vlan-id
View
Any view
Default Level
0: Visit level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094.
Description
Use the display gvrp state command to display the current GVRP state.
Examples
# Display the GVRP state of VLAN 2, which GigabitEthernet 1/0/1 belongs to.
<Sysname> display gvrp state interface gigabitethernet 1/0/1 vlan 2
GVRP state of VLAN 2 on port GigabitEthernet1/0/1
Applicant state machine : VP
Registrar state machine : MTR
Syntax
display gvrp statistics [ interface interface-list ]
View
Any view
Default Level
1: Monitor level
Parameters
interface interface-list: Defines one or multiple Ethernet ports. You can provide up to 10 Ethernet port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1. If no ports are specified, this command displays the GVRP statistics for all trunk ports.
Description
Use the display gvrp statistics command to display the GVRP statistics of specified or all trunk ports.
Examples
# Display statistics about GVRP for trunk port GigabitEthernet 1/0/1.
<Sysname> display gvrp statistics interface gigabitethernet 1/0/1
GVRP statistics on port GigabitEthernet1/0/1
GVRP Status : Enabled
GVRP Running : YES
GVRP Failed Registrations : 0
GVRP Last Pdu Origin : 0000-0000-0000
GVRP Registration Type : Normal
Table 1-1 display gvrp statistics command output description
Field |
Description |
GVRP Status |
Indicates whether GVRP is enabled or disabled. |
GVRP Running |
Indicates whether GVRP is running. |
GVRP Failed Registrations |
Indicates the number of GVRP registration failures. |
GVRP Last Pdu Origin |
Indicates the source MAC address in the last GVRP PDU. |
GVRP Registration Type |
Indicates the GVRP registration type on the port. |
Syntax
display gvrp status
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display gvrp status command to display the global enable/disable state of GVRP.
Examples
# Display the global GVRP enable/disable state.
<Sysname> display gvrp status
GVRP is enabled
Syntax
display gvrp vlan-operation interface interface-type interface-number
View
Any view
Default Level
0: Visit level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display gvrp vlan-operation interface command to display the information about dynamic VLAN operations performed on a port.
Examples
# Display the information about dynamic VLAN operations performed on GigabitEthernet 1/0/1.
<Sysname> display gvrp vlan-operation interface gigabitethernet 1/0/1
Dynamic VLAN operations on port GigabitEthernet1/0/1
Operations of creating VLAN : 2-100
Operations of deleting VLAN : none
Operations of adding VLAN to TRUNK : 2-100
Operations of deleting VLAN from TRUNK : none
Syntax
garp timer hold timer-value
undo garp timer hold
View
Ethernet interface view, Layer-2 aggregate interface view, port group view
Default Level
2: System level
Parameters
timer-value: Hold timer setting (in centiseconds), which must be a multiple of 5 in the range of 10 (inclusive) and half of the Join timer setting (inclusive). When the Join timer is set to the default, the value range for the Hold timer is 10 (inclusive) to 10 (inclusive).
One second equals 100 centiseconds.
Description
Use the garp timer hold command to set the GARP Hold timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
Use the undo garp timer hold command to restore the default of the GARP Hold timer. This may fail if the default is beyond the valid value range for the Hold timer.
By default, the hold timer is set to 10 centiseconds.
Related commands: display garp timer, garp timer join.
Examples
# Set the GARP Hold timer to 15 centiseconds, assuming that the Join timer is 30 centiseconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] garp timer hold 15
Syntax
garp timer join timer-value
undo garp timer join
View
Ethernet interface view, Layer-2 aggregate interface view, port group view
Default Level
2: System level
Parameters
timer-value: Join timer setting (in centiseconds), which must be a multiple of 5 in the range of two times the Hold timer (inclusive) and half of the Leave timer (inclusive). When the Hold timer and the Leave timer are set to their default, the value range for the Join timer is 20 (inclusive) to 25 (inclusive).
Description
Use the garp timer join command to set the GARP Join timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
Use the undo garp timer join command to restore the default of the GARP Join timer. This may fail if the default is beyond the valid value range for the Join timer.
By default, the Join timer is set to 20 centiseconds.
Related commands: display garp timer, garp timer hold, garp timer leave.
Examples
# Set the GARP Join timer to 25 centiseconds, assuming that both the Hold timer and the Leave timer are using the default.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] garp timer join 25
Syntax
garp timer leave timer-value
undo garp timer leave
View
Ethernet interface view, Layer-2 aggregate interface view, port group view
Default Level
2: System level
Parameters
timer-value: Leave timer setting (in centiseconds), which must be a multiple of 5 between two times the Join timer (exclusive) and the LeaveAll timer setting (exclusive). When the Join timer and the LeaveAll timer are set to their default, the value range for the Leave timer is 45 (inclusive) to 995 (inclusive).
Description
Use the garp timer leave command to set the GARP Leave timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
Use the undo garp timer leave command to restore the default of the GARP Leave timer. This may fail if the default is beyond the valid value range for the Leave timer.
By default, the Leave timer is set to 60 centiseconds.
Related commands: display garp timer, garp timer join, garp timer leaveall.
Examples
# Set the GARP Leave timer to 100 centiseconds, assuming that both the Join timer and the LeaveAll timer are using the default.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] garp timer leave 100
Syntax
garp timer leaveall timer-value
undo garp timer leaveall
View
System view
Default Level
2: System level
Parameters
timer-value: Leaveall timer setting (in centiseconds), which must be a multiple of 5 in the range of the maximum Leave timer on the device (exclusive) and 32765 (inclusive). When the Leave timers on all ports are set to the default, the value range for the LeaveAll timer is 65 (inclusive) to 32765 (inclusive).
Description
Use the garp timer leaveall command to set the GARP LeaveAll timer.
Use the undo garp timer leaveall command to restore the default. This may fail if the default is beyond the valid value range for the LeaveAll timer. .
By default, the setting of the LeaveAll timer is 1000 centiseconds.
Related commands: display garp timer, garp timer leave.
Examples
# Set the leaveall timer to 100 centiseconds, assuming that the Leave timer on every port is set to 60 centiseconds.
<Sysname> system-view
[Sysname] garp timer leaveall 100
Syntax
gvrp
undo gvrp
View
System view, Ethernet interface view, Layer-2 aggregate interface view, port group view
Default Level
2: System level
Parameters
None
Description
Use the gvrp command to enable GVRP globally (in system view), on a port (in Ethernet or Layer-2 aggregate interface view), or on all ports in a port group (in port group view).
Use the undo gvrp command to disable GVRP globally, on a port, or on all ports in a port group depending on the view where the command is executed.
By default, GVRP is disabled.
Note that:
l To enable GVRP on a port, you need to enable it globally first and then on the port.
l You can use this command on trunk ports only.
l You cannot change the link type of a GVRP-enabled trunk port.
Related commands: display gvrp status.
Examples
# Enable GVRP globally.
<Sysname> system-view
[Sysname] gvrp
GVRP is enabled globally.
Syntax
gvrp registration { fixed | forbidden | normal }
undo gvrp registration
View
Ethernet interface view, Layer-2 aggregate interface view, port group view
Default Level
2: System level
Parameters
fixed: Sets the registration type to fixed.
forbidden: Sets the registration type to forbidden.
normal: Sets the registration type to normal.
Description
Use the gvrp registration command to configure the GVRP registration type on a port (in Ethernet or Layer-2 aggregate interface view) or all ports in a port group (in port group view).
Use the undo gvrp registration command to restore the default on a port, or on all ports in a port group depending on the view the command is executed.
The default GVRP registration type is normal.
Note that, this command is only available on trunk ports.
Related commands: display garp statistics.
Examples
# Set the GVRP registration type to fixed on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] gvrp registration fixed
Syntax
reset garp statistics [ interface interface-list ]
View
User view
2: System level
Parameters
interface interface-list: Defines one or multiple Ethernet ports for which the GARP statistics are to be cleared. You can provide up to 10 Ethernet port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1. If no ports are specified, this command clears the GARP statistics on all ports.
Description
Use the reset garp statistics command to clear the GARP statistics on specified ports or all ports if no ports are specified.
The cleared statistics include the statistics about GVRP packets sent, received and dropped. You can use this command in conjunction with the display garp statistics command to display GARP statistics.
Related commands: display garp statistics.
Examples
# Clear the GARP statistics on all ports.
<Sysname> reset garp statistics