171k views
5 votes
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.) Answer show logging logging severity warning logging server 172.17.8.5 logging severity 4 logging trap 4 logging host 172.17.8.5

1 Answer

3 votes

Final answer:

To accomplish the redirection of log messages to a Syslog server with a severity level of warning or higher, you need to use the commands 'logging trap 4' and 'logging host 172.17.8.5' after the 'logging on' command.

Step-by-step explanation:

To redirect log messages from a router to a Syslog server with the specified severity levels, you should use the following two commands after the logging on command:

  • logging trap 4
  • logging host 172.17.8.5

The command logging trap 4 sets the logging severity level to warning, which includes emergency, alert, critical, error, and warning messages. Severity levels are numerically coded from 0 (emergency) to 7 (debug). By using a severity level of 4, all messages rated from level 0 (most serious) to 4 (including warnings) will be logged. The command logging host 172.17.8.5 specifies the IP address of the Syslog server that will receive the log messages. To ensure that only the intended messages are sent to your Syslog server, you must configure the router with these settings.

User Harti
by
7.4k points