Syslog and NTP:Cisco Packet Tracer Configuration lab
Syslog(log server) and NTP(Time Server):Cisco Packet Tracer Configuration lab.
Time Server and Log server Configuration Lab using Cisco Packet Tracer for ccna Students or Networking Guys.This will help you to understand Syslog and NTP server Working Principal.
Step:1 First draw the Topology diagram as mentioned above.
Step:2 assign IP address and gateway ip on all the Devices including servers.
SYSLOG SERVER
Step3: Visit SYSLOG Server and enable it from services.
Step4:Now Go to Router and Tell the Router about Syslog machine.
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#logging host 1.0.0.100
R1(config)#logging trap debugging
Step5: Syslog Server Troubleshooting
Visit Router and disable any port to see the log on syslog server.
R1>enable
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int fa0/1
R1(config-if)#shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
R1(config-if)#
Now check Syslog server for any Log:
And you can clearly see the log in below image.
NTP SERVER
Step 1: Visit Router before NTP Configuration and Check the Date and Time
R1#
R1#show clock
*0:4:59.814 UTC Mon Mar 1 1993
R1#
Step 2: Enable NTP service on NTP Machine and Tell Router about NTP server
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ntp server 1.0.0.200
R1(config)#exit
R1#
Step 3: Check The Date and Time Now after NTP(Time Server) Configuration on Router
R1#show clock
*19:43:55.429 UTC Thu Dec 17 2020
Step 5: NTP server troubleshooting command: to check Time server status
R1#show ntp status
Clock is synchronized, stratum 2, reference is 1.0.0.200
nominal freq is 250.0000 Hz, actual freq is 249.9990 Hz, precision is 2**19
reference time is E3596072.0000036E (19:43:46.878 UTC Thu Dec 17 2020)
clock offset is 0.00 msec, root delay is 0.00 msec
root dispersion is 0.02 msec, peer dispersion is 0.02 msec.