Syslog Configuration Cisco

syslog-configuration-cisco

Syslog Configuration (Cisco)

In this Syslog Configuration Cisco example, we will learn How to do Syslog Configuration on Cisco Routers. Here, we will use the below simple topology consist of a Cisco Router and a Syslog Server.

syslog-configuration-cisco

Here, we will go through 3 steps, these are:

  1. IP Configurations
  2. Syslog Configuration
  3. Checking Logs

 

So, let’s start Syslog Configuration step by step.

 


You can also check Packet Tracer SSH Configuration


 

IP Configurations

Firsty, we will do the ip configurations of both router and server interfaces. This is a classical IP address configuraration. We will use the below ip addresses:

 

Router Fa0/0 -> 10.0.0.1/24

Server Fa0 -> 10.0.0.2/24

 

On Router we will do the below configuration:


Router # configure terminal
Router (config)# interface fastEthernet 0/0
Router (config-if)# ip address 10.0.0.1 255.255.255.0
Router (config-if)# no shutdown
Router (config-if)# exit

On Server we will do the below configuration:

 

syslog-server-config-packet-tracer

 


You can also learn Packet Tracer DHCP Configuration


 

Syslog Configuration

In this step, we will configure 3 sub steps. These are the main Syslog configuration steps in a router. Here, we will do the below jobs:

  • Enabling Syslog
  • Setting Syslog Server IP
  • Setting Trap Level

 

On Cisco routers, firstly we will enable syslog with “logging on” command.


Router (config)# logging on

 

After that we will enter the Log Server IP address. This IP address will be the interface IP address of our Syslog Server. It is 10.0.0.2.


Router (config)# logging 10.0.0.2

 

Lastly, we will set the trap level. As you can see in the first Picture, there are 8 trap levels. These are:

  • 0 Emergency
  • 1 Alert
  • 2 Critical
  • 3 Error
  • 4 Warning
  • 5 Notification
  • 6 Informational
  • 7 Debug

 

Here, if you select any of these levels, all the other levels lover than it, will be showed in the logs. For example if you select Critical level (3), then Critical (3), Alert(2) and Emergency(1) Levels will be in the logs. For thsi example, we will set tap level as “debug”. So, we will see all the logs after this configuration.


Router (config)# logging trap debugging

 

gokhan-kosem-instructor-ipcisco

Gokhan Kosem is a Network Engineer, Instructor and the Founder of IPCisco.com with 15+ years of experience in Cisco, Nokia, Huawei, Juniper, Linux, Service Provider Networks, Routing and Switching technologies.

He has worked on the backbone networks of major service providers and network vendors including Nortel, Alcatel-Lucent (Nokia) and has extensive hands-on experience with Cisco, Huawei, Juniper and Nokia networking technologies.

He has trained thousands of networking students worldwide through IPCisco.com, Udemy, books, labs, quizzes, and educational content across multiple social media platforms.

IPCisco.com | Best Route to Your Dreams

Lesson tags: logging, syslog
Back to: CCNA 200-301 v1.1 Course > Network Management

Leave a Reply

Your email address will not be published. Required fields are marked *

ipcisco gold membership

CCNA 200-301 v1.1 Course

Collapse
Expand