10.2.6 Packet Tracer - Use LLDP to Map a Network Answers
Topology
10.2.6 Packet Tracer - Use LLDP to Map a Network
Addressing Table
| Device | Interface | IP Address | Subnet Mask | Neighbor Interface - Connected Neighbor |
|---|---|---|---|---|
| Edge | G0/0 | 192.168.1.1 | 255.255.255.0 | G0/1 - S1 |
| S0/0/0 | 209.165.200.5 | 255.255.255.252 | S0/0/0 - ISP | |
| S1 | SVI | 192.168.1.2 | 255.255.255.0 | |
| RBO-Edge | G0/0 | 209.165.200.10 | 255.255.255.252 | G0/0 - ISP |
| G0/1 | 192.168.3.249 | 255.255.255.252 | G0/0 – RBO-Firewall | |
| RBO-Firewall | G0/0 | 192.168.3.250 | 255.255.255.252 | G0/1 – RBO-Edge |
| G0/1 | 192.168.4.129 | 255.255.255.128 | G0/1 – sw-rbo1 | |
| sw-rbo1 | SVI | 192.168.4.131 | 255.255.255.128 | |
| G0/1 | N/A | N/A | G0/1 - RBO-Firewall | |
| G0/2 | N/A | N/A | G0/2 - sw-rbo2 | |
| F0/24 | N/A | N/A | F0/24 – sw-rbo3 | |
| sw-rbo2 | SVI | 192.168.4.132 | 255.255.255.128 | |
| G0/1 | N/A | N/A | G0/1 – sw-rbo3 | |
| G0/2 | N/A | N/A | G0/2 – sw-rbo1 | |
| sw-rbo3 | SVI | 192.168.4.133 | 255.255.255.128 | LLDP not active |
| F0/24 | N/A | N/A | F0/24 – sw-rbo1 | |
| G0/1 | N/A | N/A | G0/1 – sw-rbo2 |
Objectives
Map a network using LLDP and SSH remote access.
Background / Scenario
A senior network administrator requires you to map the Remote Branch Office network and discover information about all of the devices in the network. You must record all of the network device names, IP addresses and subnet masks, and physical interfaces interconnecting the network devices.
To map the network, you will use SSH for remote access and the Link Layer Discovery Protocol (LLDP) to discover information about neighboring network devices. Because LLDP is a Layer 2 protocol, it can be used to discover information about devices that do not have Layer 3 connectivity. You will record the information that you gather to complete the Addressing Table and provide a topology diagram of the Remote Branch Office network.
You will need the IP address for the remote branch office, which is 209.165.200.10. The local and remote administrative usernames and passwords are:
Local Network
Username: admin01
Password: S3cre7P@55
Remote Branch Office Network
Username: RBOadmin
Password: S3cre7P@55
Instructions
Part 1: Use SSH to Remotely Access Network Devices
In Part 1, you will use the Admin-PC to remotely access the Edge gateway router. Next, from the Edge router you will SSH into the Remote RBO Office.
a. On the Admin-PC, open a command prompt.
b. SSH into the gateway router at 192.168.1.1 using the username admin01 and the password S3cre7P@55
Copy
PC> ssh -l admin01 192.168.1.1
Open
Password:
Edge#
Note: Notice that you are placed directly into privileged EXEC mode. This is because the admin01 user account is set to privilege level 15.
c. The Edge router was previously configured to use CDP. Switch S1 has already been configured to use LLDP. Issue the show cdp command to verify CDP is currently active. Disable CDP by issuing the following command:
Copy
Edge# show cdp
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Copy
Edge(config)# no cdp run
d. LLDP can be configured to both transmit and receive on a specific interface. Configure Edge so that it receives LLDP messages from S1 but does not send messages to S1 for security purposes. Enable LLDP.
Copy
Edge(config)# lldp run
Edge(config)# interface gigabitethernet 0/0
Edge(config-if)# no lldp transmit
e. Use the show lldp neighbors command to verify that Edge is receiving messages from S1.
Copy
Edge# 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
S1 Gig0/0 120 B Gig0/1
Total entries displayed: 1
f. Connect to S1 with SSH from Edge router using the admin01 credentials. Issue the show lldp neighbors command. Notice that S1 did not receive information from Edge.
Copy
Edge# ssh -l admin01 192.168.1.2
Password:
S1>
Copy
S1> 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
g. Exit from the connection with S1 to return to the Edge router CLI. Use the show ip interface brief and show interfaces commands to document the Edge router’s physical interfaces, IP addresses, and subnet masks in the Addressing Table.
Copy
S1> exit
Copy
Edge# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.1.1 YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM administratively down down
Serial0/0/0 209.165.200.5 YES NVRAM up up
Serial0/0/1 unassigned YES NVRAM administratively down down
Vlan1 unassigned YES unset administratively down down
Copy
Edge# show interfaces
GigabitEthernet0/0 is up, line protocol is up (connected)
Hardware is CN Gigabit Ethernet, address is 00e0.a3dd.7001 (bia 00e0.a3dd.7001)
Internet address is 192.168.1.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 100Mbps, link type is auto, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 43 bits/sec, 0 packets/sec
5 minute output rate 32 bits/sec, 0 packets/sec
236 packets input, 9569 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
115 packets output, 4709 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/1 is administratively down, line protocol is down (disabled)
Hardware is CN Gigabit Ethernet, address is 00e0.a3dd.7002 (bia 00e0.a3dd.7002)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half Duplex, 100Mbps, link type is auto, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial0/0/0 is up, line protocol is up (connected)
Hardware is HD64570
Internet address is 209.165.200.5/30
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
Serial0/0/1 is administratively down, line protocol is down (disabled)
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Vlan1 is administratively down, line protocol is down
Hardware is CPU Interface, address is 0060.70bd.dd13 (bia 0060.70bd.dd13)
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out
h. From your session with Edge router, connect with SSH to the Remote RBO Office at 209.165.200.10 with the username RBOadmin and the same password used for admin01 (S3cre7P@55).
Copy
Edge# ssh -l RBOadmin 209.165.200.10
Password:
RBO-Edge#
After connecting to the Remote RBO Office at 209.165.200.10 what piece of previously missing information can now be added to the Addressing Table above?
The RBO-Edge router hostname
Part 2: Use LLDP to Discover Neighboring Devices
You are now remotely connected to the RBO-Edge router. Using LLDP, begin looking for connected network devices.
a. Issue the show ip interface brief and show interfaces commands to document the RBO-Edge router’s network interfaces, IP addresses, and subnet masks. Add the missing information to the Addressing Table.
Copy
RBO-Edge# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 209.165.200.10 YES manual up up
GigabitEthernet0/1 192.168.3.249 YES manual up up
Serial0/0/0 unassigned YES unset administratively down down
Serial0/0/1 unassigned YES manual down down
Vlan1 unassigned YES unset administratively down down
Copy
RBO-Edge# show interfaces gigabitethernet 0/0
GigabitEthernet0/0 is up, line protocol is up (connected)
Hardware is CN Gigabit Ethernet, address is 0001.9660.0053 (bia 0001.9660.0053)
Internet address is 209.165.200.10/30
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :11/40 (size/max)
5 minute input rate 19 bits/sec, 0 packets/sec
5 minute output rate 13 bits/sec, 0 packets/sec
85 packets input, 3463 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
40 packets output, 1633 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
RBO-Edge# show interfaces gigabitethernet 0/1
GigabitEthernet0/1 is up, line protocol is up (connected)
Hardware is CN Gigabit Ethernet, address is 0001.9727.a463 (bia 0001.9727.a463)
Internet address is 192.168.3.249/30
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
b. Security best practice recommends only running LLDP when needed, so LLDP may need to be turned on. Use a show lldp command to test its status.
Copy
RBO-Edge# show lldp
% LLDP is not enabled
c. You need to turn on LLDP, but it is a good idea to only send LLDP information to internal network devices and not to external networks. Discover which interface is connected to the internet by issuing the command show ip interface brief. Enable the LLDP protocol and completely disable LLDP on the interface that is connected to the internet.
Copy
RBO-Edge(config)# lldp run
RBO-Edge(config)# interface gigabitethernet 0/0
RBO-Edge(config-if)# no lldp transmit
RBO-Edge(config-if)# no lldp receive
d. Issue a show lldp neighbors command to find any neighboring network devices.
Note: LLDP will only show connected devices that are also running LLDP.
Copy
RBO-Edge# 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
RBO-Firewall Gig0/1 120 R Gig0/0
Total entries displayed: 1
Is there a neighboring network device? What type of device is it? What is its name? On what interface is it connected? Is the device’s IP address listed? Record the information in the Addressing Table.
Yes. It is a router. Its name is RBO-Firewall and it is connected to the local interface G0/1 of RBO-Edge (Port ID G0/0 on RBO-Firewall). The IP address of the device is not listed.
e. Use the show ip route command to determine the address of the device that you found with the show lldp neighbors command. Based on the information provided about the local address in the routing table and the prefix length of the network use that information to determine the neighbor address.
Copy
RBO-Edge# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.248/30 is directly connected, GigabitEthernet0/1
L 192.168.3.249/32 is directly connected, GigabitEthernet0/1
209.165.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 209.165.200.8/30 is directly connected, GigabitEthernet0/0
L 209.165.200.10/32 is directly connected, GigabitEthernet0/0
S* 0.0.0.0/0 is directly connected, GigabitEthernet0/0
The connected route 192.168.3.248/30 is on G0/1 and the local address of RBO-Edge is 192.168.3.249. The only other usable address in this /30 network is 192.168.3.250, so this is the address of RBO-Firewall.
f. To find additional information from the neighboring device, use the show lldp neighbors detail command:
Copy
RBO-Edge# show lldp neighbors detail
------------------------------------------------
Chassis id: 00D0.D351.0601
Port id: Gig0/0
Port Description: GigabitEthernet0/0
System Name: RBO-Firewall
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)
Media Attachment Unit type: 10
Vlan ID: 1
Total entries displayed: 1
What other piece of potentially sensitive information is listed?
The neighboring device’s IOS software version (Cisco IOS Software, C1900 Software, Version 15.1(4)M4). This could be a potential security vulnerability if it is known by a threat actor.
Note: The current version of Packet Tracer does not provide the Management Address of the neighbor device. In this activity several neighbor device addresses have been provided in the Addressing Table.
g. Connect to the neighbor device with SSH to discover other devices that may be its neighbors.
Note: To connect with SSH use the same Remote RBO Office username and password (S3cre7P@55).
Copy
RBO-Edge# ssh -l RBOadmin 192.168.3.250
After successfully connecting with SSH, what does the command prompt show?
RBO-Firewall#
h. You are remotely connected to the next neighbor. Use the show lldp neighbors command, and the show lldp neighbors detail command, to discover other connected neighbor devices.
Copy
RBO-Firewall# 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
RBO-Edge Gig0/0 120 R Gig0/1
sw-rbo1 Gig0/1 120 B Gig0/1
Total entries displayed: 2
Copy
RBO-Firewall# show lldp neighbors detail
------------------------------------------------
Chassis id: 0001.9727.A463
Port id: Gig0/1
Port Description: GigabitEthernet0/1
System Name: RBO-Edge
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)
1baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 00D0.BAA8.8E19
Port id: Gig0/1
Port Description: GigabitEthernet0/1
System Name: sw-rbo1
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 02:49 by mnguyen
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
100baseT(HD)
100baseT(FD)
1000baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
Total entries displayed: 2
What types of network devices neighbor this device? Record any newly discovered devices in the Addressing Table. Include their hostname, interfaces, and IP addresses.
A router (RBO-Edge, on G0/0) and a switch (sw-rbo1, on G0/1). The sw-rbo1 switch is a newly discovered device connected to the G0/1 interface of RBO-Firewall (Port ID G0/1 on sw-rbo1).
Add the newly discovered device name next to the SVI entry for address 192.168.4.131.
i. Connect to the SVI for address 192.168.4.131 using SSH and credentials used previously. If prompted for an enable secret password, use the same password as used for RBOadmin (S3cre7P@55). Use the show lldp neighbors command, and the show lldp neighbors detail command, to discover other connected neighbor devices.
Copy
RBO-Firewall# ssh -l RBOadmin 192.168.4.131
Password:
sw-rbo1> enable
Password:
sw-rbo1#
Copy
sw-rbo1# 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
sw-rbo2 Gig0/2 120 B Gig0/2
RBO-Firewall Gig0/1 120 R Gig0/1
Total entries displayed: 2
Copy
sw-rbo1# show lldp neighbors detail
------------------------------------------------
Chassis id: 0090.0C3C.5D1A
Port id: Gig0/2
Port Description: GigabitEthernet0/2
System Name: sw-rbo2
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 02:49 by mnguyen
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
100baseT(FD)
100baseT(HD)
1000baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 00D0.D351.0602
Port id: Gig0/1
Port Description: GigabitEthernet0/1
System Name: RBO-Firewall
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)
Media Attachment Unit type: 10
Vlan ID: 1
Total entries displayed: 2
What types of network devices neighbor this device? Record any newly discovered devices in the Addressing Table. Include their hostname, interfaces, and IP addresses.
A router (RBO-Firewall, on G0/1) and a switch (sw-rbo2, on G0/2). The sw-rbo2 switch is a newly discovered device connected to the G0/2 interface of sw-rbo1 (Port ID G0/2 on sw-rbo2).
Place the newly discovered device name next to the SVI entry for address 192.168.4.132.
j. Connect to the SVI for address 192.168.4.133 using SSH and credentials used previously. Issue the command show lldp, you should receive a message:
Copy
sw-rbo1# ssh -l RBOadmin 192.168.4.133
Password:
sw-rbo3> enable
Password:
sw-rbo3# show lldp
% LLDP is not enabled
Enable lldp globally as in Step c. There is no need to configure transmit or receive options because they are on by default. Use the show lldp neighbors command, and the show lldp neighbors detail command, to discover other connected neighbor devices.
Copy
sw-rbo3(config)# lldp run
Copy
sw-rbo3# 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
sw-rbo2 Gig0/1 120 B Gig0/1
sw-rbo1 Fa0/24 120 B Fa0/24
Total entries displayed: 2
Copy
sw-rbo3# show lldp neighbors detail
------------------------------------------------
Chassis id: 0090.0C3C.5D19
Port id: Gig0/1
Port Description: GigabitEthernet0/1
System Name: sw-rbo2
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 02:49 by mnguyen
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
100baseT(FD)
100baseT(HD)
1000baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 00D0.BAA8.8E18
Port id: Fa0/24
Port Description: FastEthernet0/24
System Name: sw-rbo1
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 02:49 by mnguyen
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
100baseT(HD)
100baseT(FD)
1000baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
Total entries displayed: 2
What types of network devices neighbor this device? Record any newly discovered devices in the Addressing Table. Include their hostname, interfaces, and IP addresses. It may be beneficial to reconnect to the previously discovered devices to display neighbors one more time to complete the entire addressing table now that all devices are configured for LLDP.
A switch (sw-rbo1) that is connected to Fa0/24, a switch (sw-rbo2) that is connected to G0/1.
k. Draw a topology of the Remote RBO Office network using the information that you have gathered with LLDP.
Device Configs - Final
ROUTER Edge
Copy
! ==============================================================
!--- 10.2.6 Packet Tracer - Use LLDP to Map a Network
!--- ANSWER SCRIPT FOR ROUTER Edge
!--- Usage: SSH from Admin-PC to Edge (ssh -l admin01 192.168.1.1), then paste this whole file at the Edge# prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================
enable
configure terminal
! --------------------------------------------------------------
!--- Part 1: Use SSH to Remotely Access Network Devices
! --------------------------------------------------------------
!--- c. Disable CDP on Edge.
no cdp run
!--- d. Enable LLDP globally.
lldp run
!--- d. G0/0 to S1: receive LLDP from S1 but do not send LLDP to S1.
interface gigabitethernet 0/0
no lldp transmit
exit
end
! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config
! ==============================================================
!--- Verification:
!--- show lldp neighbors -> S1 on Gig0/0 (Port ID Gig0/1)
!--- S1> show lldp neighbors -> Edge is not listed (Edge does not transmit LLDP)
! ==============================================================
ROUTER RBO-Edge
Copy
! ==============================================================
!--- 10.2.6 Packet Tracer - Use LLDP to Map a Network
!--- ANSWER SCRIPT FOR ROUTER RBO-Edge
!--- Usage: SSH from Edge to RBO-Edge (ssh -l RBOadmin 209.165.200.10), then paste this whole file at the RBO-Edge# prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================
enable
configure terminal
! --------------------------------------------------------------
!--- Part 2: Use LLDP to Discover Neighboring Devices
! --------------------------------------------------------------
!--- c. Enable LLDP globally.
lldp run
!--- c. G0/0 is connected to the internet: disable LLDP transmit and receive completely.
interface gigabitethernet 0/0
no lldp transmit
no lldp receive
exit
end
! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config
! ==============================================================
!--- Verification:
!--- show lldp neighbors -> RBO-Firewall on Gig0/1 (Port ID Gig0/0); nothing on G0/0
!--- show lldp neighbors detail -> RBO-Firewall IOS software version
! ==============================================================
SWITCH sw-rbo3
Copy
! ==============================================================
!--- 10.2.6 Packet Tracer - Use LLDP to Map a Network
!--- ANSWER SCRIPT FOR SWITCH sw-rbo3
!--- Usage: SSH to sw-rbo3 (ssh -l RBOadmin 192.168.4.133), then paste this whole file at the sw-rbo3> or sw-rbo3# prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================
enable
configure terminal
! --------------------------------------------------------------
!--- Part 2: Use LLDP to Discover Neighboring Devices
! --------------------------------------------------------------
!--- j. Enable LLDP globally. Transmit and receive are on by default on every interface.
lldp run
end
! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config
! ==============================================================
!--- Verification:
!--- show lldp neighbors -> sw-rbo1 on Fa0/24 and sw-rbo2 on Gig0/1
! ==============================================================
Download Packet Tracer (.pka) file:
10.2.6 Packet Tracer - Use LLDP to Map a Network.pka 505.65 KB 11304 downloads
...
Previous Lab
10.1.5 Packet Tracer – Use CDP to Map a Network

