From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 17:58:22 2004 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 C007E16A4CE for ; Tue, 27 Jan 2004 17:58:22 -0800 (PST) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id C422E43D53 for ; Tue, 27 Jan 2004 17:58:20 -0800 (PST) (envelope-from lukek@meibin.net) Received: (qmail 54916 invoked by uid 89); 28 Jan 2004 01:58:19 -0000 Received: from unknown (HELO ?127.0.0.1?) (192.168.10.35) by 192.168.20.5 with SMTP; 28 Jan 2004 01:58:19 -0000 Date: Wed, 28 Jan 2004 10:54:24 +0900 From: Luke Kearney To: "Martin and Belinda Richardson" In-Reply-To: References: Message-Id: <20040128105152.F0F5.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 cc: freebsd-questions@freebsd.org Subject: Re: Default route problem 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, 28 Jan 2004 01:58:22 -0000 On Wed, 28 Jan 2004 12:54:08 +1100 "Martin and Belinda Richardson" granted us these pearls of wisdom: > Hi everyone, > I am having a problem with a gateway I am building for a friend. I have > initially set the box up on my home network and have set this box to use my > gateway temporarily while I fetch some ports etc. Now that I have removed it > from my network, and edited /etc/rc.conf to set it up to act as a gateway, > it STILL sets the default route to my old gateway. I cant find any config > file that says "add default route" or anything. I have not set defaultroute > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf! > If I use /stand/sysinstall to configure the interface, I notice that there > is a value already there for the ipV4 gateway (my gateway). deleting this > here does not work. There must be a file somewhere that I have not seen > causing me the trouble. Please help! > AFAIK the only place you need to make changes is /etc/rc.conf then either reboot or sh /etc/netstart and you should be good to go. You could manually add that route though whilst the machine is up, # route add default 192.168.X.X and that should be OK too. what is the output of netstat -rn ? HTH LukeK