Re: changing mac address of Sun GEM

2007-03-25 Thread Benjamin Herrenschmidt
On Sun, 2007-03-25 at 13:22 +0200, Wolfgang Pfeiffer wrote: > On Fri, Mar 23 2007, at 00:06 +0100, Yves-Alexis Perez wrote: > > On jeu, 2007-03-22 at 07:29 +1100, Benjamin Herrenschmidt wrote: > > > No, the driver doesn't implement it. Should be trivial to add though. > > > > MHmh, I use a powerbo

Re: changing mac address of Sun GEM

2007-03-25 Thread Ruben Vandeginste
At Sat, 24 Mar 2007 08:54:41 +1100, Benjamin Herrenschmidt wrote: > > netif_running() means the device is open() (which generally means the > interface is up). Ok. That's what I thought. I use "ifplugd" and I thought that the interface was down as long as no cable is connected, but it seems th

Re: changing mac address of Sun GEM

2007-03-25 Thread Wolfgang Pfeiffer
On Fri, Mar 23 2007, at 00:06 +0100, Yves-Alexis Perez wrote: > On jeu, 2007-03-22 at 07:29 +1100, Benjamin Herrenschmidt wrote: > > No, the driver doesn't implement it. Should be trivial to add though. > > MHmh, I use a powerbook g4, my network card is a sungem too and I can > do: > > sudo ip l

Re: changing mac address of Sun GEM

2007-03-23 Thread Benjamin Herrenschmidt
On Sat, 2007-03-24 at 05:08 +0800, Ruben Vandeginste wrote: > At Fri, 23 Mar 2007 09:09:37 +1100, Benjamin Herrenschmidt wrote: > > > > the patch is whitespace damaged though... > > Ok, that should be fixed now. > > > Appart from that, what's the output of strace macchanger ? Might give a > > c

Re: changing mac address of Sun GEM

2007-03-23 Thread Ruben Vandeginste
At Fri, 23 Mar 2007 09:09:37 +1100, Benjamin Herrenschmidt wrote: > > the patch is whitespace damaged though... Ok, that should be fixed now. > Appart from that, what's the output of strace macchanger ? Might give a > clue why it complains... To be honest, this is the first time I try to chan

Re: changing mac address of Sun GEM

2007-03-22 Thread Yves-Alexis Perez
On jeu, 2007-03-22 at 07:29 +1100, Benjamin Herrenschmidt wrote: > No, the driver doesn't implement it. Should be trivial to add though. MHmh, I use a powerbook g4, my network card is a sungem too and I can do: sudo ip l set eth0 address 00:11:24:xx:xx:xx and it works. I'm using a 2.6.20 kernel

Re: changing mac address of Sun GEM

2007-03-22 Thread Benjamin Herrenschmidt
On Fri, 2007-03-23 at 03:53 +0800, Ruben Vandeginste wrote: > At Thu, 22 Mar 2007 07:29:34 +1100, Benjamin Herrenschmidt wrote: > > > > No, the driver doesn't implement it. Should be trivial to add though. > > Ok. I gave this a try by looking at the initialisation code for the > card and at the

Re: changing mac address of Sun GEM

2007-03-22 Thread Ruben Vandeginste
At Thu, 22 Mar 2007 07:29:34 +1100, Benjamin Herrenschmidt wrote: > > No, the driver doesn't implement it. Should be trivial to add though. Ok. I gave this a try by looking at the initialisation code for the card and at the code for setting the mac address in other drivers. I have something th

Re: changing mac address of Sun GEM

2007-03-21 Thread Benjamin Herrenschmidt
On Wed, 2007-03-21 at 19:59 +0100, Ruben Vandeginste wrote: > Hello, > > Is it possible to change the MAC address of the ethernet card in an > iBook G4 ? > > I tried to use "macchanger" like this (obviously with an other mac > address): > > guava ~ # macchanger --mac 00:00:00:00:00:00 eth0 > Cur

changing mac address of Sun GEM

2007-03-21 Thread Ruben Vandeginste
Hello, Is it possible to change the MAC address of the ethernet card in an iBook G4 ? I tried to use "macchanger" like this (obviously with an other mac address): guava ~ # macchanger --mac 00:00:00:00:00:00 eth0 Current MAC: 00:00:00:00:00:00 (unknown) ERROR: Can't change MAC: interface up or