From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 04:15:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B9C516A4B3 for ; Wed, 8 Oct 2003 04:15:04 -0700 (PDT) Received: from rambo.401.cx (rambo.401.cx [80.65.205.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC8443F93 for ; Wed, 8 Oct 2003 04:15:03 -0700 (PDT) (envelope-from listsub@401.cx) Received: from 401.cx (132.dairy.twenty4help.se [80.65.195.132]) by rambo.401.cx (8.12.9/8.12.9) with ESMTP id h98BEucx076131 for ; Wed, 8 Oct 2003 13:15:01 +0200 (CEST) (envelope-from listsub@401.cx) Message-ID: <3F83F1AA.7060702@401.cx> Date: Wed, 08 Oct 2003 13:14:50 +0200 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: dhcp overrides default route X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 11:15:04 -0000 Hi list Lets say you have this in rc.conf: ifconfig_dc0="inet 1.2.3.4 netmask 255.255.255.0" ifconfig_dc1="DHCP" default_router="1.2.3.254" The network on dc1 is 192.168.0.0/24 with the default router on that subnet being 192.168.0.254. If I reboot the box, dhclient will set default router to 192.168.0.254, overriding the value I specified in rc.conf. Is there a way to prevent that? Right now, I have a shellscript that runs as soon as the box is finished booting that resets the default route to its correct value, but somehow it feels that this is not the right way to do it. -- R