December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to log the total number of TCP sessions.
You can configure the router to log the total number of TCP sessions, rather than just the number of packets, with the following set of commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list122permit tcp any any eq telnet establishedRouter1(config)#access-list122permit tcp any any eq telnetRouter1(config)#access-list122permit ip any anyRouter1(config)#interfaceRouter1(config-if)#Serial0/0ip access-group122inRouter1(config-if)#exitRouter1(config)#endRouter1#
Here is an alternative method that will also work:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list121permit tcp any any eq telnet synRouter1(config)#access-list121permit tcp any any eq telnetRouter1(config)#access-list121permit ip any anyRouter1(config)#interfaceRouter1(config-if)#Serial0/0ip access-group121inRouter1(config-if)#exitRouter1(config)#endRouter1#
When you configure an access-list, the router counts the total number of times it finds something that matches each line in the ACL. While this information is often useful, it does not tell you whether these counters are recording a thousand packets on a single session, or a single packet from each of a thousand sessions. The ACLs in this recipe count the number of TCP sessions as well as the total number of packets. ...
Read now
Unlock full access