Quick Reference Guide

VLANs | 211
Configuration Task List for VLANs
Creating a VLAN and Adding Ports
Clearing/Resetting a VLAN on page 214
Adding a LAG to a VLAN on page 215
Creating a Routed VLAN on page 217
Enabling Dynamic VLANs with GVRP on page 220
Creating an IP Subnet-based VLAN on page 223
Configuring a Private Edge VLAN (PVLAN) on page 223
Configuring a Native VLAN on page 224
For more VLAN configuration examples:
In the Getting Started chapter, see introduction to VLAN configuration, Creating VLANS on page 41.
For more information on VLAN routing in this guide, see the VLAN section in Chapter 17, VLAN
Routing on page 262.
Creating a VLAN and Adding Ports
The following instructions are the basic configuration tasks for creating the VLAN and adding ports to it:
Note: Enable each port added to the VLAN.
Step Command Syntax Command Mode Usage
1
interface vlan 2-4094
Global Config Specify a new or existing VLAN by VLAN number.
2[no] tagged unit/slot/port
Interface VLAN To add tagged ports to the VLAN, specify a single port
in unit/slot/port format to add to the selected VLAN, or
specify a sequential port range as unit/slot/port-unit/slot/
port.
Specify a non-sequential port range as unit/slot/port,unit/
slot/port,...
Specify a LAG ID as an integer (List LAG IDs with
show interface port-channel brief.)
3[no] untagged unit/slot/port
Interface VLAN To add untagged ports to the VLAN, specify either a
port, port range, port channel, or port channel range, as
described above.
4
name VLAN-name Interface VLAN (OPTIONAL) Name the VLAN.
5
show vlan id vlanid Privileged Exec Verify the configuration.