[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Problem setting up PPP in Linux machine



 hi,

 iam trying to set up my system with PPP support.

 its  a Linux  Pentium i586 machine.

 i have compiled in PPP support into kernel as 

 a loadable module. and i checked the versions

 to be appropriate.

 i have some necessary scripts ready like

   /etc/ppp/options
   /etc/ppp/scripts/ppp-on
   /etc/ppp/scripts/ppp-on-dialer
   /etc/ppp/scripts/ppp-off

 i have a 33.6k bps/sec modem connected to my

 serial port /dev/ttyS1 as a link from /dev/modem.

 it is not a WINMODEM. 

 the log file shows 

    Aug 27 19:06:29 localhost kernel: CSLIP: code copyright 1989 Regents
                                         of the University of California 
    Aug 27 19:06:29 localhost kernel: PPP: version 2.3.7 (demand dialling) 
    Aug 27 19:06:29 localhost kernel: PPP line discipline registered.

  my PPP server needs me to run PPPD first on the server

  before logging in as user.

  can anybody help me why iam not able to connect to my server

  even when i run  ppp-on script , which as usual runs pppd on my system

  along with chat and with appropriate options.

  if i run pppd alone, the log shows

  Aug 28 14:32:01 localhost modprobe: can't locate module char-major-108
  Aug 28 14:32:01 localhost pppd[2214]: pppd 2.3.10 started by madhu, uid 503
  Aug 28 14:32:01 localhost pppd[2214]: Using interface ppp0
  Aug 28 14:32:01 localhost pppd[2214]: Connect: ppp0 <--> /dev/pts/3
  Aug 28 14:32:31 localhost pppd[2214]: LCP:timeout sending Config-Requests 
  Aug 28 14:32:31 localhost pppd[2214]: Connection terminated.
  Aug 28 14:32:31 localhost pppd[2214]: Exit. 


  and when i run ppp-on script, the log looks like

  Aug 29 00:12:28 localhost modprobe: can't locate module char-major-108
  Aug 29 00:12:28 localhost pppd[796]: pppd 2.3.10 started by madhu, uid0
  Aug 29 00:12:29 localhost chat[798]: timeout set to 3 seconds
  Aug 29 00:12:29 localhost chat[798]: abort on (\nBUSY\r)
  Aug 29 00:12:29 localhost chat[798]: abort on (\nNO ANSWER\r)
  Aug 29 00:12:29 localhost chat[798]: abort on
                                              (\nRINGING\r\n\r\nRINGING\r)
  Aug 29 00:12:29 localhost chat[798]: send (rAT^M)
  Aug 29 00:12:29 localhost chat[798]: expect (OK)
  Aug 29 00:12:32 localhost chat[798]: alarm
  Aug 29 00:12:32 localhost chat[798]: send (+++)
  Aug 29 00:12:32 localhost chat[798]: expect (OK)
  Aug 29 00:12:35 localhost chat[798]: alarm
  Aug 29 00:12:35 localhost chat[798]: Failed
  Aug 29 00:12:35 localhost pppd[796]: Connect script failed
  Aug 29 00:12:36 localhost pppd[796]: Exit.

  
  here are my scripts......

  #/etc/ppp/options

   -detach
   modem
   lock
   crtscts
   defaultroute
   debug
   noauth
   asyncmap 0


   #ppp-on script 
 
    #!/bin/sh

    TELEPHONE=3602096 	
    ACCOUNT=madhup		
    PASSWORD=madhup 	
    LOCAL_IP=0.0.0.0       
    REMOTE_IP=0.0.0.0       
    NETMASK=255.255.255.0 

   export TELEPHONE ACCOUNT PASSWORD

   exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS1 38400 \
	asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
	noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

  #ppp-on-dialer

    #!/bin/sh
    
    exec chat -v					\
	TIMEOUT		3				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
	''		\rAT				\
	'OK-+++\c-OK'	ATH0				\
	TIMEOUT		30				\
	OK		ATDT$TELEPHONE			\
	CONNECT		''				\
	ogin:--ogin:	$ACCOUNT			\
	assword:	$PASSWORD 
	                        
  please help me get out of this problem.

  
thanks in advance
Madhu Babu P







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]