可以使用以下命令查看以太网交换机端口、汇聚端口、镜像端口组的相关信息,并可以清除以太网端口的统计信息。
表5-18 以太网端口显示和调试

例:显示以太网端口gigabitethernet0/1的所有信息。
[h3c] display interface gigabitethernet0/1
gigabitethernet0/1 current state: down
hardware address is 0022-33aa-bbcc
mac-address learning is enabled
media type is twisted pair
link speed type is autonegotiation, link duplex type is autonegotiation
line-rate inbound disabled
line-rate outbound disabled
flow control is disabled
the maximum frame length is 1518
priority: 0
pvid: 1
mdi type: auto
port link-type: access
tagged vlan id: none
untagged vlan id: 1
input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
input: 0 input errors, 0 pauses
output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
output: 0 input errors, 0 pauses
表5-19 display interface gigabitethernet0/1命令显示信息描述表

例:显示汇聚端口组的相关信息。
[h3c] display link-aggregation
master port: gigabitethernet0/1
other sub-ports:
gigabitethernet0/2
link-aggregation share mode is both
以上显示信息表示:汇聚主端口是gigabitethernet0/15,子端口是gigabitethernet0/16。汇聚组中各成员端口根据源mac地址和目的mac地址对出端口方向的数据流进行负荷分担。
例:显示镜像端口组的配置信息。
[h3c] display mirror
monitor-port:
gigabitethernet0/10
mirroring-port:
gigabitethernet0/1 gigabitethernet0/2 gigabitethernet0/3
gigabitethernet0/4 gigabitethernet0/5
以上显示信息表示:镜像端口为gigabitethernet0/10,被镜像端口为gigabitethernet0/1、gigabitethernet0/2、gigabitethernet0/3、gigabitethernet0/4、gigabitethernet0/5。