CDP/LLDP实验

sw1>ena
sw1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID
sw2 Eth 0/0 171 R S I Linux Uni Eth 0/1
sw3 Eth 0/1 171 R S I Linux Uni Eth 0/1
sw1#show lldp me
sw1#show lldp ne
sw1#show lldp neighbors
% LLDP is not enabled
sw1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sw1(config)#lldp r
sw1(config)#lldp ru
sw1(config)#lldp run
sw1(config)#
sw1#show
*Apr 22 15:42:56.842: %SYS-5-CONFIG_I: Configured from console by console
sw1#show lldp ne
sw1#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
Total entries displayed: 0
sw1#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
Total entries displayed: 0
sw1#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
Total entries displayed: 0
sw1#wr
Building configuration...
Compressed configuration from 772 bytes to 541 bytes[OK]
sw1#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
sw2 Et0/0 120 R Et0/1
Total entries displayed: 1
sw1#show lldp neighbors d
sw1#show lldp neighbors detail
Chassis id: aabb.cc00.3000
Port id: Et0/1
Port Description: Ethernet0/1
System Name: sw3
System Description:
Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experime ntal Version 15.1(20130726:213425) [dstivers-july26-2013-team_track 104]
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Fri 26-Jul-13 15:56 by dstivers
Time remaining: 115 seconds
System Capabilities: B,R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised
Chassis id: aabb.cc00.2000
Port id: Et0/1
Port Description: Ethernet0/1
System Name: sw2
System Description:
Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experime ntal Version 15.1(20130726:213425) [dstivers-july26-2013-team_track 104]
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Fri 26-Jul-13 15:56 by dstivers
Time remaining: 113 seconds
System Capabilities: B,R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised
Total entries displayed: 2