Skip to end of metadata
Go to start of metadata

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:

Related articles