Lab – Configuring Syslog and NTP
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 8
Step 3: Verify that the timestamp service is enabled on R2.
Use the show run command to verify that the timestamp service is enabled for logging on R2.
R2# show run | include timestamp
service timestamps debug datetime msec
service timestamps log datetime msec
If the timestamp service is not enabled, use the following command to enable it.
R2(config)# service timestamps log datetime msec
Step 4: Configure R2 to log messages to the syslog server.
Configure R2 to send Syslog messages to the syslog server, PC-B. The IP address of the PC-B syslog server
is 172.16.2.3.
R2(config)# logging host 172.16.2.3
Step 5: Display the default logging settings.
Use the show logging command to display the default logging settings.
R2# show logging
Syslog logging: enabled (0 messages dropped, 2 messages rate-limited, 0 flushes, 0
overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: level debugging, 47 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 47 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
Persistent logging: disabled
No active filter modules.
Trap logging: level informational, 49 message lines logged
Logging to 172.16.2.3 (udp port 514, audit disabled,
link up),
6 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled
Logging Source-Interface: VRF Name: