Disable Auto-sense on Port(s)

About this task

Perform this procedure to disable Auto-sense on a specific port. You also have the option to disable Auto-sense on the port but retain the configuration that the system applied dynamically.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Disable Auto-sense on the port:

    no auto-sense enable [convert-to-config]

Example

Disable Auto-sense on port 1/2 but retain the configuration. The dynamic configuration becomes a manual configuration and is visible in the show running-config output and can be saved to the configuration file using the save config command.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch:1(config)#interface interface gigabitEthernet 1/2
Switch:1(config-if)#no auto-sense enable convert-to-config
Switch:1(config-if)#save config

Variable Definitions

The following table defines parameters for the no auto-sense enable command.

Variable

Value

convert-to-config

Retains the Auto-sense configuration that the system applies dynamically on the specific port. The dynamic configuration becomes a manual configuration and is visible in the show running-config output. If you run the "no auto-sense enable" command without the "convert-to-config" option, then the configuration will be removed from the port and the port returns to the default state where VLAN 1 is assigned.