思科交换机 查看某个端口下的IP地址 及 IP查交换机端口 您所在的位置:网站首页 如何查看一个ip的端口 思科交换机 查看某个端口下的IP地址 及 IP查交换机端口

思科交换机 查看某个端口下的IP地址 及 IP查交换机端口

2024-07-05 23:47| 来源: 网络整理| 查看: 265

交换机端口 查IP地址

1.进入交换机特权模式  查 F0/10 端口的 MAC地址

#:show mac-address-table interface F0/17

Mac Address Table

-------------------------------------------

Vlan    Mac Address       Type        Ports

----    -----------       --------    -----

200    2857.be99.eab9    DYNAMIC     Fa0/17

Total Mac Addresses for this criterion: 1

记录MAC 地址

2. 进入三层交换机  查询 MAC地址对应的IP

show  arp | include 2857.be99.eab9

Internet  192.168.200.241         0   2857.be99.eab9  ARPA   Vlan200

IP查交换机端口

进入主交换机

1、进入特权模式输入

show arp | inc 192.168.55.225(或者sh arp 192.168.55.225 )

可以看到192.168.55.225 对应的mac地址0023.540d.47ed

2、show mac add | inc xxxx.xxxx.xxxx(0023.540d.47ed)

可以看到核心交换机的192.168.55.225 的arp的信息是从哪个接口学习到的(比如是GigabitEthernet4/24)

3、show cdp nei GigabitEthernet4/24 detail

可以查看到接入交换机的网管信息,如果交换机是192.168.100.244

4、进入192.168.100.244 特权

show mac add | inc xxxx.xxxx.xxxx(0023.540d.47ed)就可以看到是从哪个端口

注:上面的IP,mac地址请根据实际填写



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有