<HUAWEI> display interface brief PHY: Physical //表示接口的物理状态 *down: administratively down ^down: standby ~down: LDT down #down: LBDT down (l): loopback (s): spoofing (E): E-Trunk down (b): BFD down (e): ETHOAM down (dl): DLDP down (d): Dampening Suppressed (ld): LDT block (lb): LBDT block (lp): Loop-detect block (ms): MACsec down (o): Observe-port forwarding down InUti/OutUti: input utility/output utility Interface PHY Protocol InUti OutUti inErrors outErrors Ethernet0/0/0 up up 0.01% 0.01% 0 0 GigabitEthernet1/0/0 down down 0% 0% 0 0 GigabitEthernet1/0/1 down down 0% 0% 0 0 GigabitEthernet1/0/2 down down 0% 0% 0 0 GigabitEthernet1/0/3 down down 0% 0% 0 0 GigabitEthernet1/0/4 down down 0% 0% 0 0 GigabitEthernet1/0/5 down down 0% 0% 0 0 GigabitEthernet1/0/6 up up 0% 0% 0 0 GigabitEthernet1/0/7 up up 0% 0% 0 0 GigabitEthernet1/0/8 up up 0% 0% 0 0 GigabitEthernet1/0/9 up up 0% 0% 0 0 GigabitEthernet1/0/10 down down 0% 0% 0 0 ……
<HUAWEI> display interface gigabitethernet 0/0/12 GigabitEthernet0/0/12 current state : Administratively DOWN Line protocol current state : DOWN Description: Switch Port, Link-type : access(negotiated), PVID :1, TPID : 8100(Hex), The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000b-0974-a475 Last physical up time: 2013-08-10 21:09:51 Last physical down time : 2013-08-10 21:10:51 Current system time: 2013-08-10 21:15:06 Port Mode: COMMON FIBER Speed : 1000,Loopback: NONE Duplex: FULL,Negotiation: ENABLE Mdi: -,Flow-control: DISABLE Last 300 seconds input rate 96 bits/sec, 0 packets/sec Last 300 seconds output rate 96 bits/sec, 0 packets/sec Input peak rate 15184 bits/sec, Record time: 2013-08-10 17:45:05 Output peak rate 15184 bits/sec, Record time: 2013-08-10 17:45:05
上述示例中,接口GE0/0/12的当前物理状态为Administratively DOWN ,表示该接口下执行了命令shutdown。如果希望将该接口UP,则需要在对应接口视图下执行undo shutdown命令。
说明: 对于二层物理接口(设备的以太网接口默认工作在二层模式),只要物理状态current state为UP,协议状态Line protocol current state一定是UP的。例如,二层物理接口连线正确,并且接口属性配置正常后,物理状态current state和协议状态Line protocol current state均是UP的。 对于三层物理接口(接口下执行了命令undo portswitch将接口从二层模式切换到三层模式),只有物理状态current state为UP,并且协议协商也成功后,协议状态Line protocol current state才会UP。例如,三层物理接口连线正确,并且接口属性配置正常后,如果没有配置IP地址,则物理状态current state为UP,但协议状态Line protocol current state仍处于DOWN状态。
Apr 15 2014 03:46:10-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[47]:Interface GigabitEthernet1/0/1 has turned into DOWN state. Apr 15 2014 03:45:31-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[49]:Interface GigabitEthernet3/0/0 has turned into DOWN state.
<HUAWEI> display interface gigabitethernet 0/0/12 GigabitEthernet0/0/12 current state : DOWN//接口当前物理状态 Line protocol current state : DOWN Description: Switch Port, Link-type : access(negotiated), PVID :1, TPID : 8100(Hex), The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000b-0974-a475 Last physical up time: 2013-08-10 21:09:51 Last physical down time : 2013-08-10 21:10:51 Current system time: 2013-08-10 21:15:06 Port Mode: COMMON FIBER //接口工作模式。COMMON COPPER表示此接口为电接口; COMMON FIBER表示此接口为光接口 Speed : 1000,Loopback: NONE //接口速率、环回状态,链路两端需要保持一致 Duplex: FULL,Negotiation: ENABLE //接口双工模式及自协商状态,链路两端需要保持一致
<HUAWEI> display interface brief … … Interface PHY Protocol InUti OutUti inErrors outErrors GigabitEthernet0/0/1 down down 0% 0% 0 0 GigabitEthernet0/0/2 down down 0% 0% 0 0 GigabitEthernet0/0/3 down down 0% 0% 0 0 GigabitEthernet0/0/4 down down 0% 0% 0 0 GigabitEthernet0/0/5 down down 0% 0% 0 0 GigabitEthernet0/0/6 down down 0% 0% 0 0
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] loopback internal [HUAWEI-GigabitEthernet0/0/1] display this interface GigabitEthernet0/0/1 current state : UP Line protocol current state : UP … …
Apr 15 2013 03:46:14-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[46]:Interface GigabitEthernet1/0/1 has turned into UP state. Apr 15 2013 03:46:10-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[47]:Interface GigabitEthernet1/0/1 has turned into DOWN state. Apr 15 2013 03:45:35-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[48]:Interface GigabitEthernet1/0/1 has turned into UP state. Apr 15 2013 03:45:31-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[49]:Interface GigabitEthernet1/0/1 has turned into DOWN state. Apr 15 2013 03:42:10-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[50]:Interface GigabitEthernet1/0/1 has turned into UP state.
[HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] virtual-cable-test Warning: The command will stop service for a while, Continue?[Y/N] y Info: This operation may take a few seconds. Please waitfor a moment..........done. Pair A length: 1meter(s) Pair B length: 1meter(s) Pair C length: 1meter(s) Pair D length: 1meter(s) Pair A state: Ok Pair B state: Ok Pair C state: Ok Pair D state: Ok
<HUAWEI> display transceiver interface GigabitEthernet 2/0/3 verbose … … Diagnostic information: Temperature (°C) :39 Voltage(V):3.32 Bias Current(mA):6.91 //电流值 Bias High Threshold(mA):33.34 Bias LowThreshold(mA):1.67 Current Rx Power(dBM):-4.59 //接口收光功率 Default Rx Power High Threshold(dBM):0.00 Default Rx Power LowThreshold(dBM):-16.99 Current Tx Power(dBM):-5.10 //接口发光功率 Default Tx Power High Threshold(dBM):0.00 Default Tx Power LowThreshold(dBM):-12.50 User Set Rx Power High Threshold(dBM) :0.00 User Set Rx Power Low Threshold(dBM):-16.99 User Set Tx Power High Threshold(dBM) :0.00 User Set Tx Power Low Threshold(dBM):-12.50
表1-2 光模块状态属性的正常数值范围
光模块状态属性
正常数值范围
电流Bias Current(mA)
数值在门限范围内,即取值范围在Bias LowThreshold(mA)和Bias High Threshold(mA)之间
收光功率 Current Rx Power(dBM)
数值在默认门限范围内,即取值范围在回显字段Default Rx Power LowThreshold(dBM)和Default Rx Power LowThreshold(dBM)数值之间
发光功率 Current Tx Power(dBM)
数值在默认门限范围内,即取值范围在回显字段Default Tx Power LowThreshold(dBM)和Default Tx Power LowThreshold(dBM)数值之间
<HUAWEI> display device S9303‘s Device status: //设备型号,下方回显信息中Type列表示单板名称 Slot Sub Type Online Power Register Status Role ------------------------------------------------------------ 1 - LE0MX4UXA Present PowerOn Registered Normal NA
2 - LE0MF48TA Present PowerOn Registered Normal NA 3 - LE0MG24SA Present PowerOn Registered Normal NA 4 - LE0DMCUA Present PowerOn Registered Normal Master PWR1 - - Present PowerOn Registered Abnormal NA FAN1 - - Present PowerOn Registered Normal NA
5、判断接口是否为Combo接口。如果是Combo接口,检查接口使用方法是否正确,即接口当前工作模式是否和您当前接口连线是否一致。如下图所示,Combo接口GE1/0/1在设备面板上对应两个接口:Combo光口和Combo电口。Combo光口和Combo电口不能同时工作。当用户需要对Combo光口或Combo电口进行属性配置时,都只需要进入同一接口视图GE1/0/1进行配置。 任意视图下执行命令display interface,查看接口是否为Combo接口(回显中Port Mode字段),以及当前工作模式是否正常(回显中Current Work Mode字段)。
<HUAWEI> display interface gigabitethernet 1/0/1 GigabitEthernet1/0/1 current state : DOWN Line protocol current state : DOWN Description:HUAWEI, Quidway Series, GigabitEthernet1/0/1 Interface …… Port Mode: COMBO AUTO //Combo口工作模式一般有三种 COMBO AUTO:自动选择接口模式; FORCE FIBER:强制选择光口模式; FORCE COPPER:强制选择电口模式。 Current Work Mode: COPPER //当Port Mode显示为COMBO AUTO时, 此处表示当前实际自动选择到的工作模式, COPPER:电口模式;FIBER:光口模式 Speed : 100, Loopback: NONE