microsoftlldp协议.docx
《microsoftlldp协议.docx》由会员分享,可在线阅读,更多相关《microsoftlldp协议.docx(9页珍藏版)》请在冰豆网上搜索。
microsoftlldp协议
竭诚为您提供优质文档/双击可除
microsoft,lldp协议
篇一:
lldp协议配置指导
lldp协议交换机配置指导
802.lab链接层发现协议(linklayerdiscoveryprotocol),将能够使企业网络的故障查找变得更加容易,并加强网络管理工具在多厂商环境中发现和保持精确网络拓扑结构的能力。
该协议可望在下月成为一项正式的标准。
lldp是一种邻近发现协议。
它为以太网网络设备,如交换机、路由器和无线局域网接入点定义了一种标准的方法,使其可以向网络中其他节点公告自身的存在,并保存各个邻近设备的发现信息。
例如设备配置和设备识别等详细信息都可以用该协议进行公告。
具体来说,lldp定义了一个通用公告信息集、一个传输公告的协议和一种用来存储所收到的公告信息的方法。
要公告自身信息的设备可以将多条公告信息放在一个局域网数据包内传输,传输的形式为类型长度值(tlV)域。
所有具备lldp能力的设备必须支持设备机身id和端口id公告,但根据预计,多数设备还要支持系统名称、系统描述和系统能力公告。
系统名称和系统描述公告可以为收集网络流量数据提供非常有用的信息。
系统描述公告可以包含诸如公告设备的全名和系统的硬件类型及软件操作系统的版本信息等数据。
lldp信息是定期传输的,并且只在一定的期限内保留。
ieee已经定义了一个建议的传输频率,即每30秒传输一次。
lldp设备在收到邻近网络设备发出的lldp信息后,将把lldp信息存储在一个ieee定义的简单网络管理协议(snmp)管理信息库(mib)中,并且在一定的时限内保持有效。
定义该时限的lldp“生存时间”(ttl)值就包含在所收到的数据包内。
该协议使网络管理系统能够精确地发现和模拟物理网络拓扑结构。
由于lldp设备发送和接收公告,这些设备将会把自己发现的邻近设备信息存储下来。
公告数据,如邻近设备的管理地址、设备类型和端口号,都有助于确定邻近设备到底属于什么类型,以及它们通过哪些端口实现互联。
configuringlldp,lldp-med,andwiredlocationservice
defaultlldpconfiguration,page27-4
configurationguidelines,page27-5
enablinglldp,page27-5
configuringlldpcharacteristics,page27-6
configuringlldp-medtlVs,page27-7
configuringnetwork-policytlV,page27-7
configuringlocationtlVandwiredlocationservice,page27-9
defaultlldpconfiguration
table27-1defaultlldp
configurationFeature
lldpglobalstate
lldpholdtime(beforediscarding)
lldptimer(packetupdatefrequency)
lldpreinitializationdelay
lldptlv-selectdefaultsettingdisabled120seconds30seconds2secondsdisabledtosendandreceivea
lltlVs
thisexampleshowshowtogloballyenablelldp.
switch#configureterminal
switch(config)#lldprun
switch(config)#end
thisexampleshowshowtoenablelldponaninterface.
switch#configureterminal
switch(config)#interfacegigabitethernet0/1
switch(config-if)#lldptransmit
switch(config-if)#lldpreceive
switch(config-if)#end
cisco交换机配置
configureciscocatalystswitches
thissectiondescribestheconfigurationforciscocatalystswitchesasshowninFigure1
usingthecommandlineinterface(cli).sincethesyntaxforconfiguringeithercatalyst4503and3750switchesisthesame,onlytheconfigurationforthe3750is
shown.
1.logintotheciscocatalystswitchandenterenablemodeusingappropriatecredential.
2.enterintoconfigurationmodebytyping“configureterminal”.
mentsarehighlightedinbluebetween#---#signs.the“switchportvoicevlan10”commandwillcausethelldp-medtoadvertiseVlan10initsnetworkpolicytlVtotheavayaiptelephone.
#----------configureinterfacefa1/0/1-------------------#
#----------asatrunkportforVlan10and11------------#
interfaceFastethernet1/0/1
switchporttrunkencapsulationdot1q
switchporttrunkallowedvlan10,11
switchportmodetrunk
!
#----------globallyenablelldp--------------------------#
lldprun
!
#----------configureinterfacefa1/0/5-------------------#
#----------withaccessVlan11and-----------------------#
#----------withvoiceVlan10----------------------------#
interfaceFastethernet1/0/5
switchportaccessvlan11
switchportmodeaccess
switchportvoicevlan10
spanning-treeportfast
!
h3c交换机配置
配置步骤:
1.配置switcha
#全局使能lldp功能。
system-view
[switcha]lldpenable
#分别在gigabitethernet1/0/1和gigabitethernet1/0/2端口使能lldp功能并配置其工作模式为rx。
[switcha]interfacegigabitethernet1/0/1
[switcha-gigabitethernet1/0/1]lldpenable
[switcha-gigabitethernet1/0/1]lldpadmin-statusrx
[switcha-gigabitethernet1/0/1]quit
[switcha]interfacegigabitethernet1/0/2
[switcha-gigabitethernet1/0/2]lldpenable
[switcha-gigabitethernet1/0/2]lldpadmin-statusrx
[switcha-gigabitethernet1/0/2]quit
2.配置switchb
#全局使能lldp功能。
system-view
[switchb]lldpenable
#在gigabitethernet1/0/1使能lldp功能并配置其工作模式为tx。
[switchb]interfacegigabitethernet1/0/1
[switchb-gigabitethernet1/0/1]lldpenable
[switchb-gigabitethernet1/0/1]lldpadmin-statustx
[switchb-gigabitethernet1/0/1]quit
3.验证配置结果
#在switcha上显示全局和端口的状态信息。
[switcha]displaylldpstatus
globalstatusoflldp:
enable
thecurrentnumberoflldpneighbors:
2
thecurrentnumberofcdpneighbors:
0
lldpneighborinformationlastchangedtime:
0days,0hours,4minutes,40secondstransmitinterval:
30s
holdmultiplier:
4
Reinitdelay:
2s
transmitdelay:
2s
trapinterval:
5s
Faststarttimes:
3
port1[gigabitethernet1/0/1]:
portstatusoflldp:
enable
adminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
1numberofmedneighbors:
1numberofcdpneighbors:
0numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
0port2[gigabitethernet1/0/2]:
portstatusoflldp:
enableadminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
1numberofmedneighbors:
0numberofcdpneighbors:
0numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
3#将switcha和switchb上的链路断掉。
#在switcha上显示全局和端口的状态信息。
[switcha]displaylldpstatus
globalstatusoflldp:
enable
thecurrentnumberoflldpneighbors:
1thecurrentnumberofcdpneighbors:
0
篇二:
lldp存在意义及场景
一、lldp概述
全称是linklayerdiscoveryprotocol,是一种链路层发现协议。
它提供了一种标准的链路层发现方式,可以将本端设备的一些信息组织并封装成报
文,并以一定的规则机制来和邻居设备交互这些信息。
二、lldp产生背景
目前,由于网络设备生产厂商众多,造成网络设备的种类繁多。
而各个厂商的网络
设备的配置及其他信息各不相同,为了使不同厂商的设备能够在网络中相互发现并交互各自的系统及配置信息,需要有一个标准的信息交流平台。
lldp协议就是在这样的背景下产生的。
四、lldp的存在意义
现在存在很多网络管理系统,该系统可以直接获取网络的拓扑、各设备描述等有用
信息。
当然,根据该系统,也就很方便地进行查询及判断链路的通信状况等工作,而网络管理系统是以lldp协议为支撑,其所获取的数据也是有lldp收集、组织并提供的。
由此可见其存在意义。
五、报文组织方式
该协议把设备本端的诸如管理地址、设备能力、设备标识、接口标识等信息组织成
不同的tlV,每个信息组织成一个tlV(type/length/Value,类型/长度/值),多个tlV构成lldpdu(linklayerdiscoveryprotocoldataunit,链路层发现协议数据单元)。
六、应用场景
(1)整体协议
①当网络中存在不同厂商生产的网络设备时,可以使每个网络设备都运行并
开启lldp协议;
②当存在网络管理系统,并为了更方便地获得网络的拓扑信息;
③当网络链路出现故障时,更方便快捷地获得链路的通信状况,根据链路状
况可以迅速地找到链路故障所在,省去人工排查的麻烦及效率低下。
(2)配置tlV
在该协议命令行配置中有关于可选tlV的配置,可以实现自主决定和邻居交
互哪些tlV信息。
而tlV按其应用不同大致可分为四类,分别为basic、
802.1、802.3、med。
①basictlV中存在四个lldp协议必选的tlV,其余tlV也是比较基本
的信息,如portdescription、portname等。
用户可以根据自己想要获取
的不同信息来选择配置。
②802.1tlV
若网络中划分了Vlan,并要获取Vlan的一些信息时需要配置添加。
③802.3tlV
若要获取端口的单双工状态、供电能力、是否支持链路聚合等信息时需
要配置相应的tlV。
④medtlV
lldp-medtlV多用于Voip,即在以太网上部署了语音设备,而要获
取这些语音设备的信息时就要配置该类中的相应tlV。
(3)配置兼容cdp
cdp是cisco特有的链路发现协议。
当网络中有些网络设备(如cisco的某些交换机)只运行了cdp协议时,可
以通过运行lldp并配置其他网络设备兼容cdp协议。
若配置正常,则运行lldp协议的交换机可以与运行cdp协议的交换机正常通信。
(4)为什么选择使用lldp而没有选择使用其他链路发现协议(如:
cdp)
因为cdp协议是cisco内部网络发现协议,只能识别cisco自己的交换机,而不同厂商的交换机众多,网络的构架与升级可能不会使用某一厂商的交换机,所以选择标准化且能兼容cdp的平台---lldp。
并且在功能上也没有lldp强大,如管理地址,tlV的种类,端口的状态等等
篇三:
lldp典型配置指导
目录
第1章lldp典型配置指导...
..
..
1.2.1组网图..
..
..
..
..
..
第1章lldp典型配置指导
简介
lldp(linklayerdiscoveryprotocol,链路层发现协议)是链路层协议,它将本地设备的信息组织成tlV(type/length/Value,类型/长度/值)封装在lldpdu(linklayerdiscoveryprotocoldataunit,链路层发现协议数据单元)中发送给直连的邻居,同时也把从邻居接收的lldpdu以标准mib(managementinformationbase,管理信息库)的形式保存起来。
通过lldp,设备可以保存和管理自己以及直连邻居设备的信息,供网络管理系统查询和判断链路的通信状况。
典型配置指导
图1-1lldp典型配置举例图
nms通过以太网与switcha相连,switcha分别通过
gigabitethernet1/0/1、gigabitethernet1/0/2与med设备、switchb相连。
在switcha和switchb的相应接口配置lldp功能,使得nms可以对
switcha链路的通信情况进行判断。
表1-1配置适用的产品与软硬件版本关系
(1)配置switcha
#进入系统视图。
system-view
#全局使能lldp功能。
[switcha]lldpenable
#分别在gigabitethernet1/0/1和gigabitethernet1/0/2接口使能lldp功能并配置其工作模式为rx。
[switcha]interfacegigabitethernet1/0/1
[switcha-gigabitethernet1/0/1]lldpenable
[switcha-gigabitethernet1/0/1]lldpadmin-statusrx
[switcha-gigabitethernet1/0/1]quit
[switcha]interfacegigabitethernet1/0/2
[switcha-gigabitethernet1/0/2]lldpenable
[switcha-gigabitethernet1/0/2]lldpadmin-statusrx[switcha-gigabitethernet1/0/2]quit
(2)配置switchb
#进入系统视图。
system-view
#全局使能lldp功能。
[switchb]lldpenable
#在gigabitethernet1/0/1使能lldp功能并配置其工作模式为tx。
[switchb]interfacegigabitethernet1/0/1
[switchb-gigabitethernet1/0/1]lldpenable
[switchb-gigabitethernet1/0/1]lldpadmin-statustx
(3)验证配置结果
#在switcha上显示全局和接口的状态信息。
displaylldpstatus
globalstatusoflldp:
enable
thecurrentnumberofneighbors:
2
neighborinformationlastchangedtime:
0days,0hours,4minutes,40secondstransmitinterval:
30sholdmultiplier:
4Reinitdelay:
2stransmitdelay:
2strapinterval:
5sFaststarttimes:
3port0[gigabitethernet1/0/1]:
portstatusoflldp:
enableadminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
1numberofmedneighbors:
1numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
0port1[gigabitethernet1/0/2]:
portstatusoflldp:
enableadminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
1numberofmedneighbors:
0numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
3
(其他端口的显示信息略)
#缺省情况下,telent终端信息中心屏幕开关处于关闭状态。
欲在nms端看到lldp状态变化产生的日志信息,需打开屏幕开关。
terminalmonitor
#将switcha和switchb上的链路断掉,switcha上会相继输出如下日志信息,switchb与此类似(此信息只有在终端屏幕开关打开的情况下才能看到)。
%nov2111:
38:
42:
8620xxh3ciFnet/4/linkupdown:
gigabitethernet1/0/2:
linkstatusisdown
%nov2111:
40:
26:
84620xxh3clldp/2/ageoutRem:
portgigabitethernet1/0/2(ifindex9437201):
neighboragedout,chassisid:
000f-e272-8351,portid:
gigabitethernet1/0/1.
#在switcha上显示全局和接口的状态信息。
displaylldpstatusglobalstatusoflldp:
enablethecurrentnumberofneighbors:
1
neighborinformationlastchangedtime:
0days,0hours,5minutes,20secondstransmitinterval:
30sholdmultiplier:
4Reinitdelay:
2stransmitdelay:
2strapinterval:
5sFaststarttimes:
3port0[gigabitethernet1/0/1]:
portstatusoflldp:
enableadminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
1numberofmedneighbors:
1numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
5port1[gigabitethernet1/0/2]:
portstatusoflldp:
enableadminstatus:
Rx_onlytrapflag:
noRolltime:
0snumberofneighbors:
0numberofmedneighbors:
0numberofsentoptionaltlV:
0numberofreceivedunknowntlV:
0
(其他端口的显示信息略)
switcha上的配置#interfacegigabitethernet1/0/1lldpadmin-statusrx#interfacegigabitethernet1/0/2
lldpadmin-statusrx