Scenario

R1 forwards traffic for a small office. When something breaks, the log is the first place you look, but the messages have no useful time and live only on the router. Fix both: take the time from the NTP server at 192.0.2.123, add the date and time with milliseconds to every log line, and forward every message of severity warning (level 4) or worse to the syslog server at 192.0.2.50. The router's management interface is 192.0.2.10/24.

Topology

R1

Requirements

  1. 1R1 takes its time from the NTP server 192.0.2.123
  2. 2Log messages carry the date and time, with milliseconds
  3. 3Messages go to the syslog server 192.0.2.50
  4. 4Only severity 4 (warnings) and worse are sent to the server
  5. 5The local buffer keeps messages too

R1 keeps its own log with no real time and no remote copy. Type ? for the commands you can use. Start with: enable

R1> show running-config

CCNA lab · about 10 min

NTP and syslog: timestamps you can trust

Synchronise a router's clock with an NTP server, stamp log messages with the date and send warnings and worse to a syslog server.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

R1 forwards traffic for a small office. When something breaks, the log is the first place you look, but the messages have no useful time and live only on the router. Fix both: take the time from the NTP server at 192.0.2.123, add the date and time with milliseconds to every log line, and forward every message of severity warning (level 4) or worse to the syslog server at 192.0.2.50. The router's management interface is 192.0.2.10/24.

About 10 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What are the syslog severity levels?

0 emergencies, 1 alerts, 2 critical, 3 errors, 4 warnings, 5 notifications, 6 informational, 7 debugging. Setting a level includes that level and all lower numbers.

Why does NTP matter for logs?

When something fails across several devices, you read their logs side by side. With clocks that differ by seconds or minutes, you cannot tell what came first.

What is the difference between logging buffered and logging host?

logging buffered keeps messages in the router's RAM. logging host forwards them over the network to a syslog server. The first is lost at reboot, the second is kept elsewhere.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.