Hello,
The correct style of configuration is as follows:
Switch(config)# vlan 10
Switch(config-vlan)# name MyVLAN ! Enter a symbolic name for your VLAN here
Switch(config-vlan)# exit
Switch(config)# interface range fa0/1 - 5
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# exit
Switch(config)#
I am afraid that I do not know the command "switchport interface fa0/1 - 5" you have indicated - does it exist at all?
Best regards,
Peter