创新|开发|定制
专注于软路由|网络技术领域

Cisco(思科)交换机根据设备IP地址查询对应端口

网络环境:

核心交换机 3650 下联 接入交换机 2918

目标IP地址 10.0.1.200

核心:

show arp | in 10.0.1.200
3650#show arp | in 10.0.1.200

Internet 10.0.1.200 0 d4ee.0702.9e0d ARPA Vlan11
Switch#show mac address-table dynamic address d4ee.0702.9e0d

3650#show mac address-table dynamic address d4ee.0702.9e0d

Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
11 d4ee.0702.9e0d DYNAMIC Gi1/0/40
Total Mac Addresses for this criterion: 1
show cdp neighbors Gi1/0/40
3650#show cdp neighbors Gi1/0/40
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
2918-1 Gig 1/0/40 138 S I WS-C2918- Gig 0/1
Total cdp entries displayed : 1

接入:

2918-1#show mac address-table dynamic address 408d.5c83.9d6f

2918-1#show mac address-table dynamic address 408d.5c83.9d6f
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
11 408d.5c83.9d6f DYNAMIC Fa0/37
Total Mac Addresses for this criterion: 1

最终确定IP地址10.0.1.200为2918-1的Fa0/37接口

赞(0) 打赏
转载请注明出处:Ros资源网 » Cisco(思科)交换机根据设备IP地址查询对应端口

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏