前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Cisco交换机IP与MAC地址查找对应端口

Cisco交换机IP与MAC地址查找对应端口

作者头像
星哥玩云
发布2022-07-26 20:02:29
4.7K0
发布2022-07-26 20:02:29
举报
文章被收录于专栏:开源部署开源部署

交换机:Cisco 2960\Cisco 3560

1、查看IP对应交换机接口MAC地址

Switch_master#show arp | include 10.0.3.85        Internet  10.0.3.85              0  94de.80ff.c61a  ARPA  Vlan30

2、通过MAC地址查看对应交换机端口

Switch_master#show mac address-table dynamic address 94de.80ff.c6aa           Mac Address Table ------------------------------------------- Vlan    Mac Address      Type        Ports ----    -----------      --------    -----   30    94de.80ff.c61a    DYNAMIC    Gi1/0/3 Total Mac Addresses for this criterion: 1

3、通过接口查看对应的设备

Switch_master#show cdp neighbors gigabitEthernet 1/0/3        Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge                   S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,                   D - Remote, C - CVTA, M - Two-port Mac Relay Device ID        Local Intrfce    Holdtme    Capability  Platform  Port ID switch_slave    Gig 1/0/3        140              S I  WS-C3750X Gig 1/0/1 Total cdp entries displayed : 1

#对应接口为Cisco交换机,继续登陆交换机查询

switch_slave#show mac address-table dynamic address 94de.80ff.c6aa           Mac Address Table ------------------------------------------- Vlan    Mac Address      Type        Ports ----    -----------      --------    -----   30    94de.80ff.c61a    DYNAMIC    Gi1/0/11 Total Mac Addresses for this criterion: 1

#先查看对应端口下活动的MAC地址,来判断接口下的活跃的设备

switch_slave#show mac address-table dynamic interface gigabitEthernet 1/0/11           Mac Address Table ------------------------------------------- Vlan    Mac Address      Type        Ports ----    -----------      --------    -----   30    94de.80ff.c61a    DYNAMIC    Gi1/0/11 Total Mac Addresses for this criterion: 1

4、通过交换机端口查看对应接口设备IP

#查看接口对接设备的mac地址

switch_slave#show mac address-table dynamic interface gigabitEthernet 1/0/11           Mac Address Table ------------------------------------------- Vlan    Mac Address      Type        Ports ----    -----------      --------    -----   30    94de.80ff.c61a    DYNAMIC    Gi1/0/11

#通过mac地址查看你对应设备IP

switch_slave#show arp | include 94de.80ff.c6aa Internet  10.0.3.85              0  94de.80ff.c61a  ARPA  Vlan30

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档