With all the routers reachable and accessible through SSH, let us configure a base template that sends the Syslog to a Syslog server and additionally ensures that only information logs are sent to the Syslog server. Also, after configuration, a validation needs to be performed to ensure that logs are being sent to the Syslog server.
The logging server info is as follows:
- Logging server IP: 192.168.20.5
- Logging port: 514
- Logging protocol: TCP
Additionally, a loopback interface (loopback 30) needs to be configured with the {rtr} loopback interface description.
The code lines for the template are as follows:
logging host 192.168.20.5 transport tcp port 514logging trap 6interface loopback 30description ...