ifconfig
    Robert Huff 
    roberthuff at rcn.com
       
    Tue Mar 22 16:51:34 PST 2005
    
    
  
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
    
    
More information about the freebsd-questions
mailing list