onsdag 10 januari 2007 14:56 skrev Jan Karjalainen:
> Just to make it clear: my nic supports the changing of mac address.
> Running "ifconfig eth0 down hw ether 01:02:03:04:05:06 && eth0 up"
> manually does work.
> As it reverts to the hard coded mac address after a reboot, I have to do
> this every time.
> So I´m looking for a setting somewhere where I can set the mac address
> to whatever I want during boot.
>

You can try and put that command in a script 
in /etc/sysconfig/network/if-up.d/. Any and all scripts here will be invoked 
after each interface is setup. They are passed parameters, if I remember 
correctly $2 is the interface name, so you can check that you only do your 
ifconfig hack on eth0. Kludgy, but it should work.

-- 
!++
! Lennart Börjeson, Cinnober Financial Technology AB
! Industrigatan 2A, S-112 46  STOCKHOLM
! Sverige/Sweden/Schweden/Suède
! phone:+46-8-50304717 gsm:+46-70-3394717 fax:+46-8-50304701
!--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to