H3C S3600 Command Manual-Release 1602(V1.02)

HomeSupportSwitchesH3C S3600 Switch SeriesReference GuidesCommand ReferencesH3C S3600 Command Manual-Release 1602(V1.02)
07-GVRP Command
Title Size Download
07-GVRP Command 54 KB

GARP Configuration Commands

display garp statistics

Syntax

display garp statistics [ interface interface-list ]

View

Any view

Parameters

interface-list: Specifies a list of Ethernet ports for which the statistics about GARP are to be displayed. In this list, you can specify individual ports and port ranges. An individual port takes the form of interface-type interface-number and a port range takes the form of interface-type interface-number1 to interface-type interface-number2, with interface-number2 taking a value greater than interface-number1. The total number of individual ports and port ranges defined in the list must not exceed 10.

Description

Use the display garp statistics command to display the GARP statistics of the specified or all ports. If the interface interface-list keyword-argument combination is not specified, this command displays the GARP statistics on all the ports.

The switch automatically collects statistics about GVRP packets sent, received and dropped on GVRP-enabled ports. Upon system reboot or the execution of the reset garp statistics command, the system automatically deletes the statistics and starts collecting statistics again. You can check whether GVRP is running normally on a port by checking the GVRP statistics on it:

l          If the number of received GVRP packets and the number of sent GVRP packets are the same as those on the remote port, it indicates that the ports are transmitting and receiving GVRP packets normally and no registration information is lost.

l          If the number of dropped GVRP packets is not 0, it indicates that the registration mode on the port may be fixed or forbidden. As in either mode dynamic VLANs cannot be registered, GVRP packet drop may occur on the port.

Examples

# Display the GARP statistics on Ethernet1/0/1 and Ethernet 1/0/2.

<Sysname> display garp statistics interface Ethernet 1/0/1 to Ethernet 1/0/2

        GARP statistics on port Ethernet1/0/1

 

 

        Number Of GVRP Frames Received          : 0

        Number Of GVRP Frames Transmitted       : 0

        Number Of Frames Discarded              : 0

 

        GARP statistics on port Ethernet1/0/2

 

 

        Number Of GVRP Frames Received          : 0

        Number Of GVRP Frames Transmitted       : 0

        Number Of Frames Discarded              : 0

Table 1-1 Description on the fields of the display garp statistics command

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-list: Specifies a list of Ethernet ports of which the GARP timer settings are to be displayed. In this list, you can specify individual ports and port ranges. An individual port takes the form of interface-type interface-number and a port range takes the form of interface-type interface-number1 to interface-type interface-number2, with interface-number2 taking a value greater than interface-number1. The total number of individual ports and port ranges defined in the list must not exceed 10.

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.

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 Ethernet1/0/1.

<Sysname> display garp timer interface Ethernet 1/0/1

 

        GARP timers on port Ethernet1/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

 

In networking, the following GARP timer settings are recommended:

l          GARP hold timer: 100 centiseconds (1 second)

l          GARP Join timer: 600 centiseconds (6 seconds)

l          GARP Leave timer: 3000 centiseconds (30 seconds)

 

Related commands: display garp timer.

Examples

# Set the GARP Join timer to 30 centiseconds for Ethernet1/0/1.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/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.

 

In networking, you are recommended to set the GARP LeaveAll timer to 12000 centiseconds (2 minutes).

 

Related commands: display garp timer.

Examples

# Set the GARP LeaveAll timer to 100 centiseconds.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] garp timer leaveall 100

reset garp statistics

Syntax

reset garp statistics [ interface interface-list ]

View

User view

Parameters

interface-list: Specifies a list of Ethernet ports. In this list, you can specify individual ports and port ranges. An individual port takes the form of interface-type interface-number and a port range takes the form of interface-type interface-number1 to interface-type interface-number2, with interface-number2 taking a value greater than interface-number1. The total number of individual ports and port ranges defined in the list must not exceed 10.

Description

Use the reset garp statistics command to clear the GARP statistics (including statistics about packets received/sent/discarded by GVRP) on the specified or all ports. You can use the display garp statistics command to view the NDP statistics before and after the execution of the reset garp statistics command to verify the execution result.

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.

<Sysname> 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. By providing a value for this argument, you can display the GVRP statistics on the specified ports. 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.

Note that, this command displays GVRP statistics only on the trunk ports included in the list. Statistics on non-trunk ports will not be displayed.

Description

Use the display gvrp statistics command to display the GVRP statistics of 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 Ethernet1/0/1, assuming that the port is a trunk port.

<Sysname> display gvrp statistics interface Ethernet 1/0/1

        GVRP statistics on port Ethernet1/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.

<Sysname> 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. GVRP does not take effect automatically on ports upon being enabled globally. 

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.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] gvrp

 GVRP is enabled globally.

# Enable GVRP on Ethernet 1/0/1.

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] gvrp

GVRP is enabled on port Ethernet1/0/5.

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 or 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 or 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 or 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 GVRP registration mode is normal.

Note that these commands only apply to trunk ports.

Related commands: display gvrp statistics

Examples

# Configure Ethernet1/0/1 to operate in fixed GVRP registration mode.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet1/0/1] gvrp registration fixed

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网