Srini
Use the given commands
switch(config)#vlan 10
switch(config-vlan)#name xyz
Now bind the port with the vlan.So enter in the interface mode
switch(config)#Interface fa0/xx
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 10
regards
shivlu