10.2.3.6 Lab - Configuring Syslog and NTP PDF
10.2.3.6 Lab - Configuring Syslog and NTP PDF
10.2.3.6 Lab - Configuring Syslog and NTP PDF
Topology
Addressing Table
Objectives
Part 1: Configure Basic Device Settings
Part 2: Configure NTP
Part 3: Configure Syslog
Background / Scenario
Syslog messages that are generated by the network devices can be collected and archived on a syslog
server. The information can be used for monitoring, debugging, and troubleshooting purposes. The
administrator can control where the messages are stored and displayed. Syslog messages can be time-
stamped for analysis of the sequence of network events; therefore, it is important to synchronize the clock
across the network devices with a Network Time Protocol (NTP) server.
In this lab, you will configure R1 as the NTP server and R2 as a Syslog and NTP client. The syslog server
application, such as Tftp32d or other similar program, will be running on PC-B. Furthermore, you will control
the severity level of log messages that are collected and archived on the syslog server.
Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with
Cisco IOS Release 15.2(4)M3 (universalk9 image). Other routers and Cisco IOS versions can be used.
Depending on the model and Cisco IOS version, the commands available and output produced might vary
from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the
correct interface identifiers.
Note: Make sure that the routers have been erased and have no startup configurations. If you are unsure,
contact your instructor.
Required Resources
• 2 Routers (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 9
Lab – Configuring Syslog and NTP
• 1 PC (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term, and Syslog
software, such as Tftpd32)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet and serial cables as shown in the topology
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 9
Lab – Configuring Syslog and NTP
Date fdsaf
Time fdsaf
Time Zone fdsaf
Date fdsaf
Time fdsaf
Time Zone fdsaf
b. Configure R2 as the NTP client. Use the ntp server command to point to the IP address or hostname of
the NTP server. The ntp update-calendar command periodically updates the calendar with NTP time.
R2(config)# ntp server 10.1.1.1
R2(config)# ntp update-calendar
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 9
Lab – Configuring Syslog and NTP
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 9
Lab – Configuring Syslog and NTP
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 9
Lab – Configuring Syslog and NTP
Step 6: Configure and observe the effect of logging severity levels on R2.
a. Use the logging trap ? command to determine the various trap levels availability. When configuring a
level, the messages sent to the syslog server are the trap level configured and any lower levels.
R2(config)# logging trap ?
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
emergencies System is unusable (severity=0)
errors Error conditions (severity=3)
informational Informational messages (severity=6)
notifications Normal but significant conditions (severity=5)
warnings Warning conditions (severity=4)
<cr>
If the logging trap warnings command was issued, which severity levels of messages are logged?
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 9
Lab – Configuring Syslog and NTP
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 9
Lab – Configuring Syslog and NTP
i. Observe the syslog server output. Compare this result with the results at trapping level 4. What is your
observation?
Reflection
What is the problem with setting the level of severity too high (lowest level number) or too low (highest level
number) for syslog?
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 9
Lab – Configuring Syslog and NTP
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 9