What is a vlan ?
Virtual Lan separate an exiting physical network into multiple logical network. Thus each vlan create separate Broadcast domain.
Configure a Vlan
ASSW#conf t
ASSW(config)#vlan 10
ASSW(config-vlan)#name DATA
Assigning Vlan on an Access port
We all are familiar configuring vlan on an access port using vlan-id. But From ios version 15.2(3)E2, Cisco IOS XE 16.2.1 and Cisco IOS XE 3.2SE Named VLAN is supported :– Option to specify a VLAN name for access and voice VLAN. On port Gi1/0/6 i am using traditional way of configuring using the Vlan-ID and on Port Gi1/0/11 i use the Vlan-Name. (configuration tried on a 9200 switch)
ASSW#conf t
ASSW(config)#int gigabitEthernet 1/0/6
ASSW(config-if)#switchport access vlan 10ASSW(config-if)#int gigabitEthernet 1/0/11
ASSW(config-if)#switchport access vlan name DATA
Even though we used the Vlan-Name while configuring port gi1/0/11, switch translated it to vlan-id corresponding to vlan-name.
interface GigabitEthernet1/0/6
description ACCESS-PORT
switchport access vlan 10interface GigabitEthernet1/0/11
description ACCESS-PORT
switchport access vlan 10