Static Virtual LANs (VLANs)

Port-Based Virtual LANs (Static VLANs)

VLAN Commands Used in this Section

show vlans

below

show vlan <vlan-id>

page 2-23

max-vlans

page 2-26

primary-vlan <vlan-id>

page 2-26

[no] vlan <vlan-id>

page 2-26

name <vlan-name>

page 2-28

[no] tagged <port-list>

page 2-28

[no] untagged <port-list>

page 2-28

[no] forbid

page 2-28

auto <port-list>

page 2-28(Available if GVRP enabled.)

static-vlan <vlan-id>

page 2-27(Available if GVRP enabled.)

 

 

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 vlan

When GVRP is disabled (the default), Dynamic VLANs do not exist on the switch and do not appear in this listing. (See chapter 3, “GVRP”.)

Figure 2-17. Example of “Show VLAN” Listing (GVRP Enabled)

2-22