Question:
How do you enable logging on a Cisco 2811?
ermal_2000
2009-04-24 06:37:42 UTC
Hello
Need command line on how to enable logging on a cisco 2811. Circuit bouncing and can't see for how long it goes down or the alarms on the ckt.

Thank you in advance
Six answers:
networkmaster
2009-04-25 18:19:18 UTC
Logging should be on by default, but if not you will want to console or telnet or ssh into the router and get into enable mode and then go into configuration mode with "config term" and then type the command "logging on" followed by the command "logging buffered 4096 debugging" and I'd also suggest the command "service timestamps log datetime msec".



These commands will 1) enable logging which it already should have been by default and typically will not show up in the output of a show run. 2) set up a 4KB log buffer to copy log messages to an internal buffer, first in first out so only the most recent 4KB of messages will be in there. Increase the size accordingly if needed. 3) configures the timestamps in the log messages to reflect the date and time (as opposed to using the "uptime" keyword) and gives it millisecond granularity.



The above assumes your 2811 has the correct date and time, if not, use the clock set command, such as "clock set 21:15:00 25 April 2009" for example. Unless maybe you've pointed it to an NTP server using the "ntp server " command.



Once these are configured, exit config mode, save the config, and use the show logging command to watch for your circuit bouncing. If you're in a telnet or ssh session and not connected directly to the console port, also give the "terminal monitor" command so see the log output as if you were on the console port.
ewers
2016-10-31 03:16:23 UTC
Cisco Logging Buffered
morano
2016-12-05 17:51:17 UTC
All subjects coated in the CCNA examination would be studied making use of Packet Tracer, that's a community simulator made by making use of Cisco. that's a unfastened obtain. you may hook up various routers or switches in any way you desire and set up OSPF, EIGRP, VLANS... this is not appropriate, although this is great for CCNA. once you progression on on your CCNP you would be wanting to bypass as much as GNS3, a community emulator. this is unfastened, yet slightly greater difficult to apply. wish that facilitates!
yeagermyster
2009-04-24 07:00:43 UTC
depending on the IOS of the router



logging enabled

logging buffered 10000



then type



show log





then to view the output in 'real time' from SSH / Telnet

term mon
rani_tips
2009-04-24 07:36:07 UTC
for console connection



router(config)# line cons 0

router(config-line)# logg on



for telnet connection



router#terminal monitor



http://www.computerfreetips.com/Cisco_router_tips/main_router.html
2009-04-24 06:40:40 UTC
Have you tried "term mon"


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...