DETAILED STEPS
PurposeCommand or Action
Entersthe global configurationmode.configureterminal
Example:
Switch# configure terminal
Step 1
Entersthe interface to be added to the VLAN.
interfaceinterface-id
Example:
Switch(config)# interface gigabitethernet2/0/1
Step 2
Definesthe VLAN membership mode for the port (Layer
2access port).
switchportmode access
Example:
Switch(config-if)# switchport mode access
Step 3
Assignsthe port to a VLAN. Valid VLAN IDs are 1 to
4094.
switchportaccess vlan vlan-id
Example:
Switch(config-if)# switchport access vlan 2
Step 4
Toreturn an interface to its default configuration,
usethe default interfaceinterface-id interface
configurationcommand.
Note
Returnsto privileged EXEC mode.end
Example:
Switch(config)# end
Step 5
Verifiesthe VLAN membership mode of the interface.
showrunning-config interface interface-id
Example:
Switch# copy running-config startup-config
Step 6
Verifiesyour entries in the Administrative Mode and the
AccessMode VLAN fieldsof the display.
showinterfaces interface-id switchport
Example:
Switch# show interfaces gigabitethernet2/0/1
Step 7
Related Topics
Example:Configuring a Portas AccessPort, on page57
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