From owner-freebsd-questions@FreeBSD.ORG Sat May 17 18:42:26 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 F085B37B401 for ; Sat, 17 May 2003 18:42:26 -0700 (PDT) Received: from pop016.verizon.net (pop016pub.verizon.net [206.46.170.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1E1743FBF for ; Sat, 17 May 2003 18:42:25 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([129.44.60.214]) by pop016.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030518014224.LCTX3199.pop016.verizon.net@mac.com>; Sat, 17 May 2003 20:42:24 -0500 Message-ID: <3EC6E4F6.60201@mac.com> Date: Sat, 17 May 2003 21:42:14 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Puyol , freebsd-questions@freebsd.org References: <27871523-88AD-11D7-A24E-000393562F10@noos.fr> In-Reply-To: <27871523-88AD-11D7-A24E-000393562F10@noos.fr> X-Enigmail-Version: 0.75.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop016.verizon.net from [129.44.60.214] at Sat, 17 May 2003 20:42:24 -0500 Subject: Re: dual homed host 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: Sun, 18 May 2003 01:42:27 -0000 Robert Puyol wrote: [ ... ] > My setup is: one FreBSD server, one interface, two ISP, each providing a > router. So I would like to set up a dual homed host, to be able use the > two ISP. "Dual-homed" refers to a machine with two physical network interfaces. > 0) do I need to do a sysctl net.inet.ip.forwarding=1 to get a working > dual homed host ? You'd enable ipforwarding if you wanted the machine to route traffic between two or more physical network interfaces...but that's not what you have. > 1) I set an alias (private IP to use the ISP2): "ifconfig rl0 inet > 10.0.1.4 netmask 255.255.255.0 alias", the I can ping 10.0.1.4 but not > the router at 10.0.1.1. What's wrong ? If your alias is on the same subnet, you need to use a netmask of 255.255.255.255, I believe. > 2) I set route: "route add -net 10.0.1/24 10.0.1.1 0", but yet I am > still not able to ping the router at 10.0.1.1 or to ping my public IP > from another network. Yeah: I don't think what you were trying is going to work. > If I set the defaultrouter=10.0.1.1 (ISP2 router on my network) in > rc.conf I can use the ISP2 public IP to acces my server, but then I > loose the access to the primary IP of the ISP1... You can only have one static default route. Fancier routing protocols-- specificly, dynamicly link state protocols like OSPF-- are what's neeeded for what you're trying to do. -Chuck