LLDP(Link Local Discovery Protocal)
LLDP是一種標準協議,功能等同思科的CDP,可以探知相鄰設備的設備訊息(版本、介面、平台、功能),思科設備可以用CDP來探知其他思科設備,但若要探知其他廠牌的設備,就需要使用LLDP(思科設備跟他牌設備都需要啟用LLDP)
範例如下:
#在Router1及Router2啟用LLDP:
Router1>enable
Router1#
Router1#configure terminal
Router1(config)#
Router1(config)#lldp run
Router1(config)#end
Router1#
Router2>enable
Router2#
Router2#configure terminal
Router2(config)#
Router2(config)#lldp run
Router2(config)#end
Router2#
#用指令show lldp查看lldp是否已經啟用:
Router1#show lldp
Global LLDP Information:
Status: ACTIVE
LLDP advertisements are sent every 30 seconds
LLDP hold time advertised is 120 seconds
LLDP interface reinitialisation delay is 2 seconds
Router2#show lldp
Global LLDP Information:
Status: ACTIVE
LLDP advertisements are sent every 30 seconds
LLDP hold time advertised is 120 seconds
LLDP interface reinitialisation delay is 2 seconds
#查看LLDP資訊:
Router1#show lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
Router2 Gig0/0 120 R Gig0/0
Total entries displayed: 1
Router2#show lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
Router1 Gig0/0 120 R Gig0/0
Total entries displayed: 1
Router1#show lldp neighbors detail
------------------------------------------------
Chassis id: 0005.5E3E.9101
Port id: Gig0/0
Port Description: GigabitEthernet0/0
System Name: Router2
System Description:
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thurs 5-Jan-12 15:41 by pt_team
Time remaining: 90 seconds
System Capabilities: R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1
Router2#show lldp neighbors detail
------------------------------------------------
Chassis id: 0005.5E32.5201
Port id: Gig0/0
Port Description: GigabitEthernet0/0
System Name: Router1
System Description:
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thurs 5-Jan-12 15:41 by pt_team
Time remaining: 90 seconds
System Capabilities: R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(FD)
1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1
Total entries displayed: 1
沒有留言:
張貼留言