Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 10:33:12 +0100
From:      Emre Bastuz <info@emre.de>
To:        freebsd-net@freebsd.org
Subject:   unable to set ip address during/after PPP?
Message-ID:  <1077787992.8b42fbc6cab56@webmail.emre.de>

next in thread | raw e-mail | index | archive | help
Hi,

I=B4m trying to run a 4.X box with multiple PPPoE connections (_not_ as a PP=
P
bundle or something like that).

Only about 5 connections come up, all further connections fail
with the error message:

Warning: iface add: ioctl(SIOCAIFADDR, x.x.x.x -> y.y.y.y): File exists
Error: ipcp_InterfaceUp: unable to set ip address

I know that this _used_ to work so I=B4m really wondering what goes wrong.

Here=B4s the relevant parts of ppp.conf:

test3:
 set log Phase Chat LCP IPCP CCP tun command
 set device PPPoE:vlan3:
 set phone 1234
 set authname test3@something
 set authkey my_pw
 set mru 1492
 set mtu 1492
 set timeout 0
 set speed sync
 set dial
 enable dns
 set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
 add 195.24.114.101/32 HISADDR

test4:
 set log Phase Chat LCP IPCP CCP tun command
 set device PPPoE:vlan4:
 set phone 1234
 set authname test4@something
 set authkey my_pw
 set mru 1492
 set mtu 1492
 set timeout 0
 set speed sync
 set dial
 enable dns
 set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
 add 195.24.114.102/32 HISADDR

test5:
 set log Phase Chat LCP IPCP CCP tun command
 set device PPPoE:vlan5:
 set phone 1234
 set authname test5@something
 set authkey my_pw
 set mru 1492
 set mtu 1492
 set timeout 0
 set speed sync
 set dial
 enable dns
 set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
 add 195.24.114.103/32 HISADDR

[etc]

Some explanation:
basically the box is connected to about 12 DSL modems. I want to have traffi=
c
through all of them and do some statistical analysis. In order to send data
through all those particular modems I need to set one default route and
multiple host routes to the gateway HISADDR - in case you are wondering abou=
t
the routing line.

Some more details from the ppp.log:

Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: SendConfigReq(38) s=
tate
=3D Req-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 0.0.0.0
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  PRIDNS[6] 213.168.112.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  SECDNS[6] 194.8.194.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: RecvConfigReq(46) s=
tate
=3D Req-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 195.14.247.94
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: SendConfigAck(46) s=
tate
=3D Req-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 195.14.247.94
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: State change Req-Se=
nt
--> Ack-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: RecvConfigNak(38) s=
tate
=3D Ack-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 81.173.153.228
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] changing address:
0.0.0.0  --> 81.173.153.228
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: SendConfigReq(39) s=
tate
=3D Ack-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 81.173.153.228
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  PRIDNS[6] 213.168.112.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  SECDNS[6] 194.8.194.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: RecvConfigAck(39) s=
tate
=3D Ack-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  IPADDR[6] 81.173.153.228
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  PRIDNS[6] 213.168.112.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP:  SECDNS[6] 194.8.194.60
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: State change Ack-Se=
nt
--> Opened
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: LayerUp.
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: myaddr 81.173.153.228 hisadd=
r =3D
195.14.247.94
Feb 26 10:25:50 localhost ppp[305]: tun6: Warning: iface add: ioctl(SIOCAIFA=
DDR,
81.173.153.228 -> 195.14.247.94): File exists
Feb 26 10:25:50 localhost ppp[305]: tun6: Error: ipcp_InterfaceUp: unable to=
 set
ip address
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: LayerDown:
81.173.153.228
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: Using trigger address 0.0.0.=
0
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: SendTerminateReq(40=
)
state =3D Opened
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: State change Opened=
 -->
Closing
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: RecvTerminateAck(40=
)
state =3D Closing
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: LayerFinish.
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: Connect time: 0 secs: 0 octe=
ts
in, 0 octets out
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: 0 packets in, 0 packets out

Everything seems to work fine in PPP but when it comes to assignin the
negotiated IP adress to a tun interface something seems to go wrong.

I=B4m really lost here ... anyone have an idea?

Thanks,

Emre

--
http://www.emre.de                        UIN: 561260
PGP Key ID: 0xAFAC77FD

I don't see why some people even HAVE cars. -- Calvin

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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