Subject: Re: Re: [ pppd ] - error 738: the server did not assign an address
To: None <cube@cubidou.net>
From: Joel CARNAT <joel@carnat.net>
List: netbsd-users
Date: 12/04/2004 21:13:34
On Sat, Dec 04 2004 - 01:37, cube@cubidou.net wrote:
> On Sat, Dec 04, 2004 at 12:42:25AM +0100, Joel CARNAT wrote:
> > Hi,
> > 
> > I'm trying to setup l2tpd to connect a windows laptop to a netbsd
> > server. It seems that the pppd process fails to assign address to the
> > windows box. I just can't find any googleable error messages.
> > 
> > Can anyone help, please ?
> > 
> > Here's what pppd says :
> 
> Well, I guess l2tpd should have somewhere a configuration to assign
> addresses.  It's not like pppd can guess out of nowhere, and there
> is no IP address defined in your options file.  So please provide
> l2tpd configuration.

sure ! here it is :
;#############################################################################
; L2TPd configuration
;#############################################################################
;

[global]
port = 1701
 
[lns default]
ip range = 10.0.0.50 - 10.0.0.60
local ip = 10.0.0.1
require chap = yes
refuse pap = yes
require authentication = yes
hostname = VPNserver
;ppp debug = yes
pppoptfile = /etc/ppp/options
length bit = yes

the gateway has 3 interfaces : public (ADSL), 10.0.0.1 (ethernet) and
10.15.5.12 (wifi 54Mbits). the client has it's wifi card configured
as 10.15.5.21 and I expect the VPN to be established through the wifi
interface.

I'll also add the debug log of l2ptd (in case it's usefull).

########################################
Dec  4 00:35:31 cherie l2tpd[29028]: This binary does not support kernel L2TP. 
Dec  4 00:35:31 cherie l2tpd[29028]: l2tpd version 0.69 started on cherie.tumfatig.net PID:29028 
Dec  4 00:35:31 cherie l2tpd[29028]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. 
Dec  4 00:35:31 cherie l2tpd[29028]: Forked by Scott Balmos and David Stipp, (C) 2001 
Dec  4 00:35:31 cherie l2tpd[29028]: Inherited by Jeff McAdams, (C) 2002 
Dec  4 00:35:31 cherie l2tpd[29028]: NetBSD version 2.0_RC5 on a i386, addr 0.0.0.0, port 1701 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 0 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 1 (Start-Control-Connection-Request) 
Dec  4 00:35:40 cherie l2tpd[29028]: protocol_version_avp: peer is using version 1, revision 0. 
Dec  4 00:35:40 cherie l2tpd[29028]: framing_caps_avp: supported peer frames: sync 
Dec  4 00:35:40 cherie l2tpd[29028]: bearer_caps_avp: supported peer bearers: 
Dec  4 00:35:40 cherie l2tpd[29028]: firmware_rev_avp: peer reports firmware version 1280 (0x0500) 
Dec  4 00:35:40 cherie l2tpd[29028]: hostname_avp: peer reports hostname 'atheria.tumfatig.net' 
Dec  4 00:35:40 cherie l2tpd[29028]: vendor_avp: peer reports vendor 'Microsoft^@^H' 
Dec  4 00:35:40 cherie l2tpd[29028]: assigned_tunnel_avp: using peer's tunnel 35 
Dec  4 00:35:40 cherie l2tpd[29028]: receive_window_size_avp: peer wants RWS of 8.  Will use flow control. 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 0 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 3 (Start-Control-Connection-Connected) 
Dec  4 00:35:40 cherie l2tpd[29028]: control_finish: Connection established to 10.15.5.21, 1701.  Local: 53161, Remote: 35.  LNS session is 'default' 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 0 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 10 (Incoming-Call-Request) 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: new incoming call 
Dec  4 00:35:40 cherie l2tpd[29028]: assigned_call_avp: using peer's call 1 
Dec  4 00:35:40 cherie l2tpd[29028]: call_serno_avp: serial number is 0 
Dec  4 00:35:40 cherie l2tpd[29028]: bearer_type_avp: peer bears: analog 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 44930 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 12 (Incoming-Call-Connected) 
Dec  4 00:35:40 cherie l2tpd[29028]: tx_speed_avp: transmit baud rate is 54000000 
Dec  4 00:35:40 cherie l2tpd[29028]: frame_type_avp: peer uses:sync frames 
Dec  4 00:35:40 cherie l2tpd[29028]: ignore_avp : Ignoring AVP 
Dec  4 00:35:40 cherie l2tpd[29028]: control_finish: Call established with 10.15.5.21, Local: 44930, Remote: 1, Serial: 0 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 44930 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 14 (Call-Disconnect-Notify) 
Dec  4 00:35:40 cherie l2tpd[29028]: result_code_avp: peer closing for reason 3 (Control channel already exists), error = 0 () 
Dec  4 00:35:40 cherie l2tpd[29028]: assigned_call_avp: using peer's call 1 
Dec  4 00:35:40 cherie l2tpd[29028]: control_finish: Connection closed to 10.15.5.21, serial 0 () 
Dec  4 00:35:40 cherie l2tpd[29028]: child_handler : pppd died for call 1 
Dec  4 00:35:40 cherie l2tpd[29028]: handle_avps: handling avp's for tunnel 53161, call 0 
Dec  4 00:35:40 cherie l2tpd[29028]: message_type_avp: message type 4 (Stop-Control-Connection-Notification) 
Dec  4 00:35:40 cherie l2tpd[29028]: assigned_tunnel_avp: using peer's tunnel 35 
Dec  4 00:35:40 cherie l2tpd[29028]: result_code_avp: peer closing for reason 6 (Requester is being shut down), error = 0 () 
Dec  4 00:35:40 cherie l2tpd[29028]: control_finish: Connection closed to 10.15.5.21, port 1701 (), Local: 53161, Remote: 35 
Dec  4 00:35:45 cherie l2tpd[29028]: death_handler: Fatal signal 2 received