How to Configure Syslog Server for Cisco Router in GNS3

Monitoring the status of a device is really helpful, especially in troubleshooting the devices. Almost all the networking devices such as PCs, Servers, Switches, and Routers,  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 these 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 post, we will discuss how to configure Syslog Server for Cisco router in GNS3. In the following demonstration, we will use Kiwi Syslog Server.

We will use the following topology to configure logging in Cisco IOS using GNS3. Router R1 is connected to the local system using a Loopback interface.configure syslog in gns3

Prerequisites to Configure Syslog Server for Cisco Routers

Before you should start to configure Syslog server for Cisco routers in GNS3, there are few prerequisites that you need to fulfill. These prerequisites are:

  • Install a Loopback adapter on your local system. You may also use a physical adapter if your system is connected over a network.
  • Configure IP address on the Loopback adapter.
  • Download Kiwi Syslog Server tool (free edition).

Once, you have fulfilled all the prerequisites, install Kiwi Syslog Server tool on your local system. The installation of Kiwi Syslog Server is pretty straightforward. Just install it using the default selections. During the Kiwi Syslog Server installation, you will be asked to install .Net 3.5 Framework components. Just click the Download and install option and it will be installed automatically.Installing Kiwi syslog Server in Windows

Once the installation of Kiwi Syslog Server is finished (as shown in the preceding figure), next, you need to define the IP addresses from which you want to receive the logs. To do so, in the Kiwi Syslog Server console, click File and select Setup.

In the settings options, select Inputs, type in the IP address box, click Add, and then click OK. The following figure shows the settings options for Kiwi Syslog Server.Configuring IP addresses for syslog server

Now, your Syslog Server is ready to receive the logs. However, you may also need to disable the firewall.

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. Open the console of R1 and execute the following commands to configure IP address on R1.
R1(config)#interface fa0/0
R1(config)-if#ip add
R1(config-if)#no shutdown
  1. Next, use the logging host <syslog server IP address> command to specify the syslog server address.
R1(config)#logging host
  1. Next, execute the logging trap <severity level> command to specify the log types and category. We will use the debug log category (severity level 7). You may use any other severity level that you may wish to test.
R1(config)#logging trap 7
  1. Next, use the debug ip <protocol> command to enable debugging for a protocol. In this case, we will use the ICMP protocol.
R1#debug ip icmp
  1. Next, execute the command to generate some ICMP packets for the testing purpose.

Configure syslog server in cisco IOS

  1. Next, move on to Kiwi Syslog Server console, and examine the output.collecting logs using syslog sever in Cisco IOS

In the preceding output, you can see the logs collected by Kiwi Syslog Server for Cisco router in GNS3.

That’s all we need to do to configure logging in Cisco IOS. Hope it helped you. Please like and share the article if you think it may help others too. You may also subscribe us to get notified for daily new posts.

Posted in CCNA, Cisco, GNS3 Tutorials Tagged with: , ,