Re: how to add flags to ifconfig at boot



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@xxxxxxxxxx
========================================================================
Whom computers would destroy, they must first drive mad.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: CFT: major wireless changes
    ... known configurations ... It doesn't use the "scan" caapabilities of ifconfig, ... I started checking what the script ... ifconfig dumped core; not sure why, ...
    (freebsd-current)
  • Re: Need to monitor when IP Address changes
    ... ifconfig to a text file and uploads it to a password-protected web ... I have a cron job scheduled every hour to run the script, ... after which you'll see the output of ifconfig. ...
    (freebsd-newbies)
  • Re: ifconfig doesnt detect change under crontab
    ... > Whenever my IP address changes, the cron'd ifconfig doesn't seem to ... If using dhcp instead, then something related to whatever does your ... dhcp should have related scripts that can also monitor ... So it appears that something in your undisclosed crontab entry or script ...
    (comp.os.linux.networking)
  • Re: CFT: major wireless changes
    ... ifconfig dumped core; not sure why, ... need to tweak in my script. ... bmiss 7 scanvalid 60 bintval 100 ... DHCPREQUEST on ed1 to 255.255.255.255 port 67 ...
    (freebsd-current)
  • Re: IP address aliases
    ... |> Would you be able to write a script to use the above (which currently ... |> ipalias -a 172.31.0.0/24 ... | How is the script supposed to know which interface to tweak on? ... | ifconfig eth0:2 172.31.0.0/24 ...
    (comp.os.linux.development.system)