Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2007 14:45:07 -0800
From:      "Kevin Downey" <redchin@gmail.com>
To:        "Jonathan Horne" <freebsd@dfwlp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: run a command on startup
Message-ID:  <1d3ed48c0701261445m5d8612adn9b72ad5b8a1987d6@mail.gmail.com>
In-Reply-To: <200701261636.37517.freebsd@dfwlp.com>
References:  <200701261636.37517.freebsd@dfwlp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/26/07, Jonathan Horne <freebsd@dfwlp.com> wrote:
> i have a box that my nic's eeprom got zapped last night.  WOL is a must for
> me, and as a last ditch, i finally have the card talking again if i set a mac
> address manually.  upon shutdown, apparently it remember the address i set,
> and answers to a WOL packet.  also, it appears to immediately forget the mac
> that was set when the computer starts, because when i get back to the login,
> the ifconfig shows the mac to be 00:00:00:00:00:00 again, and i have
> to 'ifconfig fxp0 ether [mad address]' after each boot.
>
> where can i stick that command so its run during boot up, maybe preferable
> before the network configuration is loaded?
>
> strangely enough, even when the mac address is 00's, i can still ping around
> my lan (i didnt think this was possible without a mac address)
>
> thanks,
> jonathan
>

you can put "ether [mac address]" in fxp0's ifconfig line in /etc/rc.conf
ifconfig_fxp0="ether [mac address]"
-- 
The biggest problem with communication is the illusion that it has occurred.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d3ed48c0701261445m5d8612adn9b72ad5b8a1987d6>