Cisco IP/MAC/Port
1. IP → Port ?
1.1 10.10.30.254(CoreSwitch):
show ip arp | include 10.10.122.29
Internet 10.10.122.29 96 9890.96d0.0c0a ARPA Vlan122
show mac address-table address 9890.96d0.0c0a
Displaying entries from DFC switch [1] linecard [1]:
vlan mac address type learn age ports
----+----+---------------+-------+-----+----------+-----------------------------
122 9890.96d0.0c0a dynamic Yes 90 Po36
show cdp neighbors Po36
Device ID Local Intrfce Holdtme Capability Platform Port ID
CIM-1B4F-R5-C2960XR-01
Gig 2/1/36 130 S I WS-C2960X Gig 1/0/52
CIM-1B4F-R5-C2960XR-01
Gig 1/1/36 130 S I WS-C2960X Gig 1/0/51
show cdp entry * protocol
Protocol information for CIM-1B4F-R5-C2960XR-01 :
IP address: 10.10.30.113
Protocol information for CIM-1B4F-R5-C2960XR-01 :
IP address: 10.10.30.113
1.2 10.10.30.113:
show mac address-table address 9890.96d0.0c0a
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
122 9890.96d0.0c0a DYNAMIC Gi1/0/29
Total Mac Addresses for this criterion: 1
show cdp neighbors Gi1/0/29
Notes: None, proving that the mac-address is the port Gi1/0/29 from the switch.
2. MAC→IP ?
10.10.30.254(CoreSwitch):
show ip arp | include 9890.96d0.0c0a
Internet 10.10.122.29 136 9890.96d0.0c0a ARPA Vlan122
3. MAC→Port ?
10.10.30.254(CoreSwitch):
show mac address-table | include 9890.96d0.0c0a
122 9890.96d0.0c0a dynamic Yes 80 Po36

浙公网安备 33010602011771号