<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT size=2 face=Verdana>I'm trying to connect to a l2tp vpn service that 
uses L2TP without IPSEC. The server works well while I've used windows xp dial 
software to connect successful. However, when I installed and configured xl2tpd, 
I don't know how to make it work.<BR><BR>The configure file as 
below,<BR><BR>#xl2tpd.conf:<BR>[lac vpdn]<BR>lns = 60.190.129.52<BR>require chap 
= yes<BR>refuse pap = yes<BR>require authentication = yes<BR>; Name should be 
the same as the username in the PPP authentication!<BR>name = dcyjx<BR>ppp debug 
= yes<BR>pppoptfile = /etc/ppp/options.l2tpd.client<BR>length bit = 
yes<BR><BR><BR>vpdn.l2tpd:<BR>ipcp-accept-local<BR>ipcp-accept-remote<BR>refuse-eap<BR>noccp<BR>noauth<BR>crtscts<BR>idle 
1800<BR>mtu 1410<BR>mru 
1410<BR>nodefaultroute<BR>debug<BR>lock<BR>#proxyarp<BR>connect-delay 
5000<BR><BR>The log says the following:<BR><BR>Jul 30 14:04:25 localhost 
xl2tpd[8901]: setsockopt recvref[22]: Protocol not available <BR>Jul 30 14:04:25 
localhost xl2tpd[8901]: This binary does not support kernel L2TP. <BR>Jul 30 
14:04:25 localhost xl2tpd[8902]: xl2tpd version xl2tpd-1.2.6 started on 
localhost.localdomain PID:8902 <BR>Jul 30 14:04:25 localhost xl2tpd[8902]: 
Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. <BR>Jul 30 14:04:25 
localhost xl2tpd[8902]: Forked by Scott Balmos and David Stipp, (C) 2001 <BR>Jul 
30 14:04:25 localhost xl2tpd[8902]: Inherited by Jeff McAdams, (C) 2002 <BR>Jul 
30 14:04:25 localhost xl2tpd[8902]: Forked again by Xelerance (<A 
href="http://www.xelerance.com/" target=_blank><FONT 
color=#22229c>www.xelerance.com</FONT></A>) (C) 2006 <BR>Jul 30 14:04:25 
localhost xl2tpd[8902]: Listening on IP address 0.0.0.0, port 1701 <BR>Jul 30 
14:04:46 localhost xl2tpd[8902]: Connecting to host 60.190.129.52, port 1701 
<BR>Jul 30 14:04:46 localhost xl2tpd[8902]: Connection established to 
60.190.129.52, 1701. Local: 31891, Remote: 9070 (ref=0/0). <BR>Jul 30 14:04:46 
localhost xl2tpd[8902]: Calling on tunnel 31891 <BR>Jul 30 14:04:46 localhost 
xl2tpd[8902]: Call established with 60.190.129.52, Local: 54766, Remote: 32785, 
Serial: 1 (ref=0/0) <BR>Jul 30 14:04:46 localhost pppd[8905]: pppd 2.4.4 started 
by root, uid 0<BR>Jul 30 14:04:46 localhost pppd[8905]: Using interface 
ppp0<BR>Jul 30 14:04:46 localhost pppd[8905]: Connect: ppp0 <--> 
/dev/pts/5<BR>Jul 30 14:04:46 localhost xl2tpd[8902]: control_finish: Connection 
closed to 60.190.129.52, serial 1 () <BR>Jul 30 14:05:18 localhost xl2tpd[8902]: 
Calling on tunnel 31891 <BR>Jul 30 14:05:18 localhost xl2tpd[8902]: Call 
established with 60.190.129.52, Local: 8575, Remote: 30332, Serial: 2 (ref=0/0) 
<BR><BR>Could someone help me out?<BR>Let me know what more info is 
needed.<BR>I'm using redhat rhel 5</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Today, I use the debug command to check the 
problem, and it seems that there is something wrong with my baud rate. However, 
I don't know how to fix it, can someone help me ?<BR><BR>debug info in my 
server:<BR>[root@localhost aaa]# /usr/sbin/l2tpd -D<BR>This binary does not 
support kernel L2TP.<BR>l2tpd version 0.69 started on localhost.localdomain 
PID:10319<BR>Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.<BR>Forked 
by Scott Balmos and David Stipp, (C) 2001<BR>Inhereted by Jeff McAdams, (C) 
2002<BR>Linux version 2.6.18-53.el5 on a i686, listening on IP address 0.0.0.0, 
port 1701<BR>ourtid = 36250, entropy_buf = 8d9a<BR>check_control: control, cid = 
0, Ns = 0, Nr = 0<BR>handle_avps: handling avp's for tunnel 36250, call 
0<BR>message_type_avp: message type 1 
(Start-Control-Connection-Request)<BR>protocol_version_avp: peer is using 
version 1, revision 0.<BR>framing_caps_avp: supported peer frames: async 
sync<BR>bearer_caps_avp: supported peer bearers:<BR>firmware_rev_avp: peer 
reports firmware version 1680 (0x0690)<BR>hostname_avp: peer reports hostname 
'localhost.localdomain'<BR>vendor_avp: peer reports vendor 
'xelerance.com'<BR>assigned_tunnel_avp: using peer's tunnel 
49517<BR>receive_window_size_avp: peer wants RWS of 4. Will use flow 
control.<BR>check_control: control, cid = 0, Ns = 1, Nr = 1<BR>handle_avps: 
handling avp's for tunnel 36250, call 0<BR>message_type_avp: message type 3 
(Start-Control-Connection-Connected)<BR>control_finish: Connection established 
to 60.190.129.51, 1701. Local: 36250, Remote: 49517. LNS session is 
'default'<BR>check_control: control, cid = 0, Ns = 2, Nr = 1<BR>handle_avps: 
handling avp's for tunnel 36250, call 0<BR>message_type_avp: message type 10 
(Incoming-Call-Request)<BR>message_type_avp: new incoming call<BR>ourcid = 
51788, entropy_buf = ca4c<BR>assigned_call_avp: using peer's call 
56350<BR>call_serno_avp: serial number is 4<BR>bearer_type_avp: peer 
bears:digital<BR>check_control: control, cid = 56350, Ns = 3, Nr = 
2<BR>handle_avps: handling avp's for tunnel 36250, call 
51788<BR>message_type_avp: message type 12 
(Incoming-Call-Connected)<BR>tx_speed_avp: transmit baud rate is 
0<BR>frame_type_avp: peer uses:sync frames<BR>rx_speed_avp: receive baud rate is 
0<BR>control_finish: Peer did not specify transmit speed<BR>call_close: Call 
51788 to 60.190.129.51 disconnected<BR><BR>debug info in my 
client:<BR>[root@localhost dcyjx]# /usr/sbin/xl2tpd -D &<BR>[1] 
8865<BR>[root@localhost dcyjx]# xl2tpd[8865]: parse_config: lac context 
descriptor vpdn<BR>xl2tpd[8865]: parse_config: field is lns, value is 
60.190.129.52<BR>xl2tpd[8865]: set_lns: setting LNS to 
'60.190.129.52'<BR>xl2tpd[8865]: parse_config: field is require chap, value is 
yes<BR>xl2tpd[8865]: set_require chap: require chap flag to 
'yes'<BR>xl2tpd[8865]: parse_config: field is refuse pap, value is 
yes<BR>xl2tpd[8865]: set_refuse pap: refuse pap flag to 'yes'<BR>xl2tpd[8865]: 
parse_config: field is require authentication, value is yes<BR>xl2tpd[8865]: 
set_require authentication: require authentication flag to 
'yes'<BR>xl2tpd[8865]: parse_config: field is name, value is 
dcyjx<BR>xl2tpd[8865]: set_name: name flag to 'dcyjx'<BR>xl2tpd[8865]: 
parse_config: field is ppp debug, value is yes<BR>xl2tpd[8865]: set_ppp debug: 
ppp debug flag to 'yes'<BR>xl2tpd[8865]: parse_config: field is pppoptfile, 
value is /etc/ppp/options.l2tpd.client<BR>xl2tpd[8865]: set_pppoptfile: 
pppoptfile flag to '/etc/ppp/options.l2tpd.client'<BR>xl2tpd[8865]: 
parse_config: field is length bit, value is yes<BR>xl2tpd[8865]: set_length bit: 
length bit flag to 'yes'<BR>xl2tpd[8865]: setsockopt recvref[22]: Protocol not 
available<BR>xl2tpd[8865]: This binary does not support kernel 
L2TP.<BR>xl2tpd[8865]: xl2tpd version xl2tpd-1.2.6 started on 
localhost.localdomain PID:8865<BR>xl2tpd[8865]: Written by Mark Spencer, 
Copyright (C) 1998, Adtran, Inc.<BR>xl2tpd[8865]: Forked by Scott Balmos and 
David Stipp, (C) 2001<BR>xl2tpd[8865]: Inherited by Jeff McAdams, (C) 
2002<BR>xl2tpd[8865]: Forked again by Xelerance (<A 
href="http://www.xelerance.com/" target=_blank><FONT 
color=#22229c>www.xelerance.com</FONT></A>) (C) 2006<BR>xl2tpd[8865]: Listening 
on IP address 0.0.0.0, port 1701<BR><BR>[root@localhost dcyjx]# echo "c vpdn" 
> /var/run/xl2tpd/l2tp-control <BR>[root@localhost dcyjx]# xl2tpd[8865]: 
do_control: Got message c vpdn (6 bytes long)<BR>xl2tpd[8865]: ourtid = 43333, 
entropy_buf = a945<BR>xl2tpd[8865]: Connecting to host 60.190.129.52, port 
1701<BR>xl2tpd[8865]: trying to send control packet to 43333<BR>xl2tpd[8865]: 
control_xmit: Scheduling and transmitting packet 0<BR>xl2tpd[8865]: 
check_control: control, cid = 0, Ns = 0, Nr = 1<BR>xl2tpd[8865]: trying to send 
control packet to 43333<BR>xl2tpd[8865]: control_xmit: Scheduling and 
transmitting packet 1<BR>xl2tpd[8865]: control_finish: scheduling initial HELLO 
on 43333<BR>xl2tpd[8865]: Connection established to 60.190.129.52, 1701. Local: 
43333, Remote: 64277 (ref=0/0).<BR>xl2tpd[8865]: ourcid = 1671, entropy_buf = 
687<BR>xl2tpd[8865]: Calling on tunnel 43333<BR>xl2tpd[8865]: trying to send 
control packet to 43333<BR>xl2tpd[8865]: control_xmit: Scheduling and 
transmitting packet 2<BR>xl2tpd[8865]: check_control: control, cid = 0, Ns = 1, 
Nr = 2<BR>xl2tpd[8865]: handle_packet: control ZLB received<BR>xl2tpd[8865]: 
check_control: control, cid = 0, Ns = 1, Nr = 3<BR>xl2tpd[8865]: Call 
established with 60.190.129.52, Local: 1671, Remote: 38090, Serial: 1 
(ref=0/0)<BR>xl2tpd[8865]: trying to send control packet to 
43333<BR>xl2tpd[8865]: control_xmit: Scheduling and transmitting packet 
3<BR>xl2tpd[8865]: start_pppd: I'm running: <BR>xl2tpd[8865]: "/usr/sbin/pppd" 
<BR>xl2tpd[8865]: "passive" <BR>xl2tpd[8865]: "nodetach" <BR>xl2tpd[8865]: ":" 
<BR>xl2tpd[8865]: "refuse-pap" <BR>xl2tpd[8865]: "auth" <BR>xl2tpd[8865]: 
"require-chap" <BR>xl2tpd[8865]: "name" <BR>xl2tpd[8865]: "dcyjx" 
<BR>xl2tpd[8865]: "debug" <BR>xl2tpd[8865]: "file" <BR>xl2tpd[8865]: 
"/etc/ppp/options.l2tpd.client" <BR>xl2tpd[8865]: "/dev/pts/5" <BR>xl2tpd[8865]: 
check_control: control, cid = 0, Ns = 2, Nr = 3<BR>xl2tpd[8865]: handle_packet: 
control ZLB received<BR>xl2tpd[8865]: check_control: control, cid = 38090, Ns = 
2, Nr = 4<BR>xl2tpd[8865]: handle_packet: control ZLB received<BR>xl2tpd[8865]: 
check_control: control, cid = 38090, Ns = 2, Nr = 4<BR>xl2tpd[8865]: 
control_finish: Connection closed to 60.190.129.52, serial 1 ()<BR>xl2tpd[8865]: 
control_zlb: sending control ZLB on tunnel 64277<BR>xl2tpd[8865]: call_close: 
Actually closing call 1671<BR>xl2tpd[8865]: Terminating pppd: sending KILL 
signal to pid 8866<BR>xl2tpd[8865]: trying to send control packet to 
43333<BR>xl2tpd[8865]: control_xmit: Tossing packet 0<BR>xl2tpd[8865]: trying to 
send control packet to 43333<BR>xl2tpd[8865]: control_xmit: Tossing packet 
1<BR>xl2tpd[8865]: trying to send control packet to 43333<BR>xl2tpd[8865]: 
control_xmit: Tossing packet 2<BR>xl2tpd[8865]: trying to send control packet to 
43333<BR>xl2tpd[8865]: control_xmit: Tossing packet 3<!-- google_ad_section_end --><!-- google_ad_section_end --></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2011-08-01 
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>DioDeng</SPAN> 
</FONT></DIV></FONT></BODY></HTML>