2-210
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
media-type
media-type
Use the media-type interface configuration command to enable or disable fiber-optic or copper
connections on a Long-Reach Ethernet (LRE) switch. You can also manually set the port to select a small
form-factor pluggable (SFP) module connector or an RJ-45 connector. Use the no form of this command
to return to the default setting.
media-type {auto-select | rj45 | sfp}
no media-type {auto-select | rj45 | sfp}
This command is available only on Catalyst 2950 LRE switches.
Syntax Description
Defaults The default is SFP module preferred.
Command Modes Interface configuration
Command History
Usage Guidelines If an LRE switch detects an SFP connector in the switch, whether or not a fiber-optic connector is
connected to that connector, it attempts to establish a link by using the SFP module as the media type.
This preference of a fiber-optic connection over a copper connection is called SFP-module preferred. To
physically connect both fiber-optic and copper connections and to override the SFP-module-preferred
setting, use the auto-select keyword, or manually configure the port by using the rj45 or sfp keyword.
Examples This example shows how to force the connection to a copper RJ-45 connection:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# media-type rj45
You can verify your settings by using the show interfaces media or media interface-id privileged EXEC
command.
auto-select First media-type detected makes the link.
rj45 RJ-45 copper connection makes the link even when a link is already established with
fiber optic.
sfp SFP fiber-optic connection makes the link even when a link is already established
with copper.
Release Modification
12.1(11)YJ This command was introduced.