From owner-freebsd-net@FreeBSD.ORG Tue Nov 23 21:07:53 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 606FC106564A for ; Tue, 23 Nov 2010 21:07:53 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 41F8A8FC0A for ; Tue, 23 Nov 2010 21:07:52 +0000 (UTC) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id B5299BDC75 for ; Tue, 23 Nov 2010 13:07:52 -0800 (PST) To: freebsd-net@freebsd.org In-Reply-To: Date: Tue, 23 Nov 2010 13:07:52 -0800 Message-ID: <46085.1290546472@tristatelogic.com> From: "Ronald F. Guilmette" Subject: Re: Configuring for 1 static and 1 DHCP interface ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 21:07:53 -0000 In message , Freddie Cash wrote: >On Tue, Nov 23, 2010 at 12:52 PM, Ronald F. Guilmette > wrote: >> I don't want the DHCP stuff to set -no- routes at all... I still do >> want it to create a route to 192.168.1.0/24. =C2=A0I 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=3D statement in my /etc/rc.con= >f >> file. >> >> So is there a nice clean & simple way to get the DHCP stuff to only >> create just that route to 192.168.1.0/24 , 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. Ah! Yes! Right. The ifconfig. I forgot about that. Thanks. OK, so if I tell the DHCP stuff to set no routes, then the ifconfig will setup the route for 192.168.1.0/24 and all else will remain unmolested. That sounds perfect to me. Thanks.