garp timer

Function

The garp timer command sets values for GARP timers on an interface.

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

By default, the values of the Hold timer, Join timer, and Leave timer are 10 centiseconds, 20 centiseconds, and 60 centiseconds, respectively.

Format

garp timer hold timer-value

garp timer join timer-value

garp timer leave timer-value

undo garp timer hold [ timer-value ]

undo garp timer join [ timer-value ]

undo garp timer leave [ timer-value ]

Parameters

Parameter Description Value
join timer-value

Sets a value for a GARP Join timer.

  • Lower limit: greater than or equal to twice the Hold timer value. The lower limit can be changed by changing the value of the Hold timer.
  • Upper limit: less than half the Leave timer value. The upper limit can be changed by changing the value of the Leave timer.
  • The value must be an integral multiple of 5 centiseconds.
leave timer-value

Sets a value for a GARP Leave timer.

  • Lower limit: greater than twice the Join timer value. The lower limit can be changed by changing the value of the Join timer.
  • Upper limit: less than the LeaveAll timer value. The upper limit can be changed by changing the value of the LeaveAll timer.
  • The value must be an integral multiple of 5 centiseconds.
hold timer-value

Sets a value for a GARP Hold timer.

  • Lower limit: 10 centiseconds
  • Upper limit: less than or equal to half the Join timer value. The upper limit can be changed by changing the value of the Join timer.
  • The value must be an integral multiple of 5 centiseconds.

Views

Interface group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gvrp write

Usage Guidelines

Usage Scenario

GARP defines three interface timers:

  • Join timer: controls the sending of Join messages, including JoinIn and JoinEmpty messages.
  • Hold timer: controls the sending of Join messages (JoinIn and JoinEmpty messages) and Leave messages (LeaveIn and LeaveEmpty messages).
  • Leave timer: controls attribute deregistration.

    To control the time when GARP sends messages, run the garp timer command to set values for GARP interface timers.

Prerequisites

Before running the garp timer command in a interface group view, the interface group must contain physical interfaces.

GVRP has been enabled globally and on each interface.

Precautions

When you run the garp timer command to set GARP timers for an interface, note the following:

  • The garp timer command can be run only on trunk interfaces.
  • The undo garp timer command restores the default values of GARP timers on an interface. 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 want to set for a timer is beyond the allowed range, you can change the value of another timer that relates to the value range of this timer.
  • To restore the default values of all the GARP timers, restore the Hold timer, Join timer, Leave timer, and LeaveAll timer to default values in sequence.
  • When many dynamic VLANs need to be registered or the network radius is large, using the default values of GARP timers may cause VLAN flapping and high CPU usage. To prevent such problems, increase timer values.

Example

# Set GE 0/1/17's Join timer to 300 centiseconds.
<HUAWEI> system-view
[~HUAWEI] gvrp
[*HUAWEI] interface GigabitEthernet0/1/17
[*HUAWEI-GigabitEthernet0/1/17] portswitch
[*HUAWEI-GigabitEthernet0/1/17] port link-type trunk
[*HUAWEI-GigabitEthernet0/1/17] gvrp
[*HUAWEI-GigabitEthernet0/1/17] garp timer join 300
# Set GE 0/1/17's Hold timer to 100 centiseconds.
<HUAWEI> system-view
[~HUAWEI] gvrp
[*HUAWEI] interface GigabitEthernet0/1/17
[*HUAWEI-GigabitEthernet0/1/17] portswitch
[*HUAWEI-GigabitEthernet0/1/17] port link-type trunk
[*HUAWEI-GigabitEthernet0/1/17] gvrp
[*HUAWEI-GigabitEthernet0/1/17] garp timer hold 100
# Set GE 0/1/17's Leave timer to 800 centiseconds.
<HUAWEI> system-view
[~HUAWEI] gvrp
[*HUAWEI] interface GigabitEthernet0/1/17
[*HUAWEI-GigabitEthernet0/1/17] portswitch
[*HUAWEI-GigabitEthernet0/1/17] port link-type trunk
[*HUAWEI-GigabitEthernet0/1/17] gvrp
[*HUAWEI-GigabitEthernet0/1/17] garp timer leave 800
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >