Configuring for 1 static and 1 DHCP interface ?

Freddie Cash fjwcash at
Tue Nov 23 21:22:58 UTC 2010

On Tue, Nov 23, 2010 at 12:52 PM, Ronald F. Guilmette
<rfg at> wrote:
> I don't want the DHCP stuff to set -no- routes at all... I still do
> want it to create a route to  I just don't want it
> make any change to the default route that would otherwise be set,
> you know, as a result of the defaultrouter= statement in my /etc/rc.conf
> file.
> So is there a nice clean & simple way to get the DHCP stuff to only
> create just that route to , while leaving the default
> route alone?

dhclient doesn't set that route.  The kernel's networking code
automatically creates a route for the subnet when you add the IP to
the interface.

You can check this like so:
  ifconfig re0
  netstat -rn

Replace re0 with your interface.  You'll notice that just by adding an
IP with a subnet mask to an interface, you get a route for that subnet

Freddie Cash
fjwcash at

More information about the freebsd-net mailing list