Table of ContentsLibraryView in Frames

Commands for creating and configuring a VLAN

Creating and configuring a VLAN involves two commands: the vlan create command and the ifconfig command.

The vlan create command creates a VLAN interface, includes that interface in one or more VLAN groups as specified by the VLAN identifier, enables VLAN tagging, and enables (optionally) GVRP on that interface.

The ifconfig command enables you to configure the VLAN interface created by the vlan command.

By default, GVRP is disabled on VLAN interfaces created using the vlan create command; however, you can enable it with the -g flag available with the command.

If you enable GVRP on an interface that is configured down, the state of the interface and all associated VLAN interfaces is automatically configured up. This state change occurs so that the interface can start sending VLAN registration frames to register its VLAN membership with the switch.