Configuring a switchport interface

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface ethernet command to configure the interface mode.
    device(config)# interface ethernet 0/1
    
  3. Enter the switchport command to configure a switchport interface.
    device(conf-if-eth-0/1)# switchport