如何查看 Switch GE 端口的链路类型?

网络工程 路由器 联网
2022-02-11 03:34:12

如何查看 Quidway Switch GE 端口的链路类型?我有一个S5700交换机,我想检查它的GE0/0/1端口的link-type是否是access。

我试过使用下面的命令:

[Huawei]display interface GigabitEthernet 0/0/1
GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc09-0f2a
Last physical up time   : 2018-10-25 12:05:19 UTC-08:00
Last physical down time : 2018-10-25 12:04:27 UTC-08:00
Current system time: 2018-10-25 15:16:46-08:00
Hardware address is 4c1f-cc09-0f2a
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 60 bytes, 1 packets
    Output: 625345 bytes, 5255 packets
    Input:
      Unicast: 0 packets, Multicast: 0 packets
      Broadcast: 1 packets
    Output:
      Unicast: 0 packets, Multicast: 5255 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

这个方法:

[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]display this
#
interface GigabitEthernet0/0/1
#
return

但是我没有找到link-type

1个回答

您可以在端口中检查它,您的第二种方法是正确的。

如果您没有配置端口访问或中继,则不会显示它。

如果您进行了配置,则会显示链接:

[Huawei-GigabitEthernet0/0/1]display this
#
interface GigabitEthernet0/0/1
 port link-type access
#
return