< Home

port media type (25GE interface view)

Function

The port media type command determines whether an interface configuration item belongs to an 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 a 25GE interface that is equipped with a GE copper module and works as an electrical interface.

-

fiber

Determines the interface configuration item belongs to a 25GE interface that is equipped with a GE copper module and works as an optical interface.

-

Views

25GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command only distinguishes optical interface configuration and electrical interface configuration, and is not configurable.

If you have run the port mode ge command to configure a 25GE interface to work at the rate of 1 Gbit/s, installed a GE copper module on the 25GE interface, and specified the interface attributes (such as auto-negotiation and MDI type) for the 25GE interface, 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 a 25GE interface, the interface configuration is as follows:

#  
interface 25GigabitEthernet0/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 25GE interface works as an electrical interface and one configuration item als enable when the 25GE interface works as an optical interface.

Example

None

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