为了以后记得更好。。把学习的一些打出来一下。。
1.启用或者禁用CDP协议
Switch#
configure terminal
Switch(config)# [no]
cdp run
Switch#(config)#
end
Switch#
show cdp
2.在交换机和路由器接口启用或者禁用CDP服务
Switch#
configure terminal
Switch(config)# interface interface-id
Switch(config)# [no]
cdp enable
Switch#(config)#
end
Switch#
show cdp interface interface-id
3.配置CDP版本
Switch# configure terminal
Switch(config)# cdp timer seconds //设置CDP更新发送频率
Switch(config)# cdp holdtime seconds //设置保留其他设备发送信息的时间
Switch(config)# cdp advertise-v2 //设置采用版本2发送通告,该状态为默认值
Switch(config)# end
Switch# copy running-config startup-config
转载于:https://blog.51cto.com/bestwilling/187197