No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
GVRP Configuration Commands

GVRP Configuration Commands

NOTE:

CE6880EI does not support this function.

display garp statistics

Function

The display garp statistics command displays GARP statistics on a specific or all interfaces.

Format

display garp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays GARP statistics on a specific interface:
  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After GARP is enabled on a device's interface, the device automatically records statistics about GARP PDUs sent, received, and discarded if any. To check the statistics, run the display garp statistics command. The statistics help determine whether GARP is functioning properly.
  • If interface interface-type interface-number is not specified in the command, GARP statistics on all interfaces are displayed.
  • If interface interface-type interface-number is specified in the command, GARP statistics on a specific interface are displayed.

Example

# Display GARP statistics on the device.

<HUAWEI> display garp statistics 
  GARP statistics on port 10GE1/0/1
    Number of GVRP frames received       : 208812                               
    Number of GVRP frames transmitted    : 208586                               
    Number of frames discarded           : 1911                            
Table 7-62  Description of the display garp statistics command output

Item

Description

Number of GVRP frames received

Statistics about GVRP PDUs received by the interface

Number of GVRP frames transmitted

Statistics about GVRP PDUs sent by the interface

Number of frames discarded

Statistics about GVRP PDUs discarded by the interface

display garp timer

Function

The display garp timer command displays the values of GARP timers.

Format

display garp timer [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays the GARP timers of the specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display garp timer command displays the values of GARP timers. When using this command, pay attention to the following points:
  • If interface interface-type interface-number is not specified, the system displays GARP timers of all the interfaces.
  • If interface interface-type interface-number is specified, the system displays GARP timers of the specified interface.

Example

# Display the values of the GARP timers.

<HUAWEI> display garp timer
  GARP timers on port 10GE1/0/1
    GARP JoinTime                : 80 centiseconds
    GARP LeaveTime               : 240 centiseconds
    GARP LeaveAllTime            : 1000 centiseconds
    GARP HoldTime                : 40 centiseconds 
Table 7-63  Description of the display garp timer command output

Item

Description

GARP JoinTime

Value of the Join timer, in centiseconds. You can run the garp timer command to set the Join timer.

GARP LeaveTime

Value of the Leave timer, in centiseconds. You can run the garp timer command to set the Leave timer.

GARP LeaveAllTime

Value of the LeaveAll timer, in centiseconds. You can run the garp timer leaveall command to set the LeaveAll timer.

GARP HoldTime

Value of the Hold timer, in centiseconds. You can run the garp timer command to set the Hold timer.

Related Topics

display gvrp state

Function

The display gvrp state command displays information about the GVRP state machine.

Format

display gvrp state interface interface-type interface-number vlan vlan-id

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays information about the GVRP state machine of the specified interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

vlan vlan-id

Displays information about the GVRP state machine of the specified VLAN.

The value is an integer that ranges from 2 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

GVRP provides applicant and registrar state machine.

  • The applicant state machine uses a counter. The counter starts from 0 and increases by 1 every time the applicant sends a Join message or receives a JoinIn message. The maximum value of the counter is 2. If the applicant receives a JoinEmpty, Empty, Leave, or LeaveAll message, the counter is reset to 0.

    The applicant state machine has three states:
    • V (very anxious): The value of the counter is 0, indicating that the applicant does not send a Join message or receive a JoinIn message, or receives a JoinEmpty, Leave, or LeaveAll message.
    • A (anxious): The value of the counter is 1, indicating that the applicant sends a Join message or receives a JoinIn message.
    • Q (quiet): The value of the counter is 2, indicating that the applicant sends two Join messages or receives a Join message, and does not need to send messages.
    GVRP-enabled interfaces have the following roles:
    • A (active member): refers to an entity that registers or deregisters an attribute or an entity that has not sent a Leave message yet.
    • P (passive member): refers to the entity that registers or deregisters an attribute after receiving a Join or Leave message.
    • O (observer): refers to an entity that traces the attribute status but does not declare attributes.
    In addition, when an active member must send a Leave message to deregister attributes, the active member enters the leaving state. Considering all these states, the applicant state machine has multiple state combinations.

    State Combination

    Very Anxious

    Anxious

    Quiet

    Leaving

    Active Member

    VA

    AA

    QA

    LA

    Passive Member

    VP

    AP

    QP

    -

    Observer

    VO

    AO

    QO

    LO

    When a passive member needs to cancel a declaration, it can switch to the observer state. Therefore, the leaving passive member state does not exist.
  • The registrar state machine has the following states depending on the registration mode.

    Registration Mode

    Attribute Is Registered

    Attribute Is Being Deregistered

    Attribute Is Deregistered

    Normal

    IN

    LV

    MT

    Fixed

    INR

    LVR

    MTR

    Forbidden

    INF

    LVF

    MTF

    The registrar state machine enters a different state based on the received message. The normal registration mode is used as an example to describe the state machine:
    • When receiving a Join message, the registrar switches to the IN state.

    • When receiving a Leave or LeaveAll message, the registrar switches from the IN state to the LV state and starts the Leave timer. If the registrar is not in IN state, it does not change its state after receiving a Leave or LeaveAll message.

    • If the registrar does not receive any Join message of the corresponding attribute before the Leave timer expires, the registrar enters the IN state.

Example

# Display information about the GVRP state machine.

<HUAWEI> display gvrp state interface 10ge 1/0/1 vlan 100
    GVRP state of VLAN 100 on port 10GE1/0/1
         Applicant state machine :    VP
         Registrar state machine :    MT
Table 7-64  Description of the display gvrp state command output

Item

Description

Applicant state machine

Status of the applicant state machine

Registrar state machine

Status of the registrar state machine

display gvrp statistics

Function

The display gvrp statistics command displays GVRP information on a specific or all interfaces.

Format

display gvrp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays GVRP information on a specific interface:
  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

If interface interface-type interface-number is not specified in the command, GVRP information on all interfaces is displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check GVRP information on a specific or all interfaces, run the display gvrp statistics command. The information includes GVRP status, number of GVRP registration failures, source MAC address of the last GVRP PDU, and GVRP registration mode on an interface.

Example

# Display GVRP information on all interfaces.

<HUAWEI> display gvrp statistics 
  GVRP statistics on port 10GE1/0/1
    GVRP status                     : Enabled
    GVRP registrations failed       : 0
    GVRP last PDU origin            : 0000-0000-0000
    GVRP registration type          : Normal        
Table 7-65  Description of the display gvrp statistics command output

Item

Description

GVRP status

GVRP status:
  • Enabled
  • Disabled

GVRP registrations failed

Number of GVRP registration failures.

GVRP last PDU origin

Source MAC address of the last GVRP PDU.

GVRP registration type

GVRP registration mode, which can be configured using the gvrp registration command. The following modes are available:
  • Fixed
  • Forbidden
  • Normal

display gvrp status

Function

The display gvrp status command displays whether global GVRP is enabled.

Format

display gvrp status

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The device with GVRP enabled can dynamically register VLANs or deregister VLANs from an interface. You can run the display gvrp status command to check whether GVRP is enabled.

Example

# Display the enabling status of global GVRP.

<HUAWEI> display gvrp status
GVRP status: enabled
Table 7-66  Description of the display gvrp status command output

Item

Description

GVRP status

The status of global GVRP.

Related Topics

display gvrp vlan-operation

Function

The display gvrp vlan-operation command displays the operation of adding a specified interface to dynamic VLANs.

Format

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

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays operations related to dynamic VLANs performed on the specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display gvrp vlan-operation command displays the dynamic VLANs to which an interface is added.

Example

# Display the operation of adding an interface to dynamic VLANs.

<HUAWEI> display gvrp vlan-operation interface 10ge 1/0/1  
    Dynamic VLAN operations on port 10GE1/0/1
         Operations of adding VLAN to TRUNK             : none 
Table 7-67  Description of the display gvrp vlan-operation command output

Item

Description

Operations of adding VLAN to TRUNK

Operation of adding a trunk interface to dynamic VLANs.

Related Topics

garp timer

Function

The garp timer command sets GARP timers.

The undo garp timer command restores the default values of GARP timers.

By default, the value of the Hold timer is 10 centiseconds, the value of the Join timer is 20 centiseconds, and the value of the Leave timer is 60 centiseconds.

Format

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

undo garp timer { hold | join | leave } [ timer-value ]

Parameters

Parameter

Description

Value

hold timer-value

Sets the value of the GARP Hold timer.

  • Lower limit: 10 centiseconds

  • Upper limit: less than or equal to half the value of the Join timer, changing with the value of the Join timer

  • The value can be exactly divided by 5, in centiseconds.

join timer-value

Sets the value of the GARP Join timer.

  • Lower limit: greater than or equal to two times the value of the Hold timer, changing with the value of the Hold timer

  • Upper limit: smaller than half the value of the Leave timer, changing with the value of the Leave timer

  • The value can be exactly divided by 5, in centiseconds.

leave timer-value

Sets the value of the GARP Leave timer.

  • Lower limit: greater than two times the value of the Join timer, changing with the value of the Join timer

  • Upper limit: smaller than the value of the LeaveAll timer, changing with the value of the LeaveAll timer

  • The value can be exactly divided by 5, in centiseconds.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command can set the following GARP timers:

  • Join timer: controls sending of Join messages including JoinIn messages and JoinEmpty messages.

  • Hold timer: controls sending of Join messages (JoinIn messages and JoinEmpty messages) and Leave messages (LeaveIn messages and LeaveEmpty messages).

  • Leave timer: controls attribute deregistration.

You can set the GARP timers to control sending of GARP protocol packets.

Prerequisite

The physical port has been added to the port group before running the garp timer command in the port group view.

Precautions

When using the garp timer command to set the GARP timers, pay attention to the following points:
  • The garp timer can be used only on trunk interfaces.

  • The undo garp timer command restores the default values of GARP timers. If the default value of a timer is out of the valid range, the undo garp timer command does not take effect.

  • The value range of each timer changes with the values of the other timers. If a value you set for a timer is not in the allowed range, you can change the value of the timer that determines the value range of this timer.

  • To restore the default values of all the GARP timers, restore the Hold timer to the default value, and then restore the Join timer, Leave timer, and LeaveAll timer to the default values in sequence.

NOTE:
In actual application, it is recommended that you use the following values of the GVRP timers:
  • GARP Hold timer: 100 centiseconds (1 second)

  • GARP Join timer: 600 centiseconds (6 seconds)

  • GARP Leave timer: 3000 centiseconds (30 seconds)

  • GARP LeaveAll timer: 12000 centiseconds (2 minutes)

When more than 100 dynamic VLANs are created, use the preceding recommended values. When the number of dynamic VLANs increases, lengths of the GARP timers need to be increased.

Example

# Set the LeaveALL timer of 10GE1/0/1 to 2000 centiseconds.

<HUAWEI> system-view
[~HUAWEI] garp timer leaveall 2000

# Set the Leave timer of 10GE 1/0/1 to 800 centiseconds.

<HUAWEI> system-view
[HUAWEI] interface 10ge 1/0/1
[HUAWEI-10GE1/0/1] port link-type trunk
[HUAWEI-10GE1/0/1] garp timer leave 800

# Set the Join timer of 10GE 1/0/1 to 300 centiseconds.

<HUAWEI> system-view
[HUAWEI] interface 10ge 1/0/1
[HUAWEI-10GE1/0/1] port link-type trunk
[HUAWEI-10GE1/0/1] garp timer join 300

# Set the Hold timer of 10GE 1/0/1 to 100 centiseconds.

<HUAWEI> system-view
[HUAWEI] interface 10ge 1/0/1
[HUAWEI-10GE1/0/1] port link-type trunk
[HUAWEI-10GE1/0/1] garp timer hold 100

garp timer leaveall

Function

The garp timer leaveall command sets the GARP LeaveAll timer.

The undo garp timer leaveall command restores the default value of the GARP LeaveAll timer.

The default value of the LeaveAll timer is 1000 centiseconds (10 seconds).

Format

garp timer leaveall timer-value

undo garp timer leaveall [ timer-value ]

Parameters

Parameter

Description

Value

timer-value

Specifies the value of the GARP LeaveAll timer.

The value is an integer that ranges from 65 to 32765 and that can be exactly divided by 5, in centiseconds. The value of the LeaveAll timer must be greater than the values of Leave timers on all the interfaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a GARP participant is enabled, the LeaveAll timer is started. When the LeaveAll timer expires, the GARP participant sends LeaveAll messages to request other GARP participants to re-register all its attributes. Then the LeaveAll timer restarts.

Devices on a network may have different settings for the LeaveAll timer. In this case, all the devices use the smallest LeaveAll timer value on the network. When the LeaveAll timer of a device expires, the device sends LeaveAll messages to other devices. After other devices receive the LeaveAll messages, they reset their LeaveAll timers. Therefore, only the LeaveAll timer with the smallest value takes effect even if devices have different settings for the LeaveAll timer.

Prerequisites

Before setting GARP timers on an interface, you must enable GVRP globally.

Precautions

The Leave timer length on an interface is restricted by the global LeaveAll timer length. When configuring the global LeaveAll timer, ensure that all the interfaces that have a GARP Leave timer configured are working properly.

Example

# Set the LeaveAll timer to 2000 centiseconds.

<HUAWEI> system-view
[~HUAWEI] garp timer leaveall 2000

gvrp

Function

The gvrp command enables GVRP globally or on an interface.

The undo gvrp command disables GVRP globally or on an interface.

By default, GVRP is disabled globally and on each interface.

Format

gvrp

undo gvrp

Parameters

None

Views

System view, GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device with GVRP enabled can dynamically register VLANs or deregister VLANs from an interface. To make GVRP take effect, run the gvrp command both in the system view and interface view.

Precautions

When configuring GVRP, pay attention to the following points:
  • If you run the gvrp command in the system view, GVRP is enabled globally. If you run this command in the interface view, GVRP is enabled on the interface.

  • Before enabling GVRP on an interface, you must enable GVRP globally.

  • Before enabling GVRP on an interface, you must set the link type of the interface to trunk.

Example

# Enable GVRP globally.

<HUAWEI> system-view
[~HUAWEI] gvrp

# Enable GVRP on 10GE 1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] gvrp

gvrp registration

Function

The gvrp registration command sets a GVRP registration mode for an interface.

The undo gvrp registration command restores the default GVRP registration mode.

By default, the GVRP registration mode of an interface is Normal.

Format

gvrp registration { fixed | forbidden | normal }

undo gvrp registration [ fixed | forbidden | normal ]

Parameters

Parameter

Description

Value

fixed

Sets the GVRP registration mode of an interface to Fixed.

-

forbidden

Sets the GVRP registration mode of an interface to Forbidden.

-

normal

Sets the GVRP registration mode of an interface to Normal.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The following three GVRP registration modes are available on GVRP interfaces:
  • Normal mode: allows a GVRP interface to register, deregister, and propagate dynamic and static VLANs.
  • Fixed mode: forbids a GVRP interface to register, deregister, or propagate dynamic VLANs, but allows it to register, deregister, and propagate static VLANs. If a trunk interface is set to work in fixed mode, even if packets of all VLANs are allowed to pass, only packets in manually created VLANs actually pass through the trunk interface.
  • Forbidden mode: forbids a GVRP interface to register, deregister, or propagate all VLANs except VLAN 1. If a trunk interface is set to work in forbidden mode, even if packets of all VLANs are allowed to pass, only packets in VLAN 1 actually pass through the trunk interface.

Pre-configuration Tasks

GVRP has been enabled globally, and the interface on which a GVRP registration mode is to be set has been configured as a trunk interface.

Example

# Set the GVRP registration mode of an interface to Fixed.

<HUAWEI> system-view
[~HUAWEI] gvrp
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] gvrp
[*HUAWEI-10GE1/0/1] gvrp registration fixed

reset garp statistics

Function

The reset garp statistics command clears GARP statistics of a specific or all interfaces.

Format

reset garp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Clears GARP statistics on a specific interface:
  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before re-collecting GARP statistics on a specific interface within a certain period, run the reset garp statistics command to clear the existing GARP statistics of the interface.

The cleared GARP statistics include the number of GVRP PDUs that the interface sends, receives, and discards.
  • If interface interface-type interface-number is not specified in the command, GARP statistics on all interfaces are cleared.
  • If interface interface-type interface-number is specified in the command, GARP statistics on a specific interface are cleared.

Precautions

After the reset garp statistics command is run, statistics about all GARP PDUs are cleared and cannot be restored. Exercise caution when running this command.

Example

# Clear GARP statistics on all interfaces.

<HUAWEI> reset garp statistics  
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 43883

Downloads: 330

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next