COMMAND LINE INTERFACE

VLAN Configuration (vlan)

The VLAN configuration commands include the following items.

VLAN Commands

add vlan <name> vid <number> protocol <protocol id> ports <portlist> [taguntag]

Creates a VLAN group.

name – ASCII string from 1 to 15 characters. number – VLAN ID from 1-4094.

protocol id – Protocol number from 0-18. (See the following table.)

config vlan <name> [taguntag] <portlist>

Configures specified VLAN ports as tagged or untagged.

config vlan <name> addport <portlist> [taguntag] Adds port(s) to an existing VLAN as tagged or untagged.

config vlan <name> delport <portlist> Deletes port(s) from an existing VLAN.

config vlan <name> protocol <protocol id>

Limits an existing VLAN to the specified protocol.

protocol id – Protocol number from 0-18. (See the following table.)

config vlan pvid <1~4094> ports <portlist> Sets a default VLAN ID for the specified port(s).

delete vlan <name> Deletes the specified VLAN.

delete vlan vid <1~4094> Deletes the specified VLAN.

enable vlan gvrp

Configures the switch to use 802.1Q VLANs with GVRP.

disable vlan gvrp

Configures the switch to use 802.1Q VLANs without GVRP.

show vlantbl [<name>]

Displays configuration settings for all VLANs or for the specified VLAN.

show vlantblindex

Displays all configured VLANs, sorted by VLAN ID.

5-6

Page 128
Image 128
SMC Networks SMC6709L2 manual Vlan Configuration vlan, Vlan configuration commands include the following items