Configuring Cisco Routers for Syslog, NTP and SSH

defining Syslog server

central(config)#ntp server central(config)#ntp ? access-group Control NTP access authenticate Authenticate time sources authentication-key Authentication key for trusted time sources broadcastdelay Estimated round-trip delay clock-period Length of hardware clock tick logging Enable NTP message logging master Act as NTP master clock max-associations Set maximum number of associations peer Configure NTP peer server Configure NTP server source Configure interface for source address trusted-key Key numbers for trusted time sources central(config)#ntp server ? Hostname or A.B.C.D IP address of peer vrf VPN Routing/Forwarding Information central(config)#ntp server

identifying the remote host (Syslog Server) that will receive logging messages

central(config)#logging host central(config)#

starting of time updating, lower-end 2500 or 2600 series routers do not have hardware clocks, so this command is uavailable for them

R1(config)# ntp update-calendar

adding timestamps in mesages

central(config)#service timestamps log datetime msec

so after this command appear messages with routers time:

central#sh clock *01:00:48.663 UTC Fri Mar 1 2002