Procedure 1 - Set Up Basic Switchport Configurations

Before configuring any of the authentication settings on the switchport, you must make sure that the switchport is configured as a Layer 2 port, not a Layer 3 port. This command is a simple, one-word command that we will run, and from that point on, the other commands we run will all take effect.

Step 1
Enter interface configuration mode for the switchport range:

  • C3750X(config)#interface range first_interface - last_interface
Step 2
Ensure that the ports are Layer 2 switchports.

  • C3750X(config-if-range)#switchport
Step 3
Configure the port for Layer 2 edge, using the host macro.

The host macro will automatically run three commands for you. It will configure the port to be an access port (nontrunk), disable channel groups, and configure spanning tree to be in portfast mode.

  • C3750X(config-if-range)#switchport host
! - Switch Output:

  • switchport mode will be set to access
  • spanning-tree portfast will be enabled
  • channel group will be disabled