GSWB

CHAPTER 8 CLI Operations

(2) Options

z<vlan-list>

Specifies the VLAN ID of the VLAN that transmits/receives traffic in the VLAN tag format on an interface.

The format of <vlan-list> is {{add remove} <vlan-atom>}

-all: Specifies all VLANs (default).

-add: Adds the VLAN specified in <vlan-atom>.

-remove: Deletes VLAN specified in <vlan-atom>.

-<vlan-atom>:

Specifies, using a hyphen, the VLAN IDs of a range of consecutive VLANs. No space before or after the hyphen is allowed.

Any leading 0 is not permitted.

 

Example:

 

Single VLAN

101

List of non-consecutive VLANs

10,12,14,16,18

Consecutive VLAN range

10-15

List of consecutive VLAN ranges

10-15,20-24

List of non-consecutive VLANs and a consecutive VLAN range8,11,20-24,44

(3)Command mode

Interface

(4)See also

vlan

switchport mode

switchport native vlan

8-74

C122-E003-02EN