Date: Tue, 22 Mar 2005 19:52:19 -0500 From: Robert Huff <roberthuff@rcn.com> To: freebsd-questions@freebsd.org Subject: ifconfig Message-ID: <16960.48579.623987.286503@jerusalem.litteratus.org> In-Reply-To: <ef60af09050322160747322dda@mail.gmail.com> References: <ef60af09050322160747322dda@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16960.48579.623987.286503>