1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > lldp协议代码阅读_LLDP 链路层发现协议

lldp协议代码阅读_LLDP 链路层发现协议

时间:2018-09-04 09:02:11

相关推荐

lldp协议代码阅读_LLDP 链路层发现协议

1.1 基本功能

通过配置LLDP,在对端查看链路发现信息

1.1.1 拓扑

1.1.2 配置

1)在208的ge1端口配置LLDP功能,设置各项参数;

xNet#con t

xNet(config)#interface ge1

xNet(config-if)#set lldp enable txrx

xNet(config-if)#set lldp chassis-id-tlv mac-address

xNet(config-if)#set lldp management-address-tlv ip-address

xNet(config-if)#set lldp msg-tx-hold 10

xNet(config-if)#set lldp timer tx-delay 1

xNet(config-if)#set lldp timer msg-tx-interval 5

xNet(config-if)#set lldp too-many-neighbors limit 65535 discard received-info timer 1

xNet(config-if)#lldp tlv chassis-id ieee-8021-org-specific ieee-8023-org-specific management-address port-description port-id system-capabilities system-description system-name ttl

xNet(config-if)#exit

xNet(config)#lldp ip address 10.204.253.208

xNet(config)#set lldp system-name xNetBox

xNet(config)#set lldp system-description Weil_xNetBox

xNet(config)#end

xNet#

使用show running-config查看配置:

2)在207的ge1端口打开LLDP接收

xNet#configure terminal

xNet(config)#interface ge1

xNet(config-if)#set lldp enable rxonly

xNet(config-if)#end

xNet#

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。