1 |
On Thu, Apr 19, 2012 at 3:48 PM, Michael Orlitzky <michael@××××××××.com> wrote: |
2 |
> On 04/19/12 15:40, Alex Schuster wrote: |
3 |
>> Hi there! |
4 |
>> |
5 |
>> How am I supposed to find the MAC address of an ethernet interface? I used |
6 |
>> to call ifconfig and grep for HWaddr, but this does not work any more. |
7 |
>> |
8 |
>> I found the 'old-output' USE flag for sys-apps/net-tools, which brings |
9 |
>> back the old behaviour in order not to break old scripts, but I'd like to |
10 |
>> know what the new method is that scripts should use. |
11 |
> |
12 |
> `ip link` |
13 |
> |
14 |
> Learning a new command for something so fundamental was annoying, but |
15 |
> now I'm much happier. |
16 |
> |
17 |
|
18 |
I'll second this. The 'ip' command is far and away a nicer tool than |
19 |
ifconfig, once you get a handle on it. |
20 |
|
21 |
-- |
22 |
:wq |