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
Purpose
Command or Action
Enters 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
Returns to privileged EXEC mode.
end
Example:
Switch(config-if)#
end
Step 5
Verifies the VLAN membership mode of the interface.
show running-config interface interface-id
Example:
Switch#
copy running-config startup-config
Step 6
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
18
OL-29322-01
Configuring VLANs
How to Configure Normal-Range VLANs