读书人

根据IP查找在交换机上的端口

发布时间: 2008-12-16 14:22:51 作者: liuhuituzi

show arp | in ip找到MAC地址,

  然后show mac-address-table address MAC找到对应交换机端口,

  vlan1 必须管理DOWN 掉,否则netmaneger vlan2不通,无法远程管理交换机。

  0710-SCM4506-A>show cdp neighbors GigabitEthernet3/15 查找端口上所接的设备

  Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

  Device ID    Local Intrfce   Holdtme  Capability Platform Port ID

  254150      Gig 3/15      166     S I   WS-C2950G-Gig 0/2

  Cisco2924#show mac-address-table dynamic address 0009.6b8c.64ec

  Non-static Address Table:

  Destination Address Address Type VLAN Destination Port

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

  0009.6b8c.64ec Dynamic 2 FastEthernet0/2

  Cisco2924#show mac-address-table dynamic interface f0/2

  Non-static Address Table:

  Destination Address Address Type VLAN Destination Port

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

  0009.6b8c.64ec Dynamic 2 FastEthernet0/2

  通过以上命令可知,MAC地址0009.6b8c.64ec 与Cisco 2924交换机相连,且是该端口上唯一活动的MAC地址,所以IP为10.10.1.250的机器应该就连接在这个端口上。 3COME文档编辑

3COME考试频道为您精心整理,希望对您有所帮助,更多信息在http://www.reader8.net/exam/

读书人网 >复习指导

热点推荐