On Fri, 22 Aug 2014 16:36:53 +0200 Andreas Feldner <pe...@flying-snail.de> wrote:
> Over one year gone I found a bug in your patch: for the if method, you need to add " | grep -v deprecated" to the filter of the ip command. BTW, wise decision to use ip rather than ifconfig: you have no chance with the former, afaik. > > Cheers and thanks for the patch! > Andreas. > Instead of " | grep -v deprecated”, I’ve chosen to use "|grep -v temporary | grep -v "inet6 f[cd]"" to exclude all privacy extension and ULA addresses, which should leave you with the EUI64 address. At least in Ubuntu.