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
Requirements
- 1R1 takes its time from the NTP server 192.0.2.123
- 2Log messages carry the date and time, with milliseconds
- 3Messages go to the syslog server 192.0.2.50
- 4Only severity 4 (warnings) and worse are sent to the server
- 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.