CISCO实验记录三:CDP邻居发现

1、CDP邻居发现

#interface gigabitEthernet 0/0/0 //启动端口 

#no shutdown

#show ip interface brief  //查看路由端口状态(设备二层连接情况)

GigabitEthernet0/0/0 unassigned YES manual up up

GigabitEthernet0/0/1 unassigned YES unset administratively down down

Vlan1 unassigned YES unset administratively down down

(其中,G0/0/0末尾处两个up表明本端和对端的端口都是up的)

#show cdp //查看cdp设置

#show cdp neighbors //查看CDP邻居

2、CDP邻居发现总结

CDP是基于二层的协议,所以只需要设备端口通过网线相连,并处于no shutdown状态(无需配置IP)即可通过CDP协议发现相邻设备,且能知道设备类型和型号。

不仅如此,还能通过CDP知道对端设备hostname、本端的端口名、对端的端口名

猜你喜欢

转载自www.cnblogs.com/cation/p/11351766.html