Supported VLANs
Normal-Range VLAN Configuration Guidelines, on page 2113
Monitoring VLANs
Monitoring VLANs
Assigning Static-Access Ports to a VLAN
You can assign a static-access port to a VLAN without having VTP globally propagate VLAN configuration
information by disabling VTP (VTP transparent mode).
If you assign an interface to a VLAN that does not exist, the new VLAN is created.
SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
switchport mode access
4.
switchport access vlan vlan-id
5.
end
6.
show running-config interface interface-id
7.
show interfaces interface-id switchport
DETAILED STEPS
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Enters the interface to be added to the VLAN.
interface interface-id
Example:
Switch(config)# interface gigabitethernet2/0/1
Step 2
Defines the VLAN membership mode for the port
(Layer 2 access port).
switchport mode access
Example:
Switch(config-if)# switchport mode access
Step 3
Assigns the port to a VLAN. Valid VLAN IDs are 1
to 4094.
switchport access vlan vlan-id
Example:
Switch(config-if)# switchport access vlan 2
Step 4
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2121
How to Configure VLANs