Mailinglist Archive: opensuse (3831 mails)

< Previous Next >
Re: [opensuse] Mac address
  • From: Lennart Börjeson <Lennart.Borjeson@xxxxxxxxxxxx>
  • Date: Wed, 10 Jan 2007 15:30:10 +0100
  • Message-id: <200701101530.10682.Lennart.Borjeson@xxxxxxxxxxxx>
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >