12-12
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Chapter 12 Configuring Interface Characteristics
Using the Switch USB Ports (Catalyst 2960-S Switches Only)
In the sample output, switch 1 has a connected USB console cable. Because the bootloader did not
change to the USB console, the first log from switch 1 shows the RJ-45 console. A short time later, the
console changes and the USB console log appears. Switch 2 and switch 3 have connecte d RJ-45 console
cables.
switch-stack-1
*Mar 1 00:01:00.171: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
*Mar 1 00:01:00.431: %USB_CONSOLE-6-MEDIA_USB: Console media-type is USB.
switch-stack-2
*Mar 1 00:01:09.835: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
switch-stack-3)
*Mar 1 00:01:10.523: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
When the USB cable is removed or the PC de-activates the USB connection, the hardware automatically
changes to the RJ-45 console interface:
switch-stack-1
Mar 1 00:20:48.635: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
You can configure the console type to always be RJ-45, and you can configure an inactivity timeout for
the USB connector.
Configuring the Console Media Type
Beginning in privileged EXEC mode, follow these steps to select the RJ-45 console medi a type. If you
configure the RJ-45 console, USB console operation is disabled, and input always remains with the
RJ-45 console.
This configuration applies to all switches in a stack.
This example disables the USB console media type and enable s the RJ-45 console media type.
Switch# configure terminal
Switch(config)# line console 0
Switch(config-line)# media-type rj45
This configuration terminates any active USB console media type in the stack. A log shows that this
termination has occurred. This example shows that the console on switch 1 reverted to RJ-45.
*Mar 1 00:25:36.860: %USB_CONSOLE-6-CONFIG_DISABLE: Console media-type USB disabled by
system configuration, media-type reverted to RJ45.
At this point no switches in the stack allow a USB console to have input. A log entry shows when a
console cable is attached. If a USB console cable is connected to switch 2, i t is prevented from providing
input.
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 line console 0 Configure the console. Enter line configuration mode.
Step 3 media-type rj45 Configure the console media type to always be RJ-45. If you do not
enter this command and both types are connected, the default is USB.
Step 4 end Return to privileged EXEC mode.
Step 5 show running-configuration Verify your settings.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.