首页 > 代码库 > 查看终端设备接入交换机的端口方法

查看终端设备接入交换机的端口方法

拓扑为终端设备--接入交换机--汇聚交换机--核心交换机

例如查看192.168.3.1设备的接入端口    

1、核心上

确认终端MAC地址和interface

<Devce A>dis arp | include 192.168.3

                Type: S-Static D-Dynamic M-Multiport

IP Address MAC Address VLAN ID Interface Aging Type

192.168.3.1 0018-7d2c-5dab 30 BAGG1 19 D

192.168.3.3 0018-7d2c-5f61 30 BAGG1 19 D

192.168.3.4 0018-7d2c-5f4f 30 BAGG1 19 D

192.168.3.37 0018-7d2c-5c1d 30 BAGG2 20 D

192.168.3.39 0018-7d2c-5cc1 30 BAGG2 20 D

192.168.3.40 0018-7d2c-5c1b 30 BAGG2 20 D

192.168.3.101 0cda-419e-5660 30 BAGG2 11 D

192.168.3.33 0018-7d2c-5c45 30 BAGG3 20 D

192.168.3.36 0018-7d2c-5ccb 30 BAGG3 20 D

192.168.3.31 0018-7d27-9afc 30 BAGG3 20 D

192.168.3.34 0018-7d2c-5ead 30 BAGG3 20 D

192.168.3.18 0018-7d2c-5cb7 30 BAGG3 20 D

2\确认3.1是属于BAGG1,查看BAGG1是哪个汇聚交换机

<Devce A>dis arp | include BAGG1

                Type: S-Static D-Dynamic M-Multiport

IP Address MAC Address VLAN ID Interface Aging Type

192.168.4.12 f6f6-0001-a1eb 40 BAGG1 20 D

10.100.1.10 d43d-7ea9-66a2 91 BAGG1 10 D

10.100.12.82 c03f-d574-be8d 12 BAGG1 17 D

192.168.4.19 f6f6-0002-8351 40 BAGG1 20 D

192.168.4.4 f6f6-0001-35cb 40 BAGG1 20 D

192.168.4.5 f6f6-0001-ab6f 40 BAGG1 20 D

192.168.4.119 f6f8-0000-0210 40 BAGG1 20 D

10.100.2.146 0025-ab2e-bea3 92 BAGG1 11 D

10.100.12.99 c80a-a9bf-6017 12 BAGG1 20 D

192.168.4.10 f6f6-0001-abd6 40 BAGG1 20 D

192.168.200.102 0cda-419e-5974 200 BAGG1 18 D

3、确认3.1的接入交换机是汇聚交换机192.168.200.102的哪个端口

<H3C-5800-5>dis mac-address | include 0018-7d2c-5dab

0018-7d2c-5dab 30 Learned GigabitEthernet1/0/21 AGING

4、确认GigabitEthernet1/0/21是哪个接入交换机

<H3C-5800-5>dis arp | include 1/0/21

                Type: S-Static D-Dynamic

IP Address MAC Address VLAN ID Interface Aging Type

192.168.200.2 0cda-41aa-6ee1 200 GE1/0/21 N/A D

5、查看终端在接入交换机192.168.200.2的哪个端口

<1FODF1-2>dis mac-ad | include 0018-7d2c-5dab

0018-7d2c-5dab 30 Learned Ethernet1/0/1 AGING

192.168.3.1在 e1/0/1端口上


本文出自 “njkk” 博客,请务必保留此出处http://qfxy168.blog.51cto.com/1591024/1430964