Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2004 19:56:18 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-net@freebsd.org
Cc:        "Giovanni P. Tirloni" <gpt@tirloni.org>
Subject:   Re: tun interface address conflict
Message-ID:  <200412031956.24699.max@love2party.net>
In-Reply-To: <41B0A018.5020205@tirloni.org>
References:  <41B0A018.5020205@tirloni.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412031956.24699.max>