- play_arrow 以太网接口
- play_arrow 聚合以太网接口
- play_arrow 千兆以太网接口
- play_arrow 端口速度
- play_arrow 400ZR 和 400G OpenZR+ 光收发器
- play_arrow 100GbE、40GbE 和 10GbE 光收发器
- play_arrow 配置语句和操作命令
监控快速以太网和千兆以太网接口
了解如何通过遵循全面的清单、了解关键监控技术并查看光纤以太网接口规格来有效监控快速以太网和千兆以太网接口。
用于监控快速以太网和千兆以太网接口的检查表
目的
监控快速以太网和千兆以太网接口和接口问题。
操作
它提供了用于监控快速以太网和千兆以太网接口的链路和命令。
任务 | 命令或操作 |
---|---|
监控快速以太网和千兆以太网接口 | |
| |
| |
| |
|
意义
您可以使用命令监控和显示快速以太网和千兆以太网接口的配置。
如何监控快速以太网和千兆以太网接口
监控快速以太网和千兆以太网接口,隔离接口相关问题。
要监控快速以太网和千兆以太网接口,请执行以下步骤:
显示快速和千兆以太网接口的状态
目的
要显示快速和千兆以太网接口的状态,请使用以下 Junos OS 命令行界面 (CLI) 操作模式命令:
操作
user@host> show interfaces terse (fe* | ge*)
示例输出
user@host> show interfaces terse fe* Interface Admin Link Proto Local Remote fe-2/1/0 up up fe-2/1/0.0 up up inet 10.116.115.217/29 fe-3/0/2 up down fe-3/0/2.0 up down fe-3/0/3 up up fe-3/0/3.0 up up inet 192.168.223.65/30 fe-4/1/0 down up fe-4/1/0.0 up down inet 10.150.59.133/30 fe-4/1/1 up up fe-4/1/1.0 up up inet 10.150.59.129/30 fe-4/1/2 up down fe-4/1/2.0 up down
意义
示例输出仅列出快速和千兆以太网接口。它显示物理接口和逻辑接口的状态。
物理接口 | 逻辑接口 | 状态说明 |
---|---|---|
|
| 此接口已启动并运行物理和逻辑链路。 |
|
| 此接口的物理链路已关闭,链路层已关闭,或两者均已关闭 |
|
| 此接口已管理性禁用,物理链路运行正常 ( |
|
| 此接口已关闭物理链路和逻辑链路。 |
显示千兆以太网接口的状态
目的
要显示千兆以太网接口的状态,请使用以下 Junos OS 命令行界面 (CLI) 操作模式命令:
操作
user@host> show interfaces terse ge* Interface Admin Link Proto Local Remote ge-2/2/0 down down ge-2/2/0.0 up down inet 65.113.23.105/30 ge-2/3/0 up up ge-2/3/0.0 up up inet 65.115.56.57/30 ge-3/1/0 up up ge-3/1/0.0 up up inet 65.115.56.193/30 ge-3/2/0 up down
意义
此示例输出仅列出千兆以太网接口。它显示物理接口和逻辑接口的状态。有关输出含义的说明,请参阅 表 3 。
物理接口 | 逻辑接口 | 状态说明 |
---|---|---|
|
| 此接口在管理上处于禁用状态 ( |
|
| 此接口已启动并运行物理和逻辑链路。 |
|
| 此接口的物理链路和逻辑接口均已关闭。 |
显示特定快速以太网和千兆以太网接口的状态
目的
要调查特定以太网接口的状态,请使用以下 CLI 命令查看其详细信息:
操作
user@host> show interfaces (fe-fpc
/pic
/port
| ge-fpc
/pic
/port
)
示例输出 1
以下示例输出适用于物理链路已打开的快速以太网接口:
user@host> show interfaces fe-2/1/0 Physical interface: fe-2/1/0, Enabled, Physical link is Up Interface index: 31, SNMP ifIndex: 35 Description: customer connection Link-level type: Ethernet, MTU: 1514, Source filtering: Disabled Speed: 100mbps, Loopback: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Current address: 00:90:69:86:71:1b, Hardware address: 00:90:69:86:71:1b Input rate : 25768 bps (11 pps), Output rate: 1576 bps (3 pps) Active alarms : None Active defects : None Logical interface fe-2/1/0.0 (Index 2) (SNMP ifIndex 43) Flags: SNMP-Traps, Encapsulation: ENET2 Protocol inet, MTU: 1500, Flags: Is-Primary Addresses, Flags: Is-Preferred Is-Primary Destination: 10.116.151.218/29, Local: 10.119.115.217 Broadcast: 10.116.151.225
示例输出 2
以下输出适用于物理链路已打开的千兆以太网接口:
user@host> show interfaces ge-3/1/0 Physical interface: ge-3/1/0, Enabled, Physical link is Up Interface index: 41, SNMP ifIndex: 55 Description: customer connection Link-level type: Ethernet, MTU: 1514, Source filtering: Disabled Speed: 1000mbps, Loopback: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Current address: 00:90:69:85:71:99, Hardware address: 00:90:69:85:71:99 Input rate : 7412216 bps (1614 pps), Output rate: 2431184 bps (1776 pps) Active alarms : None Active defects : None Logical interface ge-3/1/0.0 (Index 11) (SNMP ifIndex 57) Flags: SNMP-Traps, Encapsulation: ENET2 Protocol inet, MTU: 1500 Addresses, Flags: Is-Preferred Is-Primary Destination: 10.117.65.192/30, Local: 10.115.65.193 Broadcast: 10.115.65.195
意义
示例输出 1 和 2 的第一行显示物理链路已开启,表示其运行状况良好,可以传递数据包。滚动浏览输出以检查任何活动报警或缺陷。如果存在报警或缺陷,请参阅 显示特定快速以太网或千兆以太网接口的广泛状态信息,了解有关该接口的更多详细信息的诊断信息。
显示特定快速以太网或千兆以太网接口的广泛状态
目的
要显示有关特定快速以太网或千兆以太网接口的大量状态信息,请使用以下 Junos OS CLI 操作模式命令:
操作
user@host> show interfaces (fe-fpc
/pic
/port
| ge-fpc
/pic
/port
) extensive
示例输出
以下示例输出适用于快速以太网接口:
user@router> show interfaces fe-1/3/3 extensive Physical interface: fe-1/3/3, Enabled, Physical link is Up Interface index: 47, SNMP ifIndex: 38 Description: Test Link-level type: Ethernet, MTU: 1514, Source filtering: Disabled Speed: 100mbps, Loopback: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Current address: 00:90:69:8d:2c:de, Hardware address: 00:90:69:8d:2c:de Statistics last cleared: 2002-01-11 23:03:09 UTC (1w2d 23:54 ago) Traffic statistics: Input bytes : 373012658 0 bps Output bytes : 153026154 1392 bps Input packets: 1362858 0 pps Output packets: 1642918 3 pps Input errors: Errors: 0 , Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 503660 L3 incompletes: 1 , L2 channel errors: 0 , L2 mismatch timeouts: 0 FIFO errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Collisions: 0, Drops: 0, Aged packets: 0 HS link CRC errors: 0, FIFO errors: 0 Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 439703575 177452093 Total packets 1866532 1642916 Unicast packets 972137 1602563 Broadcast packets 30 2980 Multicast packets 894365 37373 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 1866532 Input packet rejects 0 Input DA rejects 503674 Input SA rejects 0 Output packet count 1642916 Output packet pad count 0 Output packet error count 0 CAM destination filters: 5, CAM source filters: 0 Autonegotiation information: Negotiation status: Complete, Link partner status: OK Link partner: Full-duplex, Flow control: None PFE configuration: Destination slot: 1, Stream number: 15 CoS transmit queue bandwidth: Queue0: 95, Queue1: 0, Queue2: 0, Queue3: 5 CoS weighted round-robin: Queue0: 95, Queue1: 0, Queue2: 0, Queue3: 5 Logical interface fe-1/3/3.0 (Index 8) (SNMP ifIndex 69) Description: Test Flags: SNMP-Traps, Encapsulation: ENET2 Protocol inet, MTU: 1500, Flags: None Addresses, Flags: Is-Preferred Is-Primary Destination: 10.115.107.192/29, Local: 10.115.107.193 Broadcast: 10.115.107.199
意义
示例输出显示可能发生错误的位置,并包含自动协商信息。
错误 | 意义 |
---|---|
| 无法识别或不感兴趣的丢弃帧。 |
| 路由器找不到有效逻辑接口的数据包。例如,数据包用于接口上未配置的虚拟 LAN (VLAN)。 |
| 最大传输单元 (MTU) 必须与快速以太网或千兆以太网链路远程端路由器的接口或交换机的接口匹配。 |
| 目标媒体访问控制 (MAC) 地址不在接受列表中的数据包数。看到这个数字递增是正常的。 |
| 源 MAC 地址不在接受列表中的数据包数。此数字仅在配置源 MAC 地址过滤时递增。 |
如果物理链路断开,请查看快速以太网或千兆以太网接口的活动报警和缺陷,并相应地诊断快速以太网或千兆以太网介质。有关快速以太网和千兆以太网报警的说明,请参阅 定位快速和千兆以太网的 LINK 告警和计数器 。
错误 | 意义 |
---|---|
| 接收的数据包总数,长度(不包括成帧位,但包括 FCS 八位位组)在 64 和 1518 个八位位组(含)之间,但 FCS 错误,八位位组数为整数 ( |
| MAC 控制帧的数量。 |
| 带有操作代码的 |
| 接收的长度超过 1518 个八位位组(不包括成帧位,但包括 FCS 八位位组)且出现 FCS 错误或对齐错误的数据包总数。 请注意,jabber 的此定义与 IEEE-802.3 第 8.2.1.5 节 (10BASE5) 和第 10.3.1.4 节 (10BASE2) 中的定义不同。这些文档将 jabber 定义为任何数据包超过 20 毫秒的情况。检测 jabber 的允许范围介于 20 毫秒到 150 毫秒之间。 |
| 接收的长度小于 64 个八位位组(不包括成帧位,但包括 FCS 八位位组)且出现 FCS 错误或对齐错误的数据包总数。 请注意,片段帧递增是完全正常的,因为会同时计算 runt(由于冲突而导致的正常事件)和噪声命中。 |
自动协商是连接的以太网接口用来传达互操作所需信息的过程。 表 6 解释了命令输出的 show interface interface-name extensive
自动协商信息。
自动协商字段信息 | 解释 |
---|---|
| 以太网接口配置了速度或链路模式。 |
| 以太网接口配置了速度或链路模式,或者不执行自动协商。 |
| 以太网接口连接到执行自动协商的设备,自动协调过程成功完成。 |
| 取决于连接的以太网设备的功能。 |
| 显示远程以太网设备支持的流控制类型。 |
监控快速以太网或千兆以太网接口的统计信息
目的
要监控快速以太网或千兆以太网接口的统计信息,请使用以下 Junos OS CLI 操作模式命令:
操作
user@host> monitor interface (fe-fpc
/pic
/port
| ge-fpc
/pic
/port
)
建议仅将 or monitor interface ge-fpc/pic/port
命令用于monitor interface fe-fpc/pic/port
诊断目的。在正常的路由器操作期间,不要让这些命令保持打开状态,因为实时监控流量会消耗额外的 CPU 和内存资源。
示例输出
以下示例输出适用于快速以太网接口:
user@host> monitor interface fe-2/1/0 Interface: fe-2/1/0, Enabled, Link is Up Encapsulation: Ethernet, Speed: 100mbps Traffic statistics: Current Delta Input bytes: 282556864218 (14208 bps) [40815] Output bytes: 42320313078 (384 bps) [890] Input packets: 739373897 (11 pps) [145] Output packets: 124798688 (1 pps) [14] Error statistics: Input errors: 0 [0] Input drops: 0 [0] Input framing errors: 0 [0] Policed discards: 6625892 [6] L3 incompletes: 75 [0] L2 channel errors: 0 [0] L2 mismatch timeouts: 0 [0] Carrier transitions: 1 [0] Output errors: 0 [0] Output drops: 0 [0] Aged packets: 0 [0] Active alarms : None Active defects: None Input MAC/Filter statistics: Unicast packets 464751787 [154] Packet error count 0 [0]
意义
使用此命令中的信息有助于缩小接口问题的可能原因。
如果要从控制台连接访问路由器,请确保使用命令设置 set cli terminal
CLI 终端类型。
第二列显示自上次使用 clear interfaces statistics interface-name
命令清除这些统计信息以来的累积统计信息。第三列显示自运行 monitor interface interface-name
命令以来的累积统计信息。如果输入错误增加,请按照下列步骤操作:
检查路由器的电缆,并要求运营商验证线路的完整性。确保为接口端口使用正确的电缆——单模接口使用单模光纤,多模接口使用多模光纤。
对于光纤连接,测量接收端的接收光水平,并确保其符合以太网接口的规格。
测量 Tx 端口上的发射光电平以确认其在指定范围内。
光纤以太网接口规格
表 7 显示了光纤接口的规格。
光纤以太网接口 | 长度 | 波长 | 平均发射功率 | 接收器饱和度 | 接收器灵敏度 |
---|---|---|---|---|---|
千兆位以太网 | |||||
| |||||
| 8.2 微米 SMF 覆盖 49.5 英里 70 公里范围 | 1480 至 1580 nm | -3 至 +2 dBm | -3 分贝 | -23 dBm (BER 1012) 用于 SMF |
| 在 9/125 微米 SMF 上实现 6.2 英里 10 公里的距离 1804.5英尺550米的62.5/125微米和50/125微米MMF上的距离 | 1270 至 1355 nm | -11 至 -3 dBm | -3 分贝 | -19 分贝 |
| 656 英尺 200 米,62.5/125 微米 MMF 工作距离 1640 英尺 500 米,50/125 微米 MMF 工作距离 | 830 至 860 nm | -9.5 至 -4 dBm | -3 分贝 | -17 分贝 |
快速以太网 8 端口 | |||||
| 在 62.5/125 微米 MMF 上实现 1.24 英里 2 公里的距离 | 1270 至 1380 nm | -20 至 -14 dBm | -14 分贝 | -34 分贝 |