fir3net
PPS-Firenetbanner-780.5x190-30-03-17

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

Reference

Further details can be found at http://www.vyatta.com/downloads/documentation/VC6.5/Vyatta-ConnectionManagement_6.5R1_v01.pdf

Tags: Vyatta

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001