后台回复“网络工程师”获取计算机网络资料
1 故障现象
作为网络工程师,经常遇到网络设备端口down的问题,今天就带大家一起梳理下接口down的原因以及常见的处理思路。
2 常见故障原因
3 故障处理方式
出现接口不Up现象时,可以参考以下步骤进行定位(请保存操作记录):
步骤1: 查看接口是否被Error-Down;
<HUAWEI> display interface 10ge 1/0/1
10GE1/0/1 current state : ERROR DOWN(link-flap) (ifindex: 5)
Line protocol current state : DOWN
……
步骤2 :查看光模块信息是否有问题;
<HUAWEI> display interface 10ge 1/0/3 transceiver verbose
10GE1/0/3 transceiver information:
-------------------------------------------------------------------
Common information:
Transceiver Type :10GBASE_SR
Connector Type :LC
Wavelength (nm) :850
Transfer Distance (m) :30(62.5um/125um OM1)
80(50um/125um OM2)
300(50um/125um OM3)
400(50um/125um OM4)
……
-------------------------------------------------------------------
Alarm information:
LOS Alarm
-------------------------------------------------------------------
Diagnostic information:
Temperature (Celsius) :34.68
Voltage (V) :3.36
Bias Current (mA) :7.03
Bias High Threshold (mA) :10.00
Bias Low Threshold (mA) :2.60
Current RX Power (dBm) :-50.00
Default RX Power High Threshold (dBm) :1.50
Default RX Power Low Threshold (dBm) :-14.00
Current TX Power (dBm) :-2.22
Default TX Power High Threshold (dBm) :-1.00
Default TX Power Low Threshold (dBm) :-8.00
-------------------------------------------------------------------
根据上述回显,分别检查以下几项内容:
步骤3 :查看链路两端接口的配置是否一致。
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] display this
#
interface 10GE1/0/1
device transceiver 1000BASE-X
negotiation disable
#
Return
[~HUAWEI-10GE1/0/1] display this interface
10GE1/0/1 current state : DOWN (ifindex: 3109)
Line protocol current state : DOWN
Description:
Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 9216
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0019-7459-3301
Port Mode: COMMON COPPER, Port Split/Aggregate: DISABLE
Speed: AUTO, Loopback: NONE
Duplex: FULL, Negotiation: DISABLE
Input Flow-control: DISABLE, Output Flow-control: DISABLE
……
如果上述配置不一致,用户需要修改接口的配置使两端接口的自协商模式、速率、双工等参数一致。
4 总结
从本质上讲接口down的原因就是两种。 第一种就是硬件问题,要么是光模块问题、要么是传输介质问题、要么是设备端口、单板问题; 第二种就是软件问题,软件问题就是配置的问题,可能是端口未打开,接口两端配置不一致等; 在处理故障时,大家可以从这两方尝试解决问题。