Lab 131: Configure Syslog Server

Monitoring the status of a device is really helpful, especially in troubleshooting issues. Almost all devices have their own method to provide log information about the usage of devices. Administrators use these logs to find the solutions to troubleshoot the issues caused by devices. However, collecting and monitoring logs on each and every device might be a difficult job on a network that have 100 of devices. To overcome this problem, you can use Syslog Server to collect all the logs in a central location and then you can use these logs for the troubleshooting devices. In this lab exercise, you will learn how to configure Syslog Server for Cisco router.

We will the following topology to demonstrate how to configure Syslog Server in Cisco Packet Tracer.

Connect the Router and Server using Fast Ethernet interfaces. Configure192.168.1.100/ 24 IP address on Server. Select the Services tab, select SYSLOG in the left pane and verify that the SYSLOG services is on Server.

Steps to Configure Syslog Server in Cisco IOS

Once you have completed the preceding tasks, now you can configure logging in Cisco IOS. To do so, you need to perform the following steps:

1.  On Router, execute the following commands to configure IP address.

Router( config)# interface fa0/ 0 
Router( config)-if# ip add 192.168.1.1 255.255.255.0 
Router( config-if)# no shutdown

2.  Next, use the logging host < syslog server IP address > command to specify the syslog server address.

Router( config)# logging host 192.168.1.100

3.  Next, execute the logging trap < severity level > command to specify the log types and category. We will use the debug log (severity level 7). You may use any other severity level that you may wish to test.

Router( config)# logging trap 7

4.  Next, use the debug ip < protocol > command to enable debugging for a protocol. In this case, we will use ICMP protocol.

Router# debug ip icmp

5.  Next, execute the 192.168.1.00 command to generate some ICMP packets for the testing purpose.

Router# ping 192.168.1.100

6.  The following figure shows how to configure logging on Router.

7.  Next, move on to Syslog Server console, and examine the output. In the following figure you can the sample output of the syslog server.

8.  In the preceding output, you can see the logs collected by Syslog Server for Cisco router. That’s all you need to do to configure logging in Cisco IOS.

That’s all about this lab guide. Hope you have enjoyed it please give us your rating and valuable feedback. We wish all the best for your CCNA certification exam. You can also try the following eBook if you are planning to learn MCSA Windows Server 2016 by self-study.


Related Articles

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Leo Recent comment authors
newest oldest most voted
Leo
Guest
Leo

wow this is awesome. I will go through each one. it’s going to help so much. Thank you for this. I really appreciate it.