Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
You can only assign 1 vlan per ACCESS port, if more are needed it needs to be a trunk port
interface fastethernet0/1switchport mode trunkswitchport trunk allowed vlan 1,10,20interface fastethernet0/18switchport mode accessswitchport access vlan 20