From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 23:41:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20B5316A400 for ; Wed, 7 Mar 2007 23:41:20 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id DC20813C4A7 for ; Wed, 7 Mar 2007 23:41:19 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 69028 invoked from network); 7 Mar 2007 23:41:19 -0000 Received: from adsl-75-3-93-223.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.93.223) by alpha.cyberleo.net with ESMTPA; 7 Mar 2007 23:41:19 -0000 Message-ID: <45EF4D99.6070406@cyberleo.net> Date: Wed, 07 Mar 2007 17:41:13 -0600 From: CyberLeo Kitsana User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: FreeBSD Questions References: <45EAE1AD.10706@cyberleo.net> In-Reply-To: <45EAE1AD.10706@cyberleo.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Solved: Router with multiple DSL uplinks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 23:41:20 -0000 CyberLeo Kitsana wrote: > Hi! > > I'm trying to configure a NAT router with multiple DSL uplinks from > the same provider. Everything seems to work properly, except when > connecting via PPPoE--the second link to come up receives an error > while attempting to configure the second tun interface, as both links > assign addresses in the same subnet and to the same peer. > > Is there some configuration or trick I can use to coerce the router to > bring up both links properly? > > PPp ON router1> Warning: iface add: ioctl(SIOCAIFADDR, xx.xx.xx.230/24 > -> 192.0.2.100): File exists > Error: ipcp_InterfaceUp: unable to set ip address This is caused by multiple ptp interfaces with the same peer address (192.0.2.100 in the above example). At least with SBC (AT&T), the actual IP there doesn't really matter, as it's just a way for the kernel to determine which interface to send the packet out on, and the other side will route the packet regardless. A simple iface up-script in mpd to change the peer IP to something else on each instance fixes the error nicely. This was for a multi-homed router project (2-4 DSL links, without ISP cooperation) that turns out to be quite functional. Details are at the following URL, for anyone interested (only notes for now): http://wiki.cyberleo.net/index.php/MultiHomedRouter Thanks! -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/