From owner-freebsd-stable@FreeBSD.ORG Thu Jan 12 21:37:43 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FBC116A41F for ; Thu, 12 Jan 2006 21:37:43 +0000 (GMT) (envelope-from tomjobbins@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B049E43D4C for ; Thu, 12 Jan 2006 21:37:42 +0000 (GMT) (envelope-from tomjobbins@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so495538wra for ; Thu, 12 Jan 2006 13:37:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oUAKUxtgQMVDwsAB7ovw27Tm1AFV80De2ZYjDLJigk721CItJ5ykYagRGTHueu5VhSYDCpYB6RHpIk7Fie4x7ovNlTJwuO93gvFQ+zzJiGrEN+ojCwWUtVbW76MT1rH6ephRiYTnpDhUH24NWiooJztAULUgCvcY7EcBNfWKcW4= Received: by 10.65.124.13 with SMTP id b13mr1202958qbn; Thu, 12 Jan 2006 13:37:41 -0800 (PST) Received: by 10.65.185.7 with HTTP; Thu, 12 Jan 2006 13:37:41 -0800 (PST) Message-ID: Date: Thu, 12 Jan 2006 21:37:41 +0000 From: Tom Jobbins To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Two PPP connections to the same ISP with same remote gateway X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 21:37:43 -0000 Hi, I have a FreeBSD 6.0-STABLE server running as my internet gateway. It was newly installed to 6.0-RELEASE yesterday, and built to -STABLE from a cvsup early this morning. I have two separate accounts at the same broadband ISP, with two separate PPPoE modems on two separate phone lines. I need to connect both of these simultaneously thus providing me with two PPP connections to the same ISP. The problem I am having is that both connections have the same remote gateway, and FreeBSD is preventing me from setting the IP address on the second connection because its gateway is the same. This can be demonstrated from the command line with the following: [root@magrathea:~]$ ifconfig tun0 1.2.3.5 1.2.3.250 [root@magrathea:~]$ ifconfig tun1 1.2.4.4 1.2.3.250 ifconfig: ioctl (SIOCAIFADDR): File exists Similarly when I connect using either ppp or mpd, I get the above error in the logs and the second connection fails. Either connection works on its own, but they won't work simultaneously. What is strange is that I was speaking to an op on the Efnet IRC channel #FreeBSDHelp who said he was able to execute the above two commands on his 6.0 machine without problems. So I am confused as to why it won't work for me. Perhaps there is some kernel or other configuration option he has set but I don't, which would make this work? If anyone could tell me a way to get this working I would be most grateful. Once the connections are established I will be using ipfilter to do source-IP routing, i.e. LAN machine 192.168.0.100 will be routed via tun0, 192.168.0.200 will be routed via tun1, etc. Thanks in advance Tom PS. Mulilink connections or any other method of combining the two PPP connections will not work for me - I need them to be separate and distinct, with their own IP addresses. If I had realised there would be this problem then I would have chosen a different broadband ISP for the second connectio= n - but now I'm stuck into a minimum contract so I need to get it working.