From owner-freebsd-stable@FreeBSD.ORG Tue Jan 17 04:23:03 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 621F716A41F for ; Tue, 17 Jan 2006 04:23:03 +0000 (GMT) (envelope-from tomj@tom.tj) Received: from mail.bett.in (mail.bett.in [216.237.118.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D7CF43D4C for ; Tue, 17 Jan 2006 04:23:00 +0000 (GMT) (envelope-from tomj@tom.tj) Received: from [127.0.0.1] (host-84-9-35-2.bulldogdsl.com [84.9.35.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bett.in (Postfix) with ESMTP id 7D39367808 for ; Thu, 12 Jan 2006 12:34:44 +0000 (GMT) Message-ID: <43C64CBF.9000205@tom.tj> Date: Thu, 12 Jan 2006 12:34:07 +0000 From: Tom Jobbins User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 17 Jan 2006 04:23:03 -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.6 1.2.3.250 [root@magrathea:~]$ ifconfig tun1 1.2.3.7 1.2.3.250 ifconfig: ioctl (SIOCAIFADDR): File exists 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. Ultimately what I need to achieve is two simulatenous PPP connections to the same ISP using the same remote gateway. Once these 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 connection - but now I'm stuck into a minimum contract so I need to get it working.