Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vl
Switch(config)#vlan 10
Switch(config-vlan)#name VOICE
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name
Switch(config-vlan)#name DATA
Switch(config-vlan)#end
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vl
Switch(config)#vlan 10
Switch(config-vlan)#name VOICE
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name
Switch(config-vlan)#name DATA
Switch(config-vlan)#end
Switch#
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#spanning-tree portfast
Switch(config-if)#switchport access vlan 20
Switch(config-if)#switchport voice vlan 10
Switch(config-if)#end
Switch#show vlan brief