In: Computer Science
Answer:
switch#configure terminal
switch(config)#vlan 10 (creating vlan 10)
switch(config-vlan)#exit
switch(config)# int fastEthernet 0/1 (going to the port FA0/1)
switch(config-if)#switchport access vlan 10
This is the process to assign Port Fa0/1 to VLAN with ID 10.
Here in the above image you can see the configuration i did using the following commands
Here in the above image you can see that the FA0/1 is in the valn10