快速查找IP所在的核心交换机端口及端口信息

 根据IP查找对应端口

<main>display arp | include 192.168.10.3
IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE        INTERFACE   VPN-INSTANCE
                                          VLAN/CEVLAN
------------------------------------------------------------------------------
192.168.10.3    0050-5688-6f66  17        D-0         GE1/0/34
------------------------------------------------------------------------------
Total:1390      Dynamic:1349    Static:1     Interface:40

查看接口对应有哪些mac地址

<main>display mac-address g1/0/34
-------------------------------------------------------------------------------
MAC Address    VLAN/VSI                          Learned-From        Type
-------------------------------------------------------------------------------
0330-5699-18df 10/-                              GE1/0/34            dynamic
0350-5699-6f75 10/-                              GE1/0/34            dynamic
0350-56bb-0be3 10/-                              GE1/0/34            dynamic

查看指定端口配置信息

<main>dis current-configuration interface g1/0/37
#
interface GigabitEthernet1/0/37
 port link-type access
 port default vlan 172
 port-mirroring to observe-port 1 inbound
#

猜你喜欢

转载自blog.csdn.net/weixin_42517271/article/details/130404841