LLDP協(xié)議配置指導(dǎo)_第1頁
LLDP協(xié)議配置指導(dǎo)_第2頁
LLDP協(xié)議配置指導(dǎo)_第3頁
LLDP協(xié)議配置指導(dǎo)_第4頁
LLDP協(xié)議配置指導(dǎo)_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、lldp協(xié)議交換機(jī)配置指導(dǎo)802.1ab鏈接層發(fā)現(xiàn)協(xié)議(link layer discovery protocol),將能夠使企業(yè)網(wǎng)絡(luò)的故障查找變得更加容易, 并加強(qiáng)網(wǎng)絡(luò)管理工具在多廠商壞境中發(fā)現(xiàn)和保持精確網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)的能力。該協(xié)議可望在下月成為一項(xiàng)正 式的標(biāo)準(zhǔn)。lldp是一種鄰近發(fā)現(xiàn)協(xié)議。它為以太網(wǎng)網(wǎng)絡(luò)設(shè)備,如交換機(jī)、路由器和無線局域網(wǎng)接入點(diǎn)定義了一種 標(biāo)準(zhǔn)的方法,使其可以向網(wǎng)絡(luò)中其他節(jié)點(diǎn)公告口身的存在,并保存各個(gè)鄰近設(shè)備的發(fā)現(xiàn)信息。例如設(shè)備配 置和設(shè)備識(shí)別等詳細(xì)信息都可以用該協(xié)議進(jìn)行公告。具體來說,lldp定義了一個(gè)通用公告信息集、一個(gè)傳輸公告的協(xié)議和一種用來存儲(chǔ)所收到的公告信息 的方法。

2、要公告自身信息的設(shè)備可以將多條公告信息放在一個(gè)局域網(wǎng)數(shù)據(jù)包內(nèi)傳輸,傳輸?shù)男问綖轭愋烷L 度值(tlv)域。所冇具備lldp能力的設(shè)備必須支持設(shè)備機(jī)身id和端口 id公告,但根據(jù)預(yù)計(jì),多數(shù)設(shè)備還耍支持系統(tǒng) 名稱、系統(tǒng)描述和系統(tǒng)能力公告。系統(tǒng)名稱和系統(tǒng)描述公告可以為收集網(wǎng)絡(luò)流量數(shù)據(jù)提供非常有用的信息。 系統(tǒng)描述公告可以包含諸如公告設(shè)備的全名和系統(tǒng)的硬件類型及軟件操作系統(tǒng)的版木信息等數(shù)據(jù)。lldp信息是定期傳輸?shù)?,并且只在一定的期限?nèi)保ko ieee已經(jīng)定義了一個(gè)建議的傳輸頻率,即每30 秒傳輸一次。lldp設(shè)備在收到鄰近網(wǎng)絡(luò)設(shè)備發(fā)出的lldp信息后,將把lldp信息存儲(chǔ)在一個(gè)ieee定義 的簡(jiǎn)單網(wǎng)絡(luò)

3、管理協(xié)議(snmp)管理信息庫(mib)中,并在一定的時(shí)限內(nèi)保持冇效。定義該時(shí)限的lldp“生 存時(shí)間” (ttl)值就包含在所收到的數(shù)據(jù)包內(nèi)。該協(xié)議使網(wǎng)絡(luò)管理系統(tǒng)能夠精確地發(fā)現(xiàn)和模擬物理網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)。由于lldp設(shè)備發(fā)送和接收公告,這 些設(shè)備將會(huì)把自己發(fā)現(xiàn)的鄰近設(shè)備信息存儲(chǔ)下來。公告數(shù)據(jù),如鄰近設(shè)備的管理地址、設(shè)備類型和端口號(hào), 都冇助于確定鄰近設(shè)備到底屬于什么類型,以及它們通過哪些端口實(shí)現(xiàn)互聯(lián)。configuring lldp, lldp-med, and wired location servicedefault lldp configuration, page 27-4configur

4、ation guidelines, page 27-5enabling lldp, page 27-5configuring lldp characteristics, page 27-6configuring lldp-med tlvs, page 27-7configuring network-policy tlv, page 27-7configuring location tlv and wired location service, page 27-9default lldp configurationtable 27-idefault lldpdefault settingconf

5、igura tionfea tur elldp global statedisabledlldp holdtime (before discarding)120 secondslldp timer (packet update frequency)30 secondslldp reinitialization delay2 secondslldp tlv-selectdisabled to send and receive al 1 tlvsthis example shows how to globally enable lldp.switch# configure terminalswit

6、ch(config)# 1ldp runswitch (config)# endthi s example shows how to enable lldp on an interface.switch# configure terminalswitch(config)# interface gigabitetherneto/1switch(config-if)# lldp transmitswitch (config-if)# lldp receiveswitch(config-if)# endcisco交換機(jī)配置configure cisco catalyst switchesthis s

7、ection describes the configuration for cisco catalyst switches as shown in figure 1using the command line interface (cli). since the syntax for configuring either catalyst 4503 and 3750 switches is the same, only the configuration for the 3750 isshow n.1. log into the cisco catalyst switch and enter

8、 enable mode using appropriate crecle nti al.2 enter into configuration mode by typing "configure terminal".3. be 1ow is the configuration for the switch comments are highlighted in blue between # signs the uswitchport voice vlan 10” command will cause thelldp-med to advertise vlan 10 in i

9、ts network policy tlv to the avaya tptel ephone.# configure interface fal/0/1 # as a trunk port for vlan 10 and 11#interface fastethernetl/0/1switchport trunk encapsulation dotlqswitchport trunk al lowed vlan 10, 11switchport mode trunki# globally enable lldp#lldp runi# configure interfacefal/0/5 #

10、with access vlan 11and# with voice vlan 10#interface fastethernet 1/0/5switchport access vlan 11switchport mode accessswitchport voice vian 10spanning-tree portfastih3c交換機(jī)配置配置步驟:1.配置 switch a#全局使能lldp功能。<switcha> svstem-viewswitcha 1ldp enable# 分別 在 gigabitethernetl/0/1 和 gigabitethernet 1/0/2

11、 端口使 能 lldp 功能并配置其 工作模式為rxoswitcha interface gigabitethernet 1/0/1switcha-gigabitethernet1/0/1 lldp enableswitcha-gigabitethcrnet 1/0/1 lldp admin-status rxswitcha-gigabitethernet1/0/1 quitswitcha interface gigabitethernet1/0/2switcha-gigabitethernet1/0/2 lldp enableswitcha-gigabitethernet1/0/2 lldp

12、 admin-status rx switcha-gigabitethernet1/0/2 quit2. 配置 switch b#全局使能i丄dp功能。<swi tchb> system-viewswitchb 11 dp enable#在gigabitethernet 1/0/1使能lldp功能并配置其工作模式為tx。switchb interface gigabitethernot 1/0/1switchb-gigabitethernet1/0/1 lldp enableswi tchb-gigabitethernet 1/0/1 1ldp admin-status txswi

13、tchb-gigabi tethernet1/0/1 quit3. 驗(yàn)證配置結(jié)果#在switch a上顯示全局和端口的狀態(tài)信息。switcha display lldp statusglobal status of lldp : enablethe current number of lldp neighbors : 2the current number of cdp neighbors : 0lldp neighbor information last changcd time : 0 days, 0 hours, 4 minutes, 40 secondstransmit interva

14、l: 30shold multiplier: 4reinit delay: 2stransmit delav: 2strap interval: 5sfast start times: 3port 1 gigabitethernet1/0/1:enableport status of lldpadmin status:rx onlytrap flag:norol1 time:osnumber of neighbors:1number of med neighbors:1number of cdp neighbors:0number of sent optional tlv:0number of

15、 received unknown tlv:0port 2 gigabi tethernet1/0/2:port status of lldp:enableadmin status:rx_0nlytrap flag:norol1 time:osnumber of neighbors:1number of med neighbors:0number of cdp neighbors:0number of sent optional tlv:0number of received unknown tlv:3#將switch a和switch b上的鏈路斷掉。#在switch a上顯示全局和端口的狀

16、態(tài)信息。switcha display 1ldp statusglobal status of lldp : enablethe current number of lldp neighbors : 1the current number of cop neighbors : 0lldp neighbor information last changed time : 0 days, 0 hours, 5 minutes, 20 secondstransmi t interval:30shold multiplier:4reinit delay:2stransmit delay:2strap interval:5sfast start times:3port 1 gigabitethernet 1/0/1:port status of lldp:enableadmin status:rx_0nlytrap flag:noroll time:osnumber of neighbors:1number of med neighbors:1number of cdp neighbors:0number of sent optional tlv:0numb

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論