unable to set ip address during/after PPP?

Emre Bastuz info at emre.de
Thu Feb 26 01:33:17 PST 2004


Hi,

I´m trying to run a 4.X box with multiple PPPoE connections (_not_ as a PPP
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´m really wondering what goes wrong.

Here´s 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 at 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 at 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 at 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 traffic
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 about
the routing line.

Some more details from the ppp.log:

Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: SendConfigReq(38) state
= 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) state
= 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) state
= 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-Sent
--> Ack-Sent
Feb 26 10:25:50 localhost ppp[305]: tun6: IPCP: deflink: RecvConfigNak(38) state
= 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) state
= 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) state
= 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-Sent
--> 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 hisaddr =
195.14.247.94
Feb 26 10:25:50 localhost ppp[305]: tun6: Warning: iface add: ioctl(SIOCAIFADDR,
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 = 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 = 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 octets
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´m 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.



More information about the freebsd-net mailing list