Gert Cuykens writes:

>  How do you tell a device for example nv0 to be dhcp without using
>  rc.conf ?

        If rc.conf has the lines:

network_interfaces="lo0 nv0 "
ifconfig_nv0=""

        rc will look for /etc/start_if.nv0 and - if found - will
execute the commands therein.  A copy of mine (I use de0) is
appended.


                                Robert Huff


#!/bin/sh  -x

# interface configuration file for RCN DHCP

rm /var/db/dhclient.leases

/sbin/dhclient de0
echo -n $? > /etc/dhc.err
echo -n "= DHCLIENT exit status" >> /etc/dhc.err

ifconfig de0
sleep 3

#    since the rules are already segregated, use that file
#    20040218 moved to ipfw.master and invoked from rc.conf:rc.firewall=

# /etc/ipfw.set
# sleep 3

natd -f /etc/natd.conf
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to