Cisco Router Debugging

Virtual Terminal Logging
In order to enable logging on your virtual terminal connection via telnet, type:

terminal monitor

Enable Debugging on Virtual Terminal
In order to enable debugging messages on your virtutal terminal, type:

undebug all
conf t
logging monitor debugging
logging on
exit

Debug
Cisco routers can debug a whole lot of things. Let’s try a simple example:

debug ip ospf hello

How do I turn this off again?
Yeah, right. You’re sick of all those messages and want to get rid of them without logging out and all this. Here you go:

undebug all
terminal no monitor
conf t
no logging monitor
exit