< Home

port media type (XGE interface view)

Function

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.

Format

port media type { copper | fiber }

undo port media type { copper | fiber }

Parameters

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.

-

Views

XGE interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

None

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >