CDP and LLDP Lab
CDP and LLDP Lab
Topology
SW1:
enable
conf t
host SW1
no banner motd
no banner login
no banner exec
no banner incoming
line vty 0 15
password cisco
login
line con 0
logging synchronous
exit
int gig 0/0
shutdown
exit
no ip domain-lookup
end
copy run star
R1:
enable
conf t
host R1
no banner motd
no banner login
no banner exec
no banner incoming
CDP and LLDP Lab - Copyright 2024, Kevin Wallace Training, LLC
line vty 0 15
password cisco
login
exec-timeout 0 0
line con 0
logging synchronous
exit
no ip domain-lookup
lldp run
int gig 0/1
ip address 10.1.1.1 255.255.255.0
no shutdown
int gig 0/0
no shutdown
end
copy run star
Lab Tasks
● Identify neighboring devices by using the “show cdp neighbors” command on SW1.
● Find detailed information about R1 by using CDP.
● Enable LLDP on SW1.
● Identify SW1 by using the “show lldp neighbors” command on R1.
● Keep Gig 0/0 on R1 from receiving and transmitting LLDP information.
● Identify tlv (type length value) information that we can turn on or off on R1.
● Find detailed information about SW1 by using LLDP.
Solution
Step 1: Identify neighboring devices by using the “show cdp neighbors” command on SW1.
CDP and LLDP Lab - Copyright 2024, Kevin Wallace Training, LLC
Step 2: Find detailed information about R1 by using CDP.
Version :
Cisco IOS Software, IOSv Software (VIOS-ADVENTERPRISEK9-M), Version
15.9(3)M4, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2021 by Cisco Systems, Inc.
Compiled Wed 04-Aug-21 08:13 by mcpre
advertisement version: 2
Management address(es):
IP address: 10.1.1.1
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#lldp run
SW1(config)#exit
Step 4: Identify SW1 by using the “show lldp neighbors” command on R1.
CDP and LLDP Lab - Copyright 2024, Kevin Wallace Training, LLC
Step 5: Keep Gig 0/0 on R1 from receiving and transmitting LLDP information.
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int gig 0/0
R1(config-if)#no lldp transmit
R1(config-if)#no lldp receive
R1(config-if)#end
Step 6: Identify tlv (type length value) information that we can turn on or off on R1.
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#no lldp ?
holdtime Specify the holdtime (in sec) to be sent in packets
reinit Delay (in sec) for LLDP initialization on any interface
run Enable LLDP
timer Specify the rate at which LLDP packets are sent (in sec)
tlv-select Selection of LLDP TLVs to send
R1(config)#end
System Description:
Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M),
Experimental Version 15.2(20200924:215240) [sweickge-sep24-2020-l2iol-release
135]
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Tue 29-Sep-20 11:53 by sweickge
CDP and LLDP Lab - Copyright 2024, Kevin Wallace Training, LLC
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised
CDP and LLDP Lab - Copyright 2024, Kevin Wallace Training, LLC