R1# show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - RepeaterDevice ID Local Intrfce Holdtme Capability Platform Port IDR2 Eth 0/1 176 R S I 3640 Eth 0/2R3 Fas 1/0 142 R S I 3560 Fas 0/0show cdp neighbors 就很清楚了由显示结果可以看出,R1的e0/1连接R2的e0/2,R2是台3640路由器。 R1的f1/0连接R3的f0/0,R3是台3560交换机。