What command sequence would you use to assign switch interface f0/1/0 to VLAN 50? (

1 answer

To assign switch interface f0/1/0 to VLAN 50 on a Cisco switch, you would use the following command sequence in the Command Line Interface (CLI):

  1. Enter privileged EXEC mode:

    enable
    
  2. Enter global configuration mode:

    configure terminal
    
  3. Access the specific interface you want to configure:

    interface f0/1/0
    
  4. Assign the interface to VLAN 50:

    switchport access vlan 50
    
  5. (Optional) If the interface is currently configured as a trunk port (and you want it to be an access port), you may need to set it as an access port:

    switchport mode access
    
  6. Exit the interface configuration mode:

    exit
    
  7. (Optional) Exit global configuration mode:

    exit
    
  8. Finally, save the configuration (optional, but recommended):

    write memory
    

    or

    copy running-config startup-config
    

So the full command sequence would look like this:

enable
configure terminal
interface f0/1/0
switchport mode access
switchport access vlan 50
exit
exit
write memory

This sequence effectively configures the interface f0/1/0 as an access port and assigns it to VLAN 50.