Configuring a switchport interface

Follow this procedure to configure a switchport interface in the device to send and receive data packets.

Procedure

  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