
2-20
Static Virtual LANs (VLANs)
Port-Based Virtual LANs (Static VLANs)
CLI: Configuring VLAN Parameters
In the factory default state, all ports on the switch belong to the (port-based)
default VLAN (DEFAULT_VLAN; VID = 1) and are in the same broadcast/
multicast domain. (The default VLAN is also the default primary VLAN—see
“The Primary VLAN” on page 2-6.) You can configure additional static VLANs
by adding new VLAN names, and then assigning one or more ports to each
VLAN. Note that each port can be assigned to multiple VLANs by using VLAN
tagging. (See “802.1Q VLAN Tagging” on page 2-29.)
VLAN Commands Used in this Section
Displaying the Switch’s VLAN Configuration. The next command lists
the VLANs currently running in the switch, with VID, VLAN name, and VLAN
status. Dynamic VLANs appear only if the switch is running with GVRP
enabled and one or more ports has dynamically joined an advertised VLAN.
(In the default configuration, GVRP is disabled. See chapter 3, “GVRP”.)
Syntax: show vlans
show vlans below
show vlans <vlan-id> page 2-22
show vlan ports page 2-23
max-vlans page 2-25
primary-vlan <vlan-id> page 2-25
[no] vlan <vlan-id> page 2-26
name <vlan-name> page 2-27
[no] tagged <port-list> page 2-27
[no] untagged <port-list> page 2-27
[no] forbid page 2-27
auto <port-list> page 2-27 (Available if GVRP enabled.)
static-vlan <vlan-id> page 2-26 (Available if GVRP enabled.)