思科配置LLDP
https://upload-images.jianshu.io/upload_images/24325874-c5dbbfe58bc41f82.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
思科:R1、R2配置地址。使两端获取直连路由。R1-IP地址 12.1.1.1 24位
https://upload-images.jianshu.io/upload_images/24325874-9c4e1f83abe16718.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
R2-IP地址 12.1.1.2 24位
https://upload-images.jianshu.io/upload_images/24325874-8c587eddefcc5e15.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
LLDP定义:有两种启用模式,全局模式,接口模式,全局高于接口,接口启用,必须先启用全局。
https://upload-images.jianshu.io/upload_images/24325874-0f74e191485598bf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
R1(config-if)#lldp run全局启用 R1(config)#int ethernet 0/0进入E0/0接口R1(config-if)#lldp transmit接口下 允许接收通告R1(config-if)#lldp receive接口下 允许发送通告
R2配置同R1
https://upload-images.jianshu.io/upload_images/24325874-d8231b86ba2f3bb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
R1#show lldp interface查看接口信息,哪些接口开启了LLDP?
https://upload-images.jianshu.io/upload_images/24325874-ce373f591036de4a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
上图图示:WAIT PORT OPER:接口没有被开启WAIT POR FRAME:接口已经开启,等待接受LLDP报文R1#show lldp neighbors查看lldp邻居表
https://upload-images.jianshu.io/upload_images/24325874-ee5ba4ed08d64135.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
上图发现,有一个R2的邻居,接下来咱们单独查看这个邻居的详细信息。
https://upload-images.jianshu.io/upload_images/24325874-a66478353cfcb855.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
里面包含了邻居的系统信息,版本,接收邻居数据端口,邻居发送端口,邻居地址。连接外网的出接口不要使用CDP/LLDP,信息容易透漏,建议只在内网。
页:
[1]