H3C S9500 Command Manual-Release2132[V2.03]-01 IP Access Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-01 IP Access Volume
03-GVRP Commands
Title Size Download
03-GVRP Commands 56.08 KB

Chapter 1  GARP/GVRP Configuration Commands

1.1  GARP Configuration Commands

1.1.1  debugging garp event

Syntax

debugging garp event

undo debugging garp event

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging garp event command to enable GARP event debugging, in order to debug GARP timer events.

Use the undo debugging garp event command to disable GARP event debugging.

By default, GARP event debugging is disabled.

Examples

# Enable GARP event debugging on a GARP-enabled device.

<Sysname> terminal debugging

<Sysname> debugging garp event

*Mar 26 14:18:10:635 2007 Sysname GARP/7/Timer start:Slot=1:

Gvrp Start Join Timer for port Ethernet1/1/1 value = 200 millisec

// The above information shows the Join timer on port Ethernet1/1/1 started with a value of 200 ms.

*Mar 26 14:18:11:635 2007 Sysname GARP/7/Timer expiry:Slot=1:

Gvrp Join Timer Expired for port Ethernet1/1/1

// The above information shows the Join timer on port Ethernet1/1/1 expired.

(Other timers’ event information is omitted here.)

1.1.2  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. 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 display garp statistics command to display statistics about GARP for specified or all ports. If no port is specified, the GARP statistics of all ports are displayed.

Examples

# Display statistics about GARP for port Ethernet1/1/1.

<Sysname> display garp statistics interface ethernet 1/1/1

 

        GARP statistics on port Ethernet1/1/1

 

        Number of GVRP Frames Received          : 0

        Number of GVRP Frames Transmitted       : 0

        Number of Frames Discarded              : 0

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

Description

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

If no interface is specified, the GARP timer settings on all ports are displayed.

Related commands: garp timer, garp timer leaveall.

Examples

# Display the GARP timer settings on port Ethernet1/1/1.

<Sysname> display garp timer interface ethernet 1/1/1

 

        GARP timers on port Ethernet1/1/1

 

                Garp Join Time          : 20 centiseconds

                Garp Leave Time         : 60 centiseconds

                Garp LeaveAll Time      : 1000 centiseconds

                Garp Hold Time          : 10 centiseconds

1.1.4  garp timer

Syntax

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

undo garp timer { hold | join | leave }

View

Ethernet 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 is 10 centiseconds, the Join timer is 20 centiseconds, and the Leave timer is 60 centiseconds.

When restoring the default GARP timers, you are recommended to do that on the timers in the order of Hold, Join, Leave, and LeaveAll.

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

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

[Sysname] interface ethernet 1/1/1

[Sysname-Ethernet1/1/1] garp timer join 25

1.1.5  garp timer leaveall

Syntax

garp timer leaveall timer-value

undo garp timer leaveall

View

System view

Default Level

2: System level

Parameters

timer-value: Value for the LeaveAll timer in centiseconds, which is a multiple of 5. This value must be greater than the Leave timer values of all 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 LeaveAll timer is 1000 centiseconds, that is, 10 seconds.

A LeaveAll timer starts upon the startup 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, at the same time, the entity restarts the LeaveAll timer.

Different devices on a network may have different LeaveAll timer values. Each time a device on the network receives a LeaveAll message, it resets its LeaveAll timer. Therefore, each GARP application entity will send LeaveAll messages based on the shortest LeaveAll timer in the network. As a result, only the shortest LeaveAll timer in the network will take effect.

Related commands: display garp timer.

Examples

# Set the LeaveAll timer to 100 centiseconds, assuming that the Leave timer is 60 centiseconds.

<Sysname> system-view

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

[Sysname] garp timer leaveall 100

1.1.6  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. 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 statistics about GARP on specified or all ports.

If no port is specified, the GARP statistics of all ports are cleared.

Related commands: display gvrp statistics.

Examples

# Clear statistics about GARP on all ports.

<Sysname> reset garp statistics

1.2  GVRP Configuration Commands

1.2.1  debugging gvrp

Syntax

debugging gvrp { packet | event }

undo debugging gvrp { packet | event }

View

User view

Default Level

1: Monitor level

Parameters

packet: Specifies GVRP packet debugging.

event: Specifies GVRP event debugging.

Description

Use the debugging gvrp command to enable GVRP packet or event debugging on all GVRP-enabled ports.

Use the undo debugging gvrp command to disable GVRP packet or event debugging.

By default, both GVRP packet debugging and GVRP event debugging are disabled.

Examples

# Enable GVRP packet debugging on a GVRP-enabled device.

<Sysname> terminal debugging

<Sysname> debugging gvrp packet

*Mar 26 14:18:40:635 2007 Sysname GARP/7/debug_case:Slot=1:

Tx GVRP message on port Ethernet1/1/1

// The above information shows a GVRP message was transmitted on port Ethernet1/1/1.

*Mar 26 14:18:40:635 2007 Sysname GARP/7/Garp packet:Slot=1:

Vlan Attribute, Event = Join Empty, VLAN Id = 1

// The above information shows the GVRP message transmitted was a Join Empty message carrying a VLAN attribute (VLAN ID of 1).

Table 1-2 Description on the fields of the debugging gvrp packet command

Field

Description

Tx

This is a transmitted message.

Rx

This is a received message.

GVRP message

This is a GVRP message.

port portName

Name of the port that transmits or receives the message

Vlan Attribute

The attribute carried in the message is a VLAN ID.

Event = { Leave All | Join Empty | Join In | Leave Empty | Leave In }

Event type of the message, which can be Leave All, Join Empty, Join In, Leave Empty or Leave In

VLAN Id = n

VLAN ID

 

Table 1-3 Description on the fields of the debugging gvrp event command

Field

Description

GVRP: Wrong VLAN Id = n to create

VLAN ID error occurred when a VLAN is created

GVRP: Number of static VLANs for port portName = n

Number of static VLANs on a port

 

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

Description

Use the display gvrp statistics command to display statistics about GVRP for specified or all trunk ports.

If no port is specified, the GVRP statistics of all trunk ports are displayed.

Examples

# Display statistics about GVRP for trunk port Ethernet1/1/1.

<Sysname> display gvrp statistics interface ethernet 1/1/1

 

        GVRP statistics on port Ethernet1/1/1

 

                GVRP Status                     : Enabled

                GVRP Running                    : YES

                GVRP Failed Registrations       : 0

                GVRP Last Pdu Origin            : 00E0-FC12-3456

                GVRP Registration Type          : Normal

Table 1-4 Description on the fields of the display gvrp statistics command

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 mode on the port.

 

1.2.3  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

1.2.4  gvrp

Syntax

gvrp

undo gvrp

View

System view, Ethernet interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the gvrp command to enable GVRP globally, on a port, or on all ports in a port group depending on the view you entered.

Use the undo gvrp command to disable GVRP globally, on a port, or on all ports in a port group depending on the view you entered.

Disabling GVRP globally also disables it on all ports.

By default, GVRP is disabled.

Note that:

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

l           Before you can enable GVRP on it, you must enable GVRP globally.

l           BPDU tunneling is incompatible with GVRP. Before enabling GVRP, disable BPDU tunneling.

l           Isolate-user-vlan is incompatible with global GVRP. Make sure that no Isolate-user-vlan has been created on the switch before enabling GVRP.

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.

1.2.5  gvrp registration

Syntax

gvrp registration { fixed | forbidden | normal }

undo gvrp registration

View

Ethernet interface view, port group view

Default Level

2: System level

Parameters

fixed: Sets the registration mode to fixed.

forbidden: Sets the registration mode to forbidden.

normal: Sets the registration mode to normal.

Description

Use the gvrp registration command to configure the GVRP registration mode on a port or all ports in a port group.

Use the undo gvrp registration command to restore the default.

The default GVRP registration mode is normal.

GVRP provides the following three registration modes on a port:

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

l           Fixed –– Disables the port to dynamically register and deregister VLANs or propagate information about dynamic VLANs, but allows the port to propagate information about static VLANs. A trunk port in fixed registration mode thus allows only manually configured VLANs to pass through even though it is configured to carry all VLANs.

l           Forbidden –– Disables the port to dynamically register and deregister VLANs and to propagate VLAN information except information about VLAN 1. A trunk port in forbidden registration mode thus allows only VLAN 1 to pass through even though it is configured to carry all VLANs.

Note that this command is only available on trunk ports.

Related commands: display garp statistics.

Examples

# Set the GVRP registration mode to fixed on port Ethernet1/1/1.

<Sysname> system-view

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

[Sysname] interface ethernet 1/1/1

[Sysname-Ethernet1/1/1] port link-type trunk

[Sysname-Ethernet1/1/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 Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网