beautypg.com

Disabling vlan learning, Changing the gvrp timers, Disabling vlan learning changing the gvrp timers – Brocade FastIron Ethernet Switch Platform and Layer 2 Switching Configuration Guide User Manual

Page 222

background image

Disabling VLAN learning

To disable VLAN learning on a port enabled for GVRP, enter a command such as the following at the
GVRP configuration level.

device(config-gvrp)#block-learning ethernet 6/24

This command disables learning of VLAN information on port 6/24.

NOTE
The port still advertises VLAN information unless you also disable VLAN advertising.

Syntax: [no] block-learning all | ethernet port [ethernet port | to port]

The all keyword disables VLAN learning on all ports enabled for GVRP.

To specify a list of ports, enter each port as ethernet port followed by a space. For example, ethernet
1/24 ethernet 6/24 ethernet 8/17

To specify a range of ports, enter the first port in the range as ethernet port followed by the last port in
the range. For example, ethernet 1/1 to 1/8 .

You can combine lists and ranges in the same command. For example: enable ethernet 1/1 to 1/8
ethernet 1/24 ethernet 6/24 ethernet 8/17.

Changing the GVRP timers

GVRP uses the following timers:

• Join - The maximum number of milliseconds (ms) a device GVRP interfaces wait before sending

VLAN advertisements on the interfaces. The actual interval between Join messages is randomly
calculated to a value between 0 and the maximum number of milliseconds specified for Join
messages. You can set the Join timer to a value from 200 - one third the value of the Leave timer.
The default is 200 ms.

• Leave - The number of ms a GVRP interface waits after receiving a Leave message on the port to

remove the port from the VLAN indicated in the Leave message. If the port receives a Join
message before the Leave timer expires, GVRP keeps the port in the VLAN. Otherwise, the port is
removed from the VLAN. When a port receives a Leave message, the port GVRP state is changed
to Leaving. Once the Leave timer expires, the port GVRP state changes to Empty. You can set the
Leave timer to a value from three times the Join timer - one fifth the value of the Leaveall timer. The
default is 600 ms.

NOTE
When all ports in a dynamically created VLAN (one learned through GVRP) leave the VLAN, the
VLAN is immediately deleted from the device's VLAN database. However, this empty VLAN is still
maintained in the GVRP database for an amount of time equal to the following. (number-of-GVRP-
enabled-up-ports) * (2 * join-timer)While the empty VLAN is in the GVRP database, the VLAN does
not appear in the show vlans display but does still appear in the show gvrp vlan all display.

• Leaveall - The minimum interval at which GVRP sends Leaveall messages on all GVRP interfaces.

Leaveall messages ensure that the GVRP VLAN membership information is current by aging out
stale VLAN information and adding information for new VLAN memberships, if the information is
missing. A Leaveall message instructs the port to change the GVRP state for all its VLANs to
Leaving, and remove them unless a Join message is received before the Leave timer expires. By
default, you can set the Leaveall timer to a value from five times the Leave timer - maximum value
allowed by software (configurable from 300000 - 1000000 ms). The default is 10000.

Disabling VLAN learning

222

FastIron Ethernet Switch Platform and Layer 2 Switching Configuration Guide

53-1003086-04