1 |
Michael Orlitzky writes: |
2 |
|
3 |
> On 04/19/12 15:40, Alex Schuster wrote: |
4 |
> > Hi there! |
5 |
> > |
6 |
> > How am I supposed to find the MAC address of an ethernet interface? I |
7 |
> > used to call ifconfig and grep for HWaddr, but this does not work any |
8 |
> > more. |
9 |
> > |
10 |
> > I found the 'old-output' USE flag for sys-apps/net-tools, which brings |
11 |
> > back the old behaviour in order not to break old scripts, but I'd |
12 |
> > like to know what the new method is that scripts should use. |
13 |
> |
14 |
> `ip link` |
15 |
> |
16 |
> Learning a new command for something so fundamental was annoying, but |
17 |
> now I'm much happier. |
18 |
|
19 |
Thanks, that's a nice one. But can I expect this command to be available |
20 |
per default on typical Linux distributions? Some other systems I have |
21 |
access to have it, but here on Gentoo it belongs to sys-apps/iproute2, |
22 |
which depends on nothing I have installed, I do not even know why I |
23 |
emerged it in the first place. So maybe I better use ifconfig which is |
24 |
always available, although sometimes in /bin and sometimes in /sbin, and |
25 |
I have to check the output to see which version it is. |
26 |
|
27 |
Wonko |