查找对应的ip地址的mac地址
#show arp | include 172.16.33.31
Internet 172.16.33.31 0 000c.2980.aaaa ARPA Vlan2
查找mac地址所在网口
#show mac address-table | include 000c.2980.ad26
2 000c.2980.aaaa DYNAMIC Gi0/5
查找网口级联的交换机
#show cdp neighbors gi0/5
SW5 Gig 0/5 178 S I WS-C2918- Gig 0/1
登录级联交换机
#show mac address-table | include 000c.2980.aaaa
2 000c.2980.aaaa DYNAMIC Fa0/36
查找对应网口的mac地址
show mac address-table | include 0/36
2 000c.2922.bbbb DYNAMIC Fa0/36
2 000c.2980.aaaa DYNAMIC Fa0/36
在核心交换根据mac地址找到ip地址
#show arp | include 000c.2922.998b
Internet 172.16.33.219 8 000c.2922.bbbb ARPA Vlan2
根据对应的ip地址查找对应的操作系统,找到宿主机
nmap -O 172.16.33.219
#show arp | include 172.16.33.31
Internet 172.16.33.31 0 000c.2980.aaaa ARPA Vlan2
查找mac地址所在网口
#show mac address-table | include 000c.2980.ad26
2 000c.2980.aaaa DYNAMIC Gi0/5
查找网口级联的交换机
#show cdp neighbors gi0/5
SW5 Gig 0/5 178 S I WS-C2918- Gig 0/1
登录级联交换机
#show mac address-table | include 000c.2980.aaaa
2 000c.2980.aaaa DYNAMIC Fa0/36
查找对应网口的mac地址
show mac address-table | include 0/36
2 000c.2922.bbbb DYNAMIC Fa0/36
2 000c.2980.aaaa DYNAMIC Fa0/36
在核心交换根据mac地址找到ip地址
#show arp | include 000c.2922.998b
Internet 172.16.33.219 8 000c.2922.bbbb ARPA Vlan2
根据对应的ip地址查找对应的操作系统,找到宿主机
nmap -O 172.16.33.219