Normal-Range VLAN Configuration Guidelines, on page 2113
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
Purpose
Command 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
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......