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,
•
For more information on VLAN routing in this guide, see the VLAN section in Chapter 17,
Routing on page
Creating a VLAN and Adding Ports
The following instructions are the basic configuration tasks for creating the VLAN and adding ports to it:
Step
Command Syntax
1
interface vlan
2
[
no
]
tagged
unit/slot/port
3
[
no
]
untagged
name
4
VLAN-name
show vlan id
5
vlanid
Note: Enable each port added to the VLAN.
262.
Command Mode
Global Config
2-4094
Interface VLAN
Interface VLAN
unit/slot/port
Interface VLAN
Privileged Exec
Creating VLANS on page
Usage
Specify a new or existing VLAN by VLAN number.
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
port.
Specify a non-sequential port range as
slot/port,...
Specify a LAG ID as an integer (List LAG IDs with
show interface port-channel brief.)
To add untagged ports to the VLAN, specify either a
port, port range, port channel, or port channel range, as
described above.
(OPTIONAL) Name the VLAN.
Verify the configuration.
41.
VLAN
unit/slot/port-unit/slot/
unit/slot/port,unit/
VLANs | 211