public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to find the MAC address
@ 2012-04-19 19:40 Alex Schuster
  2012-04-19 19:45 ` Michael Mol
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Alex Schuster @ 2012-04-19 19:40 UTC (permalink / raw
  To: gentoo-user

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.

Here's how the output looked before and now:

Old output:
eth0      Link encap:Ethernet  HWaddr bc:5f:f4:19:ad:18  
          inet addr:192.168.2.42  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::be5f:f4ff:fe19:ad18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11027476 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8002728 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:11763889583 (10.9 GiB)  TX bytes:1006570663 (959.9 MiB)
          Interrupt:49 

New output:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.42  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::be5f:f4ff:fe19:ad18  prefixlen 64  scopeid 0x20<link>
        ether bc:5f:f4:19:ad:18  txqueuelen 1000  (Ethernet)
        RX packets 10791981  bytes 11413935608 (10.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7867427  bytes 996505563 (950.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0
        device interrupt 49  

	Wonko



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2012-04-23 12:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 19:40 [gentoo-user] How to find the MAC address Alex Schuster
2012-04-19 19:45 ` Michael Mol
2012-04-19 20:01   ` Alex Schuster
2012-04-19 20:12     ` Michael Mol
2012-04-20 10:43       ` Joost Roeleveld
2012-04-20 14:14         ` [gentoo-user] " Grant Edwards
2012-04-19 19:48 ` [gentoo-user] " Michael Orlitzky
2012-04-19 19:56   ` Michael Mol
2012-04-19 23:29     ` Peter Humphrey
2012-04-20 10:11       ` Alex Schuster
2012-04-20 16:58         ` Peter Humphrey
2012-04-23  1:47         ` Walter Dnes
2012-04-19 20:40   ` Alex Schuster
2012-04-19 21:04     ` Michael Orlitzky
2012-04-19 19:50 ` Neil Bothwick
2012-04-19 20:14   ` Alex Schuster
2012-04-20 15:22 ` [gentoo-user] " James
2012-04-20 18:43   ` Mick
2012-04-20 20:39     ` Michael Mol
2012-04-23 12:49 ` [gentoo-user] " Kfir Lavi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox