Back to Posts

Cisco IOS VLAN and 802.1Q Trunk Configuration

Cisco IOS VLAN and 802.1Q Trunk Configuration

A step-by-step guide to configuring VLANs and trunk ports on Cisco switches using IEEE 802.1Q tagging.

Configuring VLANs and Trunk Links on Cisco Switches

VLANs allow administrators to segment networks logically while using the same physical infrastructure.

Create VLANs


Switch(config)# vlan 10
Switch(config-vlan)# name SALES

Switch(config)# vlan 20
Switch(config-vlan)# name ENGINEERING

Assign Access Ports


Switch(config)# interface GigabitEthernet0/2
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10

Configure Trunk Port


Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation dot1q

Verify VLAN Configuration


show vlan brief
show interfaces trunk
Back to Posts