how to add flags to ifconfig at boot

David Kelly dkelly at hiwaay.net
Mon Sep 18 10:40:18 PDT 2006


On Mon, Sep 18, 2006 at 12:38:30PM -0400, Robert Huff wrote:
> 
> David Kelly writes:
> 
> >  Or if one needs to ifconfig earlier in the startup process then put
> >  one's script in /etc/start_if.em0
> 
> 	It is my understanding (and experience) this only works when
> 
> 	ifconfig_em0=""
> 
> 	in /etc/rc.conf.

True only if your options for ifconfig in rc.conf would clear or
override whatever it is you put in /etc/start_if_em0. As long as its
something that can be done with multiple ifconfigs then all is fine.

For example this works fine in /etc/start_if.xl0:

#!/bin/sh
ifconfig xl0 lladdr 00:01:23:45:67:89

with this in rc.conf:
ifconfig_xl0="DHCP"

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list