01-Access Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)01-Access Volume
09-GVRP Commands
Title Size Download
09-GVRP Commands 57.18 KB

GARP Configuration Commands

display garp statistics

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.

Examples

# Display statistics about GARP for port GigabitEthernet 2/0/1.

<Sysname> display garp statistics interface GigabitEthernet2/0/1

        GARP statistics on port GigabitEthernet2/0/1

 

        Number of GVRP Frames Received          : 0

        Number of GVRP Frames Transmitted       : 0

        Number of Frames Discarded              : 0

display garp timer

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.

Note that:

l          If the interface interface-list keyword-argument combination is not specified, this command displays the GARP timer settings of all the ports.

l          If the interface interface-list keyword-argument combination is specified, this command displays the GARP timer settings of the specified ports.

Related commands: garp timer, garp timer leaveall.

Examples

# Display GARP timers on port GigabitEthernet 2/0/1.

<Sysname> display garp timer interface GigabitEthernet 2/0/1

        GARP timers on port GigabitEthernet2/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 interface view, Layer-2 aggregate interface view, port group view

Default Level

2: System level

Parameters

hold: Sets the hold timer.

join: Sets the join timer.

leave: Sets the leave timer.

timer-value: Timer setting (in centiseconds), which must be a multiple of 5.

Description

Use the garp timer command to set a GARP timer for an Ethernet port or all ports in a port group in compliance with the timer setting dependencies shown in Table 1-1.

Use the undo garp timer command to restore the default of a GARP timer. This may fail if the default does not satisfy the dependencies shown in Table 1-1.

By default, the hold timer, the join timer, and the leave timer are set to 10 centiseconds, 20 centiseconds, and 60 centiseconds.

Note that:

l          In Ethernet/Layer-2 aggregate interface view, these two commands apply to the current port only; in port group view, these two commands apply to all the ports in the port group.

l          The GVRP configuration made on a link aggregation member port can take effect only after the port is removed from the group. For more information about link aggregation, refer to Link Aggregation Configuration in the Access Volume.

l          When restoring the default GARP timers, you are recommended to do that on the timers in the order of hold, join, leave, and leaveall.

l          When configuring GARP timers, note that their values are dependent on each other and must be a multiplier of five centiseconds. If the value range for a timer is not desired, you may change it by tuning the value of another timer as shown in the following table:

Table 1-1 Dependencies of GARP timers

Timer

Lower limit

Upper limit

Hold

10 centiseconds

Not greater than half of the join timer setting

Join

Not less than two times the hold timer setting

Less than half of the leave timer setting

Leave

Greater than two times the join timer setting

Less than the leaveall timer setting

Leaveall

Greater than the leave timer setting

32765 centiseconds

 

Related commands: display garp timer.

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 2/0/1

[Sysname-GigabitEthernet2/0/1] garp timer join 25

garp timer leaveall

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 the range 65 to 32765 (in centiseconds), Note that the setting of the leaveall timer must be a multiple of 5 centiseconds and must be greater than the leave timer settings of all the ports.

Description

Use the garp timer leaveall command to set the leaveall timer of GARP.

Use the undo garp timer leaveall command to restore the default. This may fail if the default is less than the setting of the current leave timer.

By default, the setting of the leaveall timer is 1000 centiseconds (that is, 10 seconds).

A leaveall timer starts upon the start of a GARP application entity. When this timer expires, the entity sends a LeaveAll message so that other entities can re-register its attribute information and starts another leaveall timer at the same time.

Each time a device on the network receives a LeaveAll message, it resets its leaveall timer. Therefore, a GARP application entity may send LeaveAll messages at the interval set by its leaveall timer or the leaveall timer on another device on the network, whichever is smaller.

Related commands: display garp timer.

Examples

# Set the leaveall timer to 100 centiseconds, assuming that the leave timer is 60 centiseconds.

<Sysname> system-view

[Sysname] garp timer leaveall 100

reset garp statistics

Syntax

reset garp statistics [ interface interface-list ]

View

User view

Default Level

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.

Description

Use the reset garp statistics command to clear the GARP statistics of the specified ports or all ports if no ports are specified.

The cleared statistics include the statistics about GVRP packets received, sent and dropped.

Related commands: display gvrp statistics.

Examples

# Clear statistics about GARP on all ports.

<Sysname> reset garp statistics

GVRP Configuration Commands

display gvrp local-vlan interface

Syntax

display gvrp local-vlan interface interface-type interface-number

View

Any view

Default Level

0: Visit level

Parameters

interface interface-type interface-number: Displays the local VLAN information maintained by GVRP on the port specified 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 2/0/1.

<Sysname> display gvrp local-vlan interface GigabitEthernet 2/0/1

 Following VLANs exist in GVRP local database:

  1(default),2-500

// The information above shows that GVRP maintains the information about VLAN 1, VLAN 2 through VLAN 500, which GigabitEthernet 2/0/1 belongs to.

display gvrp state

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 1, which GigabitEthernet 2/0/1 belongs to.

<Sysname> display gvrp state interface GigabitEthernet 2/0/1 vlan 1

        GVRP state of VLAN 1 on port GigabitEthernet2/0/1

 

                 Applicant state machine      : VP

                 Registrar state machine      : MTR

display gvrp statistics

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.

Note that if the interface interface-list is not provided, the GVRP statistics of all trunk ports will be displayed. Otherwise, only the GVRP statistics of all the specified trunk port will be displayed.

Examples

# Display statistics about GVRP for trunk port GigabitEthernet 2/0/1.

<Sysname> display gvrp statistics interface GigabitEthernet 2/0/1

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

 

display gvrp status

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

display gvrp vlan-operation interface

Syntax

display gvrp vlan-operation interface interface-type interface-number

View

Any view

Default Level

0: Visit level

Parameters

interface interface-type interface-number: Displays the information about dynamic VLAN operations on the port specified 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 2/0/1.

<Sysname> display gvrp vlan-operation interface GigabitEthernet 2/0/1

        Dynamic VLAN operations on port GigabitEthernet2/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

gvrp

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

l          The port where you enable/disable GVRP must be a trunk port.

l          GVRP is mutually exclusive with service loopback.

l          In an MSTP network, GVRP can run on only the CIST. In addition, blocked ports on the CIST cannot receive/send GVRP packets.

l          Enabling GVRP on a Layer-2 aggregate interface enables both the aggregate interface and all selected member ports in the corresponding link aggregation group to participate in dynamic VLAN registration and deregistration. In addition, the GVRP configuration made on a link aggregation member port can take effect only after the port is removed from the group. For more information about link aggregation, refer to Link Aggregation Configuration in the Access Volume.

Related commands: display gvrp status.

Examples

# Enable GVRP globally.

<Sysname> system-view

[Sysname] gvrp

GVRP is enabled globally.

gvrp registration

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.

GVRP provides the following three registration types on a port:

l          Normal –– Enables the port to dynamically register/deregister VLANs, and to propagate both dynamic and static VLAN information.

l          Fixed –– Disables the port from dynamically registering/deregistering VLANs or propagating information about dynamic VLANs, but allows the port to propagate information about static VLANs. A trunk port with fixed registration type thus allows only manually configured VLANs to pass through even though it is configured to carry all VLANs.

l          Forbidden –– Disables the port from dynamically registering/deregistering VLANs or propagating VLAN information except information about VLAN 1. A trunk port with forbidden registration type thus allows only VLAN 1 to pass through even though it is configured to carry all VLANs.

Note that:

l          This command is only available on trunk ports.

l          The GVRP configuration type configuration made on a link aggregation member port can take effect only after the port is removed from the group. For more information about link aggregation, refer to Link Aggregation Configuration in the Access Volume.

Related commands: display garp statistics.

Examples

# Set the GVRP registration type to fixed on port GigabitEthernet 2/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] port link-type trunk

[Sysname-GigabitEthernet2/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
新华三官网