使用 show cap neighbor命令 交换机A 路由器A s1路由器B 交换机B SO 10.1.1.2 10.3.3.210.3.3.1 10.1.1.1 10.2.2.110.2.2.2 RouterA#sh cdp neighbors Capability Codes: R- Router, T Trans Bridge, B- Source Route Bridge s- Switch, H -Host, I -IGMP,r -Repeater Device工D Local Intrfce Holdtme Capability Platform Port ID RouterB Ser 148 2522 Ser 1 SwitchAo050BD855780 Eth o 167 1900 交换机A同时也显示其Mac地址交换机A同时也显示其Mac地址 使用show cdp neighbor 命令 RouterA#sh cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID RouterB Ser 0 148 R 2522 Ser 1 SwitchA0050BD855780 Eth 0 167 T S 1900 2 10.3.3.2 10.3.3.1 10.1.1.1 10.1.1.2 10.2.2.1 10.2.2.2 S0 S1 交换机A 路由器A 路由器B 交换机B