例:设置以太网端口Ethernet0/1为镜像端口,Ethernet0/2为被镜像端口。
[Quidway] monitor-port ethernet0/1
[Quidway] mirroring-port ethernet0/2
3.5 以太网端口显示和调试
可以使用以下命令查看以太网交换机端口、汇聚端口或镜像端口的相关信息,并可以清除以太网端口的统计信息。
在完成上述配置后,在所有视图下执行display命令可以显示配置后以太网端口的运行情况,用户可以通过查看显示信息验证配置的效果。在用户视图下执行reset命令可以清除以太网端口的统计信息。
表3-9 以太网端口显示和调试 操作 命令
显示端口的所有信息
display interface [ interface_type interface_num | interface_name ]
清除所有端口的统计信息 reset
显示以太网镜像端口设置 display monitor
显示以太网端口汇聚信息 display link-aggregation
使用display interface命令可以查看指定或所有端口的相关信息,包括端口类型、端口状态、是否双工、端口速率以及是否镜像端口、是否汇聚端口等,如果该命令没有参数则显示所有端口的信息。
使用display monitor命令可以查看镜像端口和被镜像端口的相关信息。
使用display link-aggregation命令可以查看汇聚主端口、子端口以及汇聚模式。
例:显示以太网端口Ethernet0/1的所有信息。
Ethernet0/1 is down
Hardware is Fast Ethernet, Hardware address is 00e0-fc00-0010
auto_negotiation, 100_BASE_TX
Flow control is disable
The port belongs to these vlans: Vlan 1
It is not a monitor port
It doesn't belong to a port-aggregation
0 packets output
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
0 packets input
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
0 CRC errors
0 long frames
以上显示信息表示Ethernet0/1端口处于down状态,它是FE端口,硬件地址是00e0-fc00-0010,工作在自协商方式,流控处于关闭状态,端口属于VLAN1,此端口不是镜像端口,也不是汇聚端口,向外发送了0个包,发送字节数为0字节,0次组播,0次广播,接收了0个包,接收字节数为0字节,0次组播,0次广播。
例:显示镜像端口内容。
[Quidway] display monitor
Information about monitor port(s)
The observing port : Ethernet0/1
The mo