Vyatta – How to enable flow accounting

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.

vyatta@vyatta# set system flow-accounting interface eth1
vyatta@vyatta# set system flow-accounting interface eth3
vyatta@vyatta# commit

Display

There are a number of options for displaying the statistics. The main 2 are shown below.

vyatta@vyatta:~$ 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

vyatta@vyatta:~$ 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

Rick Donato

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