Linux for network engineers lab 11 of 14
Logs and time: syslog and NTP clients
You send Linux and router logs to one collector, break a clock to see why it matters, then fix it with NTP, serving time from a Linux box to a host and a router, and rotate the logs.
Run this lab
It needs Lite: its 4 nodes are set to 4 vCPU and 2,560 MB in total. That fits the free demo too.
In your workspace: Shared, then Linux for network engineers guided labs, then 11 - Logs and time - syslog and NTP clients
- Level
- Intermediate
- Time
- About 65 minutes
- Nodes need
- 4 vCPU, 2,560 MB
- Smallest plan
- Lite
The scenario
An audit at Huddersfield asked a simple question: what happened at 09:15 last Tuesday? Nobody could say. The logs were scattered across boxes, and each box had its own idea of the time. You'll send everything to one place, put every device on one clock, and stop the logs filling the disk.
| Device | Interface | Address | Role |
|---|---|---|---|
| WS | eth0 | 10.11.1.50/24 | log collector, UDP 514 |
| TIME | eth0 | 10.11.1.10/24 | NTP server, UDP 123 |
| H1 | eth0 | 10.11.1.20/24 | Linux server |
| R1 | Gi0/0 | 10.11.1.1/24 | depot router |
| Device | Runs | How to log in |
|---|---|---|
| WS | Ubuntu 22.04 desktop container | Its console is a remote desktop: root / eve. Open a terminal there. |
| H1 | Alpine Linux 3.20 | root, no password. |
| R1 | Cisco IOSv 15.9 | The console opens at >; enable has no password. |
| TIME | Alpine Linux 3.16 with iptables and iproute2 | Opens on a menu: press 5, then Enter, for a root shell. |
What you’ll practise
- Use facilities, severities and logger
- Forward syslog from Linux and IOS to a collector
- Read the priority value on the wire
- Set clocks from an NTP server and read offset, stratum and reach
- Rotate logs with logrotate
The tasks
- Start the Linux nodes
- Read and write local logs
- Send Linux logs to the collector
- Send router logs to the collector
- See why clocks matter
- Serve and use NTP
- Bring the router on to NTP
- Rotate the logs
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- WS
eth0to LAN (network) - H1
eth0to LAN (network) - R1
Gi0/0to LAN (network) - TIME
eth0to LAN (network)
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| WS | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| H1 | Alpine Linux | clbalpinebase-alpine-base-3-20-3 | 1 vCPU, 512 MB |
| R1 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| TIME | Alpine WAN emulator | clbalpinewanem-alpine-3-16-2-wanem | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Linux for network engineers guided labs.Open
11 - Logs and time - syslog and NTP clientsand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More Linux for network engineers labs
All Linux for network engineers labs
Related labs in other courses
CloudLabBox is independent of Cisco, CompTIA, the Linux Foundation and the Linux Professional Institute. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.