From owner-freebsd-net@FreeBSD.ORG Fri Dec 3 18:55:52 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A9D716A4CE for ; Fri, 3 Dec 2004 18:55:52 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 827D743D46 for ; Fri, 3 Dec 2004 18:55:51 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CaIap-0001AS-00; Fri, 03 Dec 2004 19:55:47 +0100 Received: from [217.83.2.51] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CaIap-0001nP-00; Fri, 03 Dec 2004 19:55:47 +0100 From: Max Laier To: freebsd-net@freebsd.org Date: Fri, 3 Dec 2004 19:56:18 +0100 User-Agent: KMail/1.7.1 References: <41B0A018.5020205@tirloni.org> In-Reply-To: <41B0A018.5020205@tirloni.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1986405.t61413SSZ0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412031956.24699.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: "Giovanni P. Tirloni" Subject: Re: tun interface address conflict X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 18:55:52 -0000 --nextPart1986405.t61413SSZ0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 03 December 2004 18:19, Giovanni P. Tirloni wrote: > Hi, > > I tried to connect two ADSL lines from the same telco using ppp but > it breaks when setting the second interface. The problem seems an > address conflict between them, like this: > > # ifconfig tun1 192.168.100.1 192.168.100.254 netmask 255.255.255.255 > # ifconfig tun2 192.168.100.2 192.168.100.254 netmask 255.255.255.255 > ifconfig: ioctl (SIOCAIFADDR): File exists > > "File exists" is the same error that I find on /var/log/ppp.log. Is > there anything that can be done to use both at the same time? As a quick fix you can just delete the route table entry created from tun1= =20 before you ifconfig tun2. In your example you'd do: # route delete 192.168.100.254 Of course you have to take care of the routing for yourself. Alternatively (assumeing you are on RELENG_5) you can try to apply the=20 following patch: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/in.c.diff?r1=3D1.7= 7&r2=3D1.80 to src/sys/netinet/in.c which should fix the problem altogether. Please tel= l=20 me if you have troubles with it as I am going to MFC this shortly. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1986405.t61413SSZ0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBsLbYXyyEoT62BG0RAtWgAJ9YZfZKX528uWh2xaU4kmh7Y1yoHACeLviw I3bjkOLTIPK5mXn1KkhdhSk= =LFMA -----END PGP SIGNATURE----- --nextPart1986405.t61413SSZ0--