Flow accounting provides the ability to display statistics on your network traffic. And is defined on a per interface basis.
Below shows you a quick summary on how to enable flow accounting and also how to view the statistics.
Enable
First of all flow accounting is enabled on each of the interfaces.
[email protected]# set system flow-accounting interface eth1 [email protected]# set system flow-accounting interface eth3 [email protected]# commit
Display
There are a number of options for displaying the statistics. The main 2 are shown below.
[email protected]:~$ show flow-accounting interface eth1 Src Addr Dst Addr Sport Dport Proto Packets Bytes Flows 86.120.124.254 166.78.4.231 5121 443 tcp 648 48364 3
Total entries: 43
Total flows : 1
Total pkts : 648
Total bytes : 48364
[email protected]:~$ show flow-accounting interface eth3 port 22 Src Addr Dst Addr Sport Dport Proto Packets Bytes Flows 86.120.124.254 166.78.4.231 5712 22 tcp 648 48364 3 59.175.148.95 166.78.4.231 42586 22 tcp 3 180 1 59.175.148.95 166.78.4.231 43093 22 tcp 3 180 1
Total entries: 43
Total flows : 45
Total pkts : 772
Total bytes : 55,804
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become a networking expert?
Here is our hand-picked selection of the best courses you can find online:
Cisco CCNA 200-301 Certification Gold Bootcamp
Complete Cyber Security Course – Network Security
Internet Security Deep Dive course
Python Pro Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial