Configure logging to syslog host on a Cisco UC500 router
HAMUC540#config term
Enter configuration commands, one per line. End with CNTL/Z.
HAMUC540(config)#service timestamps debug datetime msec
HAMUC540(config)#service timestamps log datetime msec
HAMUC540(config)#logging host syslog.loopback.org
HAMUC540(config)#exit
HAMUC540#write mem
(Block and) log traffic to certain host
HAMUC540#config term
Enter configuration commands, one per line. End with CNTL/Z.
HAMUC540(config)#access-list 199 deny tcp any host 192.42.119.41 log
HAMUC540(config)#access-list 199 deny tcp host 192.42.119.41 any log
HAMUC540(config)#end
HAMUC540#debug ip packet 199
IP packet debugging is on for access list 199
See also:
- http://www.cisco.com/c/en/us/support/docs/dial-access/integrated-services-digital-networks-isdn-channel-associated-signaling-cas/10374-debug.html
- http://etherealmind.com/ios-terminal-monitor-on-off-logging-to-your-terminal/
- https://supportforums.cisco.com/document/24661/how-configure-logging-cisco-ios
- http://www.cisco.com/c/en/us/about/security-center/access-control-list-logging.html
- http://www.cisco.com/c/en/us/support/docs/ip/access-lists/26448-ACLsamples.html
- http://www.cisco.com/c/en/us/support/docs/security/ios-firewall/23602-confaccesslists.html
Related articles