Michael Orlitzky writes:

> On 04/19/12 15:40, Alex Schuster wrote:
> > Hi there!
> > 
> > How am I supposed to find the MAC address of an ethernet interface? I
> > used to call ifconfig and grep for HWaddr, but this does not work any
> > more.
> > 
> > I found the 'old-output' USE flag for sys-apps/net-tools, which brings
> > back the old behaviour in order not to break old scripts, but I'd
> > like to know what the new method is that scripts should use.
> 
> `ip link`
> 
> Learning a new command for something so fundamental was annoying, but
> now I'm much happier.

Thanks, that's a nice one. But can I expect this command to be available
per default on typical Linux distributions? Some other systems I have
access to have it, but here on Gentoo it belongs to sys-apps/iproute2,
which depends on nothing I have installed, I do not even know why I
emerged it in the first place. So maybe I better use ifconfig which is
always available, although sometimes in /bin and sometimes in /sbin, and
I have to check the output to see which version it is.

        Wonko

Reply via email to