The port media type command determines whether an interface configuration item belongs to the optical or electrical interface.
The undo port media type command restores the default settings.
Parameter |
Description |
Value |
---|---|---|
copper |
Determines the interface configuration item belongs to an XGE interface that is equipped with a copper module and works as an electrical interface. |
- |
fiber |
Determines the interface configuration item belongs to an XGE interface that is equipped with a copper module and works as an optical interface. |
- |
This command cannot be manually configured and belongs to internal implementation commands. This command only distinguishes optical interface configuration and electrical interface configuration, and is not configurable.
If you have installed a copper module on an XGE interface and specified the interface attributes (such as auto-negotiation, speed, and full-duplex mode), the system automatically generates this command to determine whether an interface configuration item belongs to the optical or electrical interface.
For example, after you run the display this command on an XGE interface, the interface configuration is as follows:
#
interface XGigabitEthernet0/0/1
port media type copper
mdi across
port media type fiber
als enable
#
The command output indicates that there is one configuration item mdi across when the XGE interface works as an electrical interface and one configuration item als enable when the XGE interface works as an optical interface.