202k views
1 vote
you want to redirect log messages from a router to a syslog server. the ip address of the syslog server is 172.17.8.5. you want only serious log messages with a severity level of emergency, alert, critical, error, or warning to be redirected. notifications and informational messages as well as debug messages should not be redirected.you just entered the logging on command. which other commands must be used to accomplish this task? (select two. both responses are part of the complete solution.)

1 Answer

6 votes

Final answer:

To redirect only serious log messages to a syslog server, after enabling logging, set the server's IP with 'logging 172.17.8.5' and restrict message severity with 'logging trap warnings'.

Step-by-step explanation:

To redirect log messages from a router to a Syslog server with the given IP address 172.17.8.5 and ensure only messages with a severity level of emergency, alert, critical, error, or warning are logged, you would need to use specific commands on the router's configuration interface. Firstly, after enabling logging with the 'logging on' command, you need to specify the address of the syslog server. The command to achieve this would be:

logging 172.17.8.5

Next, to restrict the messages sent to the server to the specified severity levels, you need to set the logging trap level. Since you want to exclude notifications, informational messages, and debug messages, you should set the trap level to 'warnings' which corresponds to severity level 4. This can be done with the following command:

logging trap warnings

Using the 'logging trap warnings' command ensures that only log messages with a severity level of emergency (0), alert (1), critical (2), error (3), or warning (4) are sent to the syslog server.

User Dave Merwin
by
8.2k points