i need to view smtp traffic that is passing through my cisco router that connects to the internet.
the problem is that i don know which command to use to view the smtp traffic or any additional config that has to be done.
could you please assist
Another option is enable ip cache flow on the interface wher you want to monitor.
show ip cache flow.
You will then be able to see teh TCP flows including SMTP
by the command show ip cache flow
I suggest you enable
ip nbar protocol-discovery on the egress interface
An access-list with the log option would also do the job but the drawback with this solution is that packet will be process switched (causing some CPU utilization) instead of fast switched.