On Fri, 2004-05-14 at 11:06, Archana Gudi wrote: 
> Hi,
> We have l2tpd running on 2 linux machines connected across a router.
> 
> One as LAC and other as LNS.
> 
> after starting l2tpd, we use echo "t > lns-ip" /var/run/l2tpd-control.
> And then "c tid" ..
> 
> Then it starts ppp negotiation. and gives LCP request time out.
> both lns and lac have /etc/ppp/pap-secrets configured with same user
> name and password.
> 
> I have given the lac and lns configuration. Also the out put of l2tpd
> and /var/log/messages out put on LAC.
> Please help me getting this issue resolved,
> ********************************************************************************
> 
> 
> Configuration params on LAC
> 
> -----------------------------
> 
> [global] ; Global parameters:
> 
> port = 1701 ; * Bind to port 1701
> 
> auth file = /etc/ppp/pap-secrets ; * Where our challenge secrets are
> 
> access control = no ; * Refuse connections without IP match
> 
> 
> [lac lsi-labpc1] ; Example VPN LAC definition
> 
> lns = 172.16.18.30 ; * Who is our LNS?
> 
> redial = yes ; * Redial if disconnected?
> 
> redial timeout = 50 ; * Wait n seconds between redials
> 
> max redials = 15 ; * Give up after n consecutive failures
> 
> refuse pap = no ; * Refuse PAP authentication
> 
> refuse chap = no ; * Refuse CHAP authentication
> 
> require authentication = yes ; * Require peer to authenticate
> 
> name = lsi-labpc1 ; * Report this as our hostname
> 
> ppp debug = yes ; * Turn on PPP debugging
> 
> pppoptfile = /etc/ppp/options.l2tpd ; * ppp options file for this lac
> 
> call rws = 10 ; * RWS for call (-1 is valid)
> 
> tunnel rws = 4 ; * RWS for tunnel (must be > 0)
> 
> flow bit = yes ; * Include sequence numbers
> 
> 
> Configuration params on LNS
> 
> -----------------------------
> 
> [lns PC2] ; Our fallthrough LNS definition
> 
> ip range = 172.16.212.10-172.16.212.20 ; * Allocate from this IP range
> 
> lac = 172.16.170.102 ; * These can connect as LAC's
> 
> local ip = 172.16.212.1 ; * Our local IP to use
> 
> require authentication = no ; * Require peer to authenticate
> 
> name = PC2 ; * Report this as our hostname
> 
> ppp debug = yes ; * Turn on PPP debugging
> 
> pppoptfile = /etc/ppp/options.l2tpd ; * ppp options file
> 
> tunnel rws = 4 ; * RWS for tunnel (must be > 0)
> 
> 
> ********************************************************************************
> 
> ********************************************************************************
> 
> Output of : /var/log/messages
> 
> ------------------------
> 
> ay 14 11:04:01 lsi-labpc1 l2tpd[7467]: This binary does not support
> kernel L2TP
> 
> .
> 
> May 14 11:04:01 lsi-labpc1 l2tpd[7467]: l2tpd version 0.69 started on
> lsi-labpc1
> 
> PID:7467
> 
> May 14 11:04:01 lsi-labpc1 l2tpd[7467]: Written by Mark Spencer,
> Copyright (C) 1
> 
> 998, Adtran, Inc.
> 
> May 14 11:04:01 lsi-labpc1 l2tpd[7467]: Forked by Scott Balmos and David
> Stipp,
> 
> (C) 2001
> 
> May 14 11:04:01 lsi-labpc1 l2tpd[7467]: Inhereted by Jeff McAdams, (C)
> 2002
> 
> May 14 11:04:01 lsi-labpc1 l2tpd[7467]: Linux version 2.4.20-8 on a
> i686, port 1
> 
> 701
> 
> May 14 11:04:14 lsi-labpc1 l2tpd[7467]: l2tp_call:Connecting to host
> 172.16.18.3
> 
> 0, port 1701
> 
> May 14 11:04:14 lsi-labpc1 l2tpd[7467]: control_finish: Connection
> established t
> 
> o 172.16.18.30, 1701. Local: 52129, Remote: 64028.
> 
> May 14 11:04:26 lsi-labpc1 l2tpd[7467]: lac_call: Calling on tunnel
> 52129
> 
> May 14 11:04:26 lsi-labpc1 l2tpd[7467]: control_finish: Call established
> with 17
> 
> 2.16.18.30, Local: 54169, Remote: 22458, Serial: 1
> 
> May 14 11:04:26 lsi-labpc1 pppd[7468]: pppd 2.4.1 started by root, uid 0
> 
> May 14 11:04:26 lsi-labpc1 pppd[7468]: Using interface ppp0
> 
> May 14 11:04:26 lsi-labpc1 pppd[7468]: Connect: ppp0 <--> /dev/pts/2
> 
> May 14 11:04:26 lsi-labpc1 /etc/hotplug/net.agent: assuming ppp0 is
> already up
> 
> May 14 11:04:56 lsi-labpc1 pppd[7468]: LCP: timeout sending
> Config-Requests
> 
> ********************************************************************************
> 
> ********************************************************************************
> 
> 
> 
> 
> Output of l2tpd command
> 
> ------------------------
> 
> 
> [EMAIL PROTECTED] l2tpd-0.69]# ./l2tpd -D -c doc/l2tpd.conf.sample -s
> /home/archana/l2tp.sec
> 
> This binary does not support kernel L2TP.
> 
> l2tpd version 0.69 started on lsi-labpc1 PID:7467
> 
> Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
> 
> Forked by Scott Balmos and David Stipp, (C) 2001
> 
> Inhereted by Jeff McAdams, (C) 2002
> 
> Linux version 2.4.20-8 on a i686, port 1701
> 
> do_control: Got message t 172.16.18.30 (14 bytes long)
> 
> do_control: Attempting to tunnel to 172.16.18.30
> 
> ourtid = 52129, entropy_buf = cba1
> 
> l2tp_call:Connecting to host 172.16.18.30, port 1701
> 
> check_control: control, cid = 0, Ns = 0, Nr = 1
> 
> handle_avps: handling avp's for tunnel 52129, call 0
> 
> message_type_avp: message type 2 (Start-Control-Connection-Reply)
> 
> protocol_version_avp: peer is using version 1, revision 0.
> 
> framing_caps_avp: supported peer frames: async sync
> 
> bearer_caps_avp: supported peer bearers:
> 
> firmware_rev_avp: peer reports firmware version 1680 (0x0690)
> 
> hostname_avp: peer reports hostname 'eriwan'
> 
> vendor_avp: peer reports vendor 'l2tpd.org'
> 
> assigned_tunnel_avp: using peer's tunnel 64028
> 
> receive_window_size_avp: peer wants RWS of 4. Will use flow control.
> 
> control_finish: Connection established to 172.16.18.30, 1701. Local:
> 52129, Remote: 64028.
> 
> check_control: control, cid = 0, Ns = 1, Nr = 2
> 
> do_control: Got message c 52129 (7 bytes long)
> 
> do_control: Attempting to call on tunnel 52129
> 
> ourcid = 54169, entropy_buf = d399
> 
> lac_call: Calling on tunnel 52129
> 
> check_control: control, cid = 0, Ns = 1, Nr = 3
> 
> handle_avps: handling avp's for tunnel 52129, call 54169
> 
> message_type_avp: message type 11 (Incoming-Call-Reply)
> 
> assigned_call_avp: using peer's call 22458
> 
> control_finish: Call established with 172.16.18.30, Local: 54169,
> Remote: 22458, Serial: 1
> 
> start_pppd: I'm running: "/usr/sbin/pppd" "passive" "-detach"
> 
> check_control: control, cid = 0, Ns = 2, Nr = 3
> 
> check_control: control, cid = 22458, Ns = 2, Nr = 4
> 
> check_control: control, cid = 0, Ns = 2, Nr = 5
> 
> check_control: control, cid = 0, Ns = 2, Nr = 5
> 
> handle_avps: handling avp's for tunnel 52129, call 0
> 
> message_type_avp: message type 6 (Hello)
> 
> check_control: control, cid = 0, Ns = 3, Nr = 6
> 
> check_control: control, cid = 0, Ns = 3, Nr = 6
> 
> 
> 
> ********************************************************************************
> 
> 
> thanks and regards,
> archana
> 
> 
> 


Reply via email to