run a command on startup

2007-01-26 Thread Jonathan Horne
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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: run a command on startup

2007-01-26 Thread Kevin Downey

On 1/26/07, Jonathan Horne [EMAIL PROTECTED] 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: run a command on startup

2007-01-26 Thread Jonathan Horne
On Friday 26 January 2007 16:45, Kevin Downey wrote:
 On 1/26/07, Jonathan Horne [EMAIL PROTECTED] 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]

well, unfortunately, that didnt work.

# -- sysinstall generated deltas -- # Mon Jan 22 15:32:44 2007
# Created: Mon Jan 22 15:32:44 2007
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter=192.168.125.1
hostname=pollux.dfwlp.com
ifconfig_fxp0=ether 00:09:6b:b6:3e:d9
ifconfig_fxp0=inet 192.168.125.71  netmask 255.255.255.128
inetd_enable=YES
sshd_enable=YES
usbd_enable=YES
pollux# ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.125.71 netmask 0xff80 broadcast 192.168.125.127
ether 00:00:00:00:00:00
media: Ethernet autoselect (100baseTX full-duplex)
status: active

is there another way to skin this cat?

thanks,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: run a command on startup

2007-01-26 Thread Glenn Sieb
Jonathan Horne said the following on 1/26/2007 8:45 PM:
 well, unfortunately, that didnt work.
 
 # -- sysinstall generated deltas -- # Mon Jan 22 15:32:44 2007
 # Created: Mon Jan 22 15:32:44 2007
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
 defaultrouter=192.168.125.1
 hostname=pollux.dfwlp.com
 ifconfig_fxp0=ether 00:09:6b:b6:3e:d9
 ifconfig_fxp0=inet 192.168.125.71  netmask 255.255.255.128

Try this:

ifconfig_fxp0=ether 00:09:6b:b6:3e:d9 inet 192.168.125.71  netmask
255.255.255.128

Hope that helps..
Best,
--Glenn

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: run a command on startup

2007-01-26 Thread Jonathan Horne
On Friday 26 January 2007 20:21, Glenn Sieb wrote:
 Try this:

 ifconfig_fxp0=ether 00:09:6b:b6:3e:d9 inet 192.168.125.71  netmask
 255.255.255.128

 Hope that helps..
 Best,
 --Glenn


unfortunately, that didnt work either.  however, i just figured out something 
REALLY strange.  the computer will still wake up, if i give the command:

wakeonlan -i 192.168.125.127 00:00:00:00:00:00

*shrug* this is one of the strangest incidents ive had to troubleshoot in a 
long time!  i guess there is no reason that 00:[...] cant be a valid mac 
address, and it doesnt seem to be having any trouble pkg_add -r'ing from the 
net so, i guess i can put this one to bed.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]