H3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)

HomeSupportSwitchesH3C S3600 Switch SeriesReference GuidesCommand ReferencesH3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)
08-GVRP Command
Title Size Download
08-GVRP Command 58 KB

Chapter 1  GVRP Configuration Commands

1.1  GARP Configuration Commands

1.1.1  display garp statistics

Syntax

display garp statistics [ interface interface-list ]

View

Any view

Parameter

interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where &<1-10> means that you can provide up to 10 port indexes/port index lists for this argument.

Description

Use the display garp statistics command to display the GARP statistics of specified ports or all ports.

This command displays the following information:

l           Number of the GVRP packets received

l           Number of the GVRP packets transmitted

l           Number of the packets discarded

Example

# Display the GARP statistics of Ethernet1/0/1.

<H3C> display garp statistics interface Ethernet1/0/1

        GARP statistics on port Ethernet1/0/1

        Number Of GVRP Frames Received          : 0

        Number Of GVRP Frames Transmitted       : 0

        Number Of Frames Discarded              : 0

1.1.2  display garp timer

Syntax

display garp timer [ interface interface-list ]

View

Any view

Parameter

interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where &<1-10> means that you can provide up to 10 port indexes/port index lists for this argument.

Description

Use the display garp timer command to display the settings of the GARP timers on specified ports or all ports.

This command displays the settings of the following timers:

l           Join timer

l           Leave timer

l           LeaveAll timer

l           Hold timer

Related command: garp timer, garp timer leaveall.

Example

# Display the settings of the GARP timers on port Ethernet1/0/1.

<H3C> display garp timer interface Ethernet1/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

1.1.3  garp timer

Syntax

garp timer { hold | join | leave } timer-value

undo garp timer { hold | join | leave }

View

Ethernet port view

Parameter

hold: Sets the GARP Hold timer. When a GARP entity receives a piece of registration information, it does not send out a Join message immediately. Instead, to save the bandwidth resources, it starts the Hold timer, puts all registration information it receives before the timer times out into one Join message and sends out the message after the timer times out.

join: Sets the GARP Join timer. To transmit the Join messages reliably to other entities, a GARP entity sends each Join message two times. The Join timer is used to define the interval for sending each Join message.

leave: Sets the GARP Leave timer. When a GARP entity expects to deregister a piece of attribute information, it sends out a Leave message. Any GARP entity receiving this message starts its Leave timer, and deregisters the attribute information if it does not receives a Join message again before the timer times out.

timer-value: Timeout time (in centiseconds) of the GARP timer (Hold, Join or Leave) to be set. This argument needs to be a multiple of 5. By default, it is 10, 20, and 60 for Hold, Join and Leave timers respectively.

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.

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-1 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 command: display garp timer.

Example

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

<H3C> system-view

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

[H3C] interface Ethernet1/0/1

[H3C-Ethernet1/0/1] garp timer join 20

1.1.4  garp timer leaveall

Syntax

garp timer leaveall timer-value

undo garp timer leaveall

View

System view

Parameter

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.

By default, the LeaveAll timer is set to 1,000 centiseconds (that is, 10 seconds).

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.

Once a GARP entity starts up, it starts the LeaveAll timer, and sends out a LeaveALL message after the timer times out, so that other GARP entities can re-register all the attribute information on this entity. After that, the entity restarts the LeaveAll timer to begin a new cycle.

Related command: display garp timer.

Example

# Set the GARP LeaveAll timer to 100 centiseconds.

<H3C> system-view

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

[H3C] garp timer leaveall 100

1.1.5  reset garp statistics

Syntax

reset garp statistics [ interface interface-list ]

View

User view

Parameter

interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where &<1-10> means that you can provide up to 10 port indexes/port index lists for this argument.

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 command: display garp statistics.

Example

# Clear GARP statistics of all ports.

<H3C> reset garp statistics

1.2  GVRP Configuration Commands

1.2.1  display gvrp statistics

Syntax

display gvrp statistics [ interface interface-list ]

View

Any view

Parameter

interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where &<1-10> means that you can provide up to 10 port indexes/port index lists 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

Example

# Display the GVRP statistics of Ethernet1/0/1, assuming that the port is a trunk port.

<H3C> 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

1.2.2  display gvrp status

Syntax

display gvrp status

View

Any view

Parameter

None

Description

Use the display gvrp status command to display the global GVRP status (enabled or disabled).

Example

# Display the global GVRP status.

<H3C> display gvrp status

GVRP is enabled

The above information indicates that GVRP is enabled globally.

1.2.3  gvrp

Syntax

gvrp

undo gvrp

View

System view, Ethernet port view

Parameter

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           GVRP is disabled on any port if GVRP is disabled globally. In this case, you cannot enable GVRP for a port.

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 command: display gvrp status.

Example

# Enable GVRP globally.

<H3C> system-view

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

[H3C] gvrp

GVRP is enabled globally.

1.2.4  gvrp registration

Syntax

gvrp registration { fixed | forbidden | normal }

undo gvrp registration

View

Ethernet port view

Parameter

fixed: Allows the manual creation and registration of VLANs on the current port, and inhibits the dynamic registration and deregistration of VLANs on the current port.

forbidden: Deregisters all the VLANs except VLAN 1 on the current port, and inhibits the creation and registration of any other VLAN on the current port.

normal: Allows both manual and dynamic creation, registration, and deregistration of VLANs on the current port.

Description

Use the gvrp registration command to configure the GVRP registration type on a port.

Use the undo gvrp registration command to restore the default GVRP registration type on a port.

By default, the registration type is normal.

Note that these commands can be operated only on trunk ports.

Related command: display gvrp statistics

Example

# Configure the GVRP registration type on the port Ethernet1/0/1 to fixed.

<H3C> system-view

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

[H3C] interface Ethernet1/0/1

[H3C-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
新华三官网