mac

Commands for Network Port Configuration
100
normally. After loopback has been enabled, the port will assume a connection
established to itself, and all traffic sent from the port will be received at the very same
port.
Example: Enabling loopback test in Ethernet ports 1/1-8.
Switch(config)#interface ethernet 1/1-8
Switch(Config-If-Port-Range)#loopback
3.1.7 mdi
Command: mdi {auto | across | normal}
no mdi
Function: Sets the cable types supported by the Ethernet port; the no command sets the
cable type to auto-identification. This command is not supported on combo ports and
fiber ports.
Parameters: auto indicates auto identification of cable types; across indicates
crossover cable support only; normal indicates straight-through cable support only.
Command mode: Port Mode.
Default: Port cable type is set to auto-identification by default.
Usage Guide: Auto-identification is recommended. Generally, straight-through cable is
used for switch-PC connection and crossover cable is used for switch-switch connection.
Example: Setting the cable type support of Ethernet ports 1/1-8 to straight-through cable
only.
Switch(config)#interface ethernet 1/1-8
Switch(Config-If-Port-Range)#mdi normal
3.1.8 media-type
Command: media-type {copper | copper-preferred-auto | fiber |
sfp-preferred-auto }
Function: Sets to combo port mode (combo ports only).
Parameters: copper forces use of copper cable port; copper-preferred-auto for
copper cable port first; fiber forces use of fiber cable port; sfp-preferred-auto for fiber
cable port first.
Command mode: Port Mode.
Default: The default setting for combo mode of combo ports is sfp-preferred-auto.
Usage Guide: The combo mode of combo ports and the port connection condition
determines the active port of the combo ports. A combo port consists of one fiber port
and a copper cable port. It should be noted that the speed-duplex command applies to
the copper cable port while the negotiation command applies to the fiber cable port, they
should not conflict. For combo ports, only one, a fiber cable port or a copper cable port,