10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP (Answers)

Packet Tracer Packet Tracer Labs Original source

10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP Answers

Topology

10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP topology

10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

Addressing Table

Device Interface IP Address
HQ G0/0/0 192.168.1.1/24
G0/0/1 192.168.2.1/24
S0/1/0 192.168.3.1/30
Branch G0/0/0 192.168.4.1/24
S0/1/0 192.168.3.2/30
HQ-SW-1 VLAN 1 Not configured
HQ-SW-2 VLAN 1 Not configured
BR-SW-1 VLAN 10 192.168.4.250
BR-SW-2 VLAN 10 192.168.4.253
BR-SW-3 VLAN 10 192.168.4.254
NTP Server NIC 192.168.1.254
PC1 NIC 192.168.2.10
PC2 NIC 192.168.4.10
PC3 NIC 192.168.4.20

Objectives

In this activity, you will configure a router to receive time information over NTP and configure devices with CDP and LLDP.

Background / Scenario

A network administrator has been asked to investigate a new client’s network. Documentation is incomplete for the network, so some information needs to be discovered. In addition, the NTP server needs to be configured on a router. Discovery protocols must also be adjusted to control traffic discovery protocol traffic and prevent information about the network from being received by potentially unauthorized hosts.

Some of the device IP addresses are unknown to you. You must determine what the IP addresses are so that you can connect to the devices over SSH in order to configure them. You can enter them into the Addressing Table as you discover them.

Instructions

Use the table below to logon to the Branch switches when you need to do so.

Device Username User Password Enable Secret
BR-SW-1 admin SW1admin# SW1EnaAccess#
BR-SW-2 admin SW2admin# SW2EnaAccess#
BR-SW-3 admin SW3admin# SW3EnaAccess#

Note: Click the Fast Forward Time button in the blue bar below the topology to speed up STP convergence. You can also click it several times to speed up the CDP update process.

Configure LLDP as follows:

Configure CDP as follows:

Configure NTP:

Device Configs - Final

ROUTER HQ

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR ROUTER HQ

!--- Usage: open the HQ CLI tab and paste this whole file at the HQ> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure LLDP

! --------------------------------------------------------------



!--- Disable CDP on HQ.

no cdp run



!--- Enable LLDP globally.

lldp run



!--- Links to HQ-SW-1 and HQ-SW-2: receive LLDP only.

interface gigabitethernet 0/0/0

 no lldp transmit

 lldp receive

 exit

interface gigabitethernet 0/0/1

 no lldp transmit

 lldp receive

 exit



! --------------------------------------------------------------

!--- Configure NTP

! --------------------------------------------------------------



!--- Use 192.168.1.254 as the NTP server.

ntp server 192.168.1.254



end



! --------------------------------------------------------------

!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)

! --------------------------------------------------------------

copy running-config startup-config





! ==============================================================

!--- Verification:

!---   show cdp               -> % CDP is not enabled

!---   show lldp neighbors    -> HQ-SW-1 and HQ-SW-2

!---   show ntp status        -> Clock is synchronized, reference is 192.168.1.254

! ==============================================================

ROUTER Branch

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR ROUTER Branch

!--- Usage: open the Branch CLI tab and paste this whole file at the Branch> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure CDP

! --------------------------------------------------------------



!--- Activate CDP on Branch.

cdp run



end



! --------------------------------------------------------------

!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)

! --------------------------------------------------------------

copy running-config startup-config





! ==============================================================

!--- Verification:

!---   show cdp neighbors detail -> BR-SW-1, IP address 192.168.4.250

! ==============================================================

SWITCH HQ-SW-1

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR SWITCH HQ-SW-1

!--- Usage: open the HQ-SW-1 CLI tab and paste this whole file at the HQ-SW-1> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure LLDP

! --------------------------------------------------------------



!--- Disable CDP.

no cdp run



!--- Enable LLDP globally.

lldp run



!--- Link to the HQ router: send LLDP only, do not receive.

interface gigabitethernet 0/1

 no lldp receive

 exit



!--- Access port in use (NTP Server): disable LLDP completely.

interface fastethernet 0/24

 no lldp receive

 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 cdp               -> % CDP is not enabled

!---   show lldp interface     -> G0/1 Rx: disabled; Fa0/24 Tx and Rx: disabled

! ==============================================================

SWITCH HQ-SW-2

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR SWITCH HQ-SW-2

!--- Usage: open the HQ-SW-2 CLI tab and paste this whole file at the HQ-SW-2> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure LLDP

! --------------------------------------------------------------



!--- Disable CDP.

no cdp run



!--- Enable LLDP globally.

lldp run



!--- Link to the HQ router: send LLDP only, do not receive.

interface gigabitethernet 0/1

 no lldp receive

 exit



!--- Access port in use (PC1): disable LLDP completely.

interface fastethernet 0/1

 no lldp receive

 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 cdp               -> % CDP is not enabled

!---   show lldp interface     -> G0/1 Rx: disabled; Fa0/1 Tx and Rx: disabled

! ==============================================================

SWITCH BR-SW-2

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR SWITCH BR-SW-2

!--- Usage: BR-SW-2 has no CLI tab. From BR-SW-1, run  ssh -l admin 192.168.4.253  (password SW2admin#), then paste this whole file at the BR-SW-2> prompt; enter the enable secret SW2EnaAccess# when asked. Every line beginning with "!" is a comment; IOS ignores it.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure CDP

! --------------------------------------------------------------



!--- Access port in use (PC2): do not send CDP messages.

interface fastethernet 0/1

 no cdp enable

 exit



end



! --------------------------------------------------------------

!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)

! --------------------------------------------------------------

copy running-config startup-config





! ==============================================================

!--- Verification:

!---   show cdp interface fastethernet 0/1   -> no output (CDP disabled on the port)

! ==============================================================

SWITCH BR-SW-3

Copy

! ==============================================================

!--- 10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP

!--- ANSWER SCRIPT FOR SWITCH BR-SW-3

!--- Usage: BR-SW-3 has no CLI tab. From BR-SW-2, run  ssh -l admin 192.168.4.254  (password SW3admin#), then paste this whole file at the BR-SW-3> prompt; enter the enable secret SW3EnaAccess# when asked. Every line beginning with "!" is a comment; IOS ignores it.

! ==============================================================



enable

configure terminal



! --------------------------------------------------------------

!--- Configure CDP

! --------------------------------------------------------------



!--- Access port in use (PC3): do not send CDP messages.

interface fastethernet 0/1

 no cdp enable

 exit



end



! --------------------------------------------------------------

!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)

! --------------------------------------------------------------

copy running-config startup-config





! ==============================================================

!--- Verification:

!---   show cdp interface fastethernet 0/1   -> no output (CDP disabled on the port)

! ==============================================================

Download Packet Tracer (.pka) file:

Icon

10.8.1 Packet Tracer - Configure CDP, LLDP, and NTP.pka 550.05 KB 9985 downloads

...

Download

Previous Lab
10.7.6 Packet Tracer – Use a TFTP Server to Upgrade a Cisco IOS Image

Next Lab
11.5.1 Packet Tracer – Compare Layer 2 and Layer 3 Devices

← All Packet Tracer articles Home