In this lab, we've been told to configure both syslog and NTP.
The first thing we need to do is configure the syslog server.
So I'll click on the syslog server, go to services.
Click syslog and enable the syslog server, the IP address of the syslog server is 10.1.1.200.
You could also see that by using the IP config command.
In command prompt on the syslog server we then need to configure both router 1 and switch
1 to log messages to the syslog server.
Before I do that, I'll go back to services and ensure that I can see the syslog server.
Here's router
1, can I ping the syslog server? It's important to verify that you have IP connectivity to the syslog
server and we do here, so that's good.
So what I can do is go to global configuration mode and type logging.
And specify the host that I'm going to log messages to.
Which is 10.1.1.200, type End and notice we see messages on the syslog server.
We can see that this device was configured from the console.
We can also see that logging has been started.
So on the router show IP interface brief, this is the IP address of the router.
That's the device that logged messages to the syslog server and here are the messages that were logged.
So again, control zed or control Z.
This message has been logged to the syslog server notice no time stamps are displayed.
Now let's configure the switch.
Something very similar will be done ping 10.1.1.200 we've got IP connectivity to the syslog
server.
So logging host 10.1.1.200
type end, notice these messages are displayed on the console, but they are also displayed on the syslog
server IP address of the switch is 10.1.1.253.
We can verify that by using the show IP interface brief command.
So that device has logged messages to the syslog server.
Now we can do some additional tests, such as creating a loopback interface on the router, shutting
that down and re-enabling it, as well as shutting this port down on the switch
but we can already see that messages are being logged to the syslog server. So on the router,
conft interface loopback 0, notice we're told that this interface has come up line protocol
is up.
In other words, those messages have been logged to the syslog server. I'll create an IP address
here and I'll shut the interface down.
Interface has gone down
and that's what we can see on the syslog server, again, no shut the interface we can see that
the interface has come up.
Shut it down, no shut it.
We can see those log messages.
On the switch show, IP interface brief.
This interface is currently up, so interface gigabit 104, shut it down.
Notice we're told that the interface has gone down.
It's been administratively shut down again.
Those messages have been logged to the syslog server.
No shut it, interfaces come up
and that's what we can see on the syslog server.
So I've now completed the configuration and verification of syslog in this lab.
These two devices, router 1 and switch 1 can log messages to the syslog server.
Now we need to configure NTP
because no timestamps are shown on these log messages.