Follow this procedure to configure a switchport interface in the device to send and receive data packets.
Procedure
-
Enter the
configure terminal command to access global configuration mode.
device# configure terminal
-
Enter the
interface ethernet
command to configure the interface mode.
device(config)# interface ethernet 0/1
-
Enter the
switchport
command to configure a switchport interface.
device(conf-if-eth-0/1)# switchport