IPv4 versus IPv6 – Linux

All of my servers are running on both ipv4 and ipv6 for a few years now, however i had never checked to see if people were actually connecting over IPv6 to our network yet. I know i do, since i am using the Tunnelbroker from More information on that can be found here.

In the Netherlands there are not many providers offering IPv6 support and probably this will take a lot more time since recent reports showed that only 15% of all RIPE members are publishing IPv6 bgp records, whereas ARIN only has 10%.. Not a whole lot.

Still, i wanted to see how many people visited our website or servers through IPv6 to plot out a graph the upcoming year and see the growth. Here is how.

Check network packets

[code]netstat -s | grep "total packets" | awk ‘{ print $1 }’
netstat -s -6 | grep "total packets" | awk ‘{ print $1 }'[/code]

The -s option in netstat gives you a good overview of the packets. The outcome would be something like this:

[code] netstat -s | grep "total packets" | awk ‘{ print $1 }’

And now for IPv6:

[code]# netstat -s -6 | grep "total packets" | awk ‘{ print $1 }’

Actually i was surprised the number was so high 🙂

To get a bit more information such as octet’s the following would do:


netstat -s -6 | grep -i octet | grep -vi cast


If you are using MRTG this would be a great source of information.


Geef een reactie

%d bloggers liken dit: