< Home

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, Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view, 25GE 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.

  • GVRP and Port security conflict on an interface; therefore, the port-security enable and gvrp commands cannot be used on the same interface.
  • When GVRP is enabled globally, manually change values of timers based on the network scale.
    Table 1 Relationship between GARP timer values and number of dynamic VLANs that need to be registered

    Timer

    Number of Dynamic VLANs to Be Registered (N)

    N <= 500

    500 < N <= 1000

    1000 < N <= 1500

    N > 1500

    GARP Hold timer

    100 centiseconds (1 second)

    200 centiseconds (2 seconds)

    800 centiseconds (8 seconds)

    1000 centiseconds (10 seconds)

    GARP Join timer

    600 centiseconds (6 seconds)

    1200 centiseconds (12 seconds)

    4000 centiseconds (40 seconds)

    6000 centiseconds (1 minute)

    GARP Leave timer

    3000 centiseconds (30 seconds)

    6000 centiseconds (1 minute)

    20000 centiseconds (3 minutes and 20 seconds)

    30000 centiseconds (5 minutes)

    GARP LeaveAll timer

    12000 centiseconds (2 minutes)

    24000 centiseconds (4 minutes)

    30000 centiseconds (5 minutes)

    32765 centiseconds (5 minutes and 27.65 seconds)

Example

# Enable GVRP globally.

<HUAWEI> system-view
[HUAWEI] gvrp

# Enable GVRP on GigabitEthernet 0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] gvrp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >