From owner-freebsd-net@FreeBSD.ORG Tue Nov 23 21:22:57 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 F1F2F106564A for ; Tue, 23 Nov 2010 21:22:57 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id AC2868FC0A for ; Tue, 23 Nov 2010 21:22:57 +0000 (UTC) Received: by gxk8 with SMTP id 8so181918gxk.13 for ; Tue, 23 Nov 2010 13:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DbEVcsrSHbUL1CWQOXN4siHKlNnLU27rdvYBRXXczQA=; b=FHyzr/ejvjXWpcVG5hnP+T1Hm1pm3/v9r9sNRFoWaIiHmwlhU0+eQ9GR9bQWy0JHTq FzCQmyaEnmSeARcSRPS1v8BZKCJRttF9xe4CvHWFe/Gtg5YNGIEOf6bdMAWLs9F5felK I+5eZtKFNWeoxp+pRS013p95yj63OUxvUptpc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=F7InK7bWBOUULLDXPN6105fMAdfD6Hg7OKSDZiadE2XaB8KIJFfPD4C5pwI+QaOuTf U/WihwZBFZz/hgduSTMUfTd26YWufEN+eeRORGD6i+mASrJ8Pl/KXZkFc5ZalUYqmABv g4LorD6VSl5m7GwyHGCHOx1Ukt/RjjMpgm7qw= MIME-Version: 1.0 Received: by 10.90.72.16 with SMTP id u16mr9253490aga.138.1290545860511; Tue, 23 Nov 2010 12:57:40 -0800 (PST) Received: by 10.90.211.7 with HTTP; Tue, 23 Nov 2010 12:57:40 -0800 (PST) In-Reply-To: <45858.1290545572@tristatelogic.com> References: <20101123155323.GA51348@laptop.levsha.me> <45858.1290545572@tristatelogic.com> Date: Tue, 23 Nov 2010 12:57:40 -0800 Message-ID: From: Freddie Cash To: "Ronald F. Guilmette" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org 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:22:58 -0000 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. You can check this like so: ifconfig re0 172.20.0.1/24 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 created. --=20 Freddie Cash fjwcash@gmail.com