故障排除接口
本主题讨论各种故障排除方案。
故障排除:Junos OS Evolved 的管理接口链路关闭
问题
描述
当您在以下设备上运行show chassis alarm
操作模式命令时,将Ethernet Link Down
引发告警:
-
ACX 路由器(ACX7100-32C、ACX7100-48L)
-
PTX 路由器(PTX10001-36MR、PTX10003、PTX10004、PTX10008)
-
QFX 交换机(QFX5130-32CD、QFX5220-32CD、QFX5220-128C)
诊断
执行以下测试,检查管理接口在主路由引擎还是备份路由引擎上关闭:
-
运行
show chassis alarms
命令。显示机箱告警
user@host0> show chassis alarms 1 alarms currently active Alarm time Class Description 2020-10-19 11:13:02 MYT Major Host 1 re0:mgmt-0.0 : Ethernet Link Down
是否针对主路由引擎(主机 0)的管理接口显示告警
Ethernet Link Down
?-
是:如需进一步帮助,请联系瞻博网络技术援助中心 (JTAC)。
-
否:继续下一个诊断测试。
-
-
show interfaces re0:mgmt-0
运行和show interfaces re0:mgmt-0 terse
操作模式命令。show interfaces re0:mgmt-0
user@host0> show interfaces re0:mgmt-0 Physical interface: re0:mgmt-0, Enabled, Physical link is Up Interface index: 1001, SNMP ifIndex: 193 Type: Ethernet, Link-level type: Ethernet, MTU: 1500, Speed: 1Gbps, Auto-negotiation: Enabled Device flags : Present Running Interface flags: SNMP-Traps ...
show interfaces re0:mgmt-0 terse
user@host0> show interfaces re0:mgmt-0 terse Interface Admin Link Proto Local Remote re0:mgmt-0 up up re0:mgmt-0.0 up up inet 10.100.100.1/30
管理接口是否位于主路由引擎
up
上?-
是:继续解决。
-
否:联系 JTAC 获得进一步帮助。
-
分辨率
要解决此问题
已针对备份路由引擎(主机 1)中的管理接口发出机箱告警,而不是针对主路由引擎(主机 0)发出机箱告警。
在备份路由引擎上实施以下解决方案之一来解决此问题:
禁用备份路由引擎中的管理接口:
在配置模式下,转到
[edit groups re1]
层次结构级别。user@host1# edit groups re1
-
禁用 re1:mgmt-0 接口。
[edit groups re1] user@host1# set interfaces re1:mgmt-0 disable
忽略告警:
在配置模式下,转到
[edit chassis]
层次结构级别。user@host1# edit chassis
Ethernet link down
通过将告警选项ignore
设置为management-ethernet link-down
,忽略管理接口上的告警。[edit chassis] user@host1# set alarm management-ethernet link-down ignore
另请参阅
故障排除:Junos OS Evolved 的端口速度配置无效
问题
描述
运行Invalid Port Speed Configuration
show system alarms
操作模式命令时,将显示告警。
例如:
user@host> show system alarms Alarm time Class Description 2021-12-06 23:09:21 UTC Minor FPC-0 PIC-0: Invalid Port Speed Configuration
诊断
show picd config
从级别cli-pfe
运行命令,以识别无效的端口速度配置。运行命令会显示端口速度/通道化配置的详细信息,包括哪些端口有效以及出现任何无效 PIC 配置的原因。
例如:
root@re0:~# cli-pfe root@re0:pfe> show picd config
pic_info_table : default config config config computed pic_or_port speed pic_mode port_speed valid speed supported_speeds hidden_speeds ----------- ------- -------- ---------- ------ -------- -------------------------------------------------------- ------------- pic-0/0 - - - yes - port-0/0/0 1x400G - 1x100G - 1x100G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/1 1x400G - 1x100G - 1x100G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/2 1x400G - 1x100G - 1x100G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/3 1x400G - 1x100G - 1x100G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] ... port-0/0/11 1x400G - - - 1x400G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/12 1x400G - - - 1x400G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/13 1x400G - - - 1x400G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] port-0/0/14 1x400G - - - 1x400G [ 1x400G 1x200G 4x10G 1x40G 4x25G 1x100G 4x100G 2x200G ] [ ] ... usr_config : pic_usr_config : pic_name : pic-0/0 pic_mode_valid : false pic_mode : num_ports_valid : false num_ports : 0 config_invalid : true invalid_reason : Port 12: Speed 4x40G not supported Port 13: Speed 4x40G not supported ptp_mode : false port_usr_config : port_name : port-0/0/0 port_speed_valid : true port_speed : 1x100G sub_ports_cfg : false port_usr_config : port_name : port-0/0/1 port_speed_valid : true port_speed : 1x100G sub_ports_cfg : false port_usr_config : port_name : port-0/0/10 port_speed_valid : true port_speed : 1x40G sub_ports_cfg : false port_usr_config : port_name : port-0/0/11 port_speed_valid : true port_speed : 1x40G sub_ports_cfg : false port_usr_config : port_name : port-0/0/12 port_speed_valid : true port_speed : 4x40G sub_ports_cfg : true port_usr_config : port_name : port-0/0/13 port_speed_valid : true port_speed : 4x40G sub_ports_cfg : true port_usr_config : port_name : port-0/0/20 port_speed_valid : true port_speed : 1x100G sub_ports_cfg : false
命令的结果 show picd config
是否表示端口速度配置无效?
-
是:继续解决。
-
否:如需进一步帮助,请联系瞻博网络技术援助中心 (JTAC)。
在本示例中,结果表示:
Port 12: Speed 4x40G not supported Port 13: Speed 4x40G not supported
分辨率
要解决此问题
不支持的端口速度配置会引发系统告警。将所有端口配置为有效的端口速度,以解决问题。端口速度在 PIC 级别配置。
当某个端口上应用无效配置时,PIC 其他端口上当前配置的速度/通道化将一直有效,直到设备下次重新启动或下一个 PICD 应用重新启动。设备重新启动或 PIC 重新启动后,该 PIC 的所有端口都会恢复到默认速度。无效状态和所有端口在默认速度下的影响将一直有效,直到纠正无效配置。
要确定逻辑 PIC 的有效端口速度,请 show chassis pic fpc-slot slot-number pic-slot slot-number
运行命令。
此示例包含在端口 0/0/12 和 0/0/13 上不支持的端口速度/通道化配置。要确定示例的有效端口速度,请运行 show chassis pic fpc-slot 0 pic-slot 0
。
root@re0> show chassis pic fpc-slot 0 pic-slot 0 --- Port speed information: Port PFE Capable Port Speeds 0 0 1x40G 1x100G 4x25G 4x10G 1 0 1x40G 1x100G 4x25G 4x10G 4 0 1x40G 1x100G 4x25G 4x10G 5 0 1x40G 1x100G 4x25G 4X10G 8 0 1x40G 1x100G 4x25G 4x10G 9 0 1x40G 1x100G 4x25G 4x10G 12 0 1x40G 1x100G 4x25G 4x10G 13 0 1x40G 1x100G 4x25G 4x10G
通过使用以下有效端口速度之一配置端口 0/0/12 和 0/0/13 来解决无效端口速度示例:
12 1x40G 1x100G 4x25G 4x10G 13 1x40G 1x100G 4x25G 4x10G
故障排除:适用于 Junos OS Evolved 的以太网物理接口故障
您可以按照以下主题中介绍的基本故障排除操作,对 Junos OS Evolved 支持的设备上的以太网物理接口进行故障排除。
检查电缆连接
问题
描述
数据包不会通过以太网物理接口接收或传输。
诊断
正确的电缆是否连接到了正确的端口?
是:继续 检查接口的物理链路状态。
否:请参阅 解决布线问题。
分辨率
解决布线问题
执行一个或多个以下步骤来解决布线问题:
-
在本地和远程端正确连接电缆,无需任何松动连接。
-
如果现有电缆损坏,请将其更换为已知良好的电缆。
仅将单模光纤电缆连接到单模接口,将多模光纤电缆仅连接到多模接口。要检查光纤电缆完整性,请参阅 检查光纤电缆完整性。
在电缆两侧连接正确的小型可插拔收发器 (SFP)。
检查光纤电缆完整性
使用外部电缆诊断测试工具检查光纤电缆的完整性:
单模光纤电缆必须连接到单模接口。
必须将多模光纤电缆连接到多模式接口。
测量接收器 (RX) 端口处的接收光水平,以查看接收的光水平是否在以太网接口的接收器规格范围内。
-
测量发射器 (TX) 端口的传输光水平,以查看透射光水平是否在以太网接口的发射器规格内。
检查接口的物理链路状态
问题
描述
即使电缆连接正确,也无法在以太网接口上传输或接收数据包。
解决 方案
要显示接口的物理链路状态,请 show interface interface-name media
运行操作模式命令。例如,在 et-5/0/1 接口上:
user@host> show interfaces et-5/0/1 media Physical interface: et-5/0/1, Enabled, Physical link is Up Interface index: 317, SNMP ifIndex: 1602 Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Speed-negotiation: Disabled, Auto-MDIX: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Current address: 2c:6b:f5:4c:26:73, Hardware address: 2c:6b:f5:4c:26:73 Last flapped : 2020-11-30 01:25:37 UTC (03:46:55 ago) Input rate : 880 bps (1 pps) Output rate : 312 bps (0 pps) Active alarms : None Active defects : None MAC statistics: Input bytes: 901296, Input packets: 9799, Output bytes: 976587, Output packets: 10451 Filter statistics: Filtered packets: 68, Padded packets: 0, Output packet errors: 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric/Asymmetric, Remote fault: OK Local resolution: Flow control: Symmetric, Remote fault: Link OK Interface transmit statistics: Disabled
诊断
-
即使
Enabled
字段显示状态且字段显示Physical link is Up
None
,是否存在任何连接问题,例如输入错误和Active alarms and Active defect
数据包丢失?-
是:请 详细查看接口统计信息。
-
否:继续下一个诊断测试。
-
Enabled
字段是否显示Physical link is Down
状态,Active alarms and Active defect
字段是否显示Link
?是:接口连接不正确或未接收有效信号。转到 解决布线问题。
否:继续。
详细检查接口统计信息
问题
描述
即使字段显示状态Active alarms and Active defect
None
且Enabled
字段显示Physical link is Up
,物理接口也无法工作。
解决 方案
要详细显示接口统计信息,请 show interface interface-name extensive
运行操作命令。例如,在 et-5/0/1 接口上:
user@host> show interfaces et-5/0/1 extensive Physical interface: et-5/0/1, Enabled, Physical link is Up Interface index: 317, SNMP ifIndex: 1602, Generation: 322 Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Speed-negotiation: Disabled, Auto-MDIX: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Current address: 2c:6b:f5:4c:26:73, Hardware address: 2c:6b:f5:4c:26:73 Last flapped : 2012-11-30 01:25:37 UTC (04:38:32 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 806283 0 bps Output bytes : 1153215 424 bps Input packets: 10818 0 pps Output packets: 11536 0 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Label-switched interface (LSI) traffic statistics: Input bytes : 0 0 bps Input packets: 0 0 pps Dropped traffic statistics due to STP State: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 233060, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 11, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 3216 3216 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 8320 8320 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 1007655 1082219 Total packets 10886 11536 Unicast packets 4350 4184 Broadcast packets 32 77 Multicast packets 6504 7275 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 VLAN tagged frames 0 Code violations 0 Filter statistics: Input packet count 10886 Input packet rejects 68 Input DA rejects 68 Input SA rejects 0 Output packet count 11536 Output packet pad count 0 Output packet error count 0 CAM destination filters: 0, CAM source filters: 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric/Asymmetric, Remote fault: OK Local resolution: Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 5 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 950000000 95 0 low none 3 network-control 5 50000000 5 0 low none Interface transmit statistics: Disabled
诊断
-
Policed discards
、L2 channel errors
、 、Input DA rejects
或Input SA rejects
字段是否显示任何错误?-
是:根据需要解决错误。解决这些错误不涉及本主题。
-
否:继续 执行环路诊断测试。
-
执行环路诊断测试
问题
描述
接口电缆连接正确,以太网物理接口未出现任何告警或错误,但接口无法正常工作。
解决 方案
要检查以太网端口或 PIC 是否出现故障,必须执行内部环路测试和硬件环路测试。
要对以太网接口(例如在 et-5/0/1 接口上)执行内部环路诊断测试:
-
在配置模式下,转到
[edit interfaces et-5/0/1]
层次结构级别。[edit] user@host# edit interface et-5/0/1
-
将
ether-options
选项设置为环路,提交配置,然后退出配置模式。[edit interfaces et-5/0/1 user@host# set ether-options loopback user@host# commit user@host# quit
-
在操作模式下,执行
show interfaces et-5/0/1 media
命令。user@host> show interfaces et-5/0/1 media Physical interface: et-5/0/1, Enabled, Physical link is Up Interface index: 317, SNMP ifIndex: 1602 Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Enabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Speed-negotiation: Disabled, Auto-MDIX: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Current address: 2c:6b:f5:4c:26:73, Hardware address: 2c:6b:f5:4c:26:73 Last flapped : 2012-11-30 01:25:37 UTC (03:46:55 ago) Input rate : 880 bps (1 pps) Output rate : 312 bps (0 pps) Active alarms : None Active defects : None MAC statistics: Input bytes: 901296, Input packets: 9799, Output bytes: 976587, Output packets: 10451 Filter statistics: Filtered packets: 68, Padded packets: 0, Output packet errors: 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric/Asymmetric, Remote fault: OK Local resolution: Flow control: Symmetric, Remote fault: Link OK Interface transmit statistics: Disabled
完成诊断后删除 loopback
该语句。
根据需要执行以下步骤之一进行硬件环路诊断测试:
对于具有光纤接口的以太网 PIC — 物理环路 TX 和 RX 端口,并使用
show interfaces interface-name media
操作模式命令检查物理链路的状态。对于具有 RJ-45 以太网接口的以太网 PIC — 通过将针 1 (TX + ) 与针 3 (RX +) 以及针脚 2 (TX X -) 和针脚 6 (RX -) 结合在一起,构建环路插头。然后,使用
show interfaces interface-name media
操作模式命令检查物理链路的状态。
检查其他可能性
问题
描述
环路诊断测试成功,但无法在以太网接口上传输和接收数据包。
解决 方案
根据需要使用以下命令对以太网接口(如 et-5/0/1 接口)进行故障排除:
运行
show interfaces interface-name terse
操作命令,检查物理接口和逻辑接口是否在管理上已禁用。例如,在 et-5/0/1 接口上:user@host> show interfaces et-5/0/1 terse Interface Admin Link Proto Local Remote et-5/0/1 up up et-5/0/1.0 up up inet 20.1.1.2/24
诊断
-
物理接口及其相应的逻辑接口是否显示在
down
操作模式命令的show interfaces interface-name terse
输出中?-
是:启用接口,如 启用物理接口中所示。
-
否:继续下一个诊断测试。
-
-
speed
操作模式命令输出show interfaces interface-name extensive
中的 、duplex
和auto-negotiation
字段是否为接口正确设置?注意:检查关联设备是否支持灵活 PIC 集中器 (FPC) 的速度和自动协商设置。
-
是:请参阅 路由设备的以太网接口用户指南 ,了解有关故障排除的更多提示。
-
否:联系 JTAC 获得进一步帮助。
-
启用物理接口
要启用物理接口: