user manual

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
To return an interface to its default configuration,
use the default interface interface-id interface
configuration command.
Note
Returns to privileged EXEC mode.end
Example:
Switch(config)# 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
Verifies your entries in the Administrative Mode and the
Access Mode VLAN fields of the display.
show interfaces interface-id switchport
Example:
Switch# show interfaces gigabitethernet2/0/1
Step 7
Related Topics
Example: Configuring a Port as Access Port, on page 57
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 51
Configuring VLANs
How to Configure Normal-Range VLANs