Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 02:49:22 +0200 (CEST)
From:      Janko van Roosmalen <janko@compuserve.com>
To:        "Salmons, Michael" <SalmonsM@missouri.edu>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ppp errors
Message-ID:  <Pine.BSF.4.10.10010050226230.1180-100000@parmenides.utp.net>
In-Reply-To: <7B5F4A3DED02D411B49B0000E889ECB70122B4F6@umc-mail02.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
I see a lot of initial spaces in your ppp.conf. I am not sure if this is
due to importing of your conf file in your mailer.

Older versions of ppp.conf required labels like default to start on the
first position of the line. This was explicitly mentioned in the man
page. Newer version seem to have more relaxed requirements. 

default:
 set device .............

and not

    default:
      set device ........etc

The configuration commands have to start on the second position of the
line with a space or a single tab.

It looks like your ppp.conf file is not read at all by the ppp
program/daemon. It does not parse your default section, and hence does not
see your modem is on cua000. This is probably due to not following the
formatting guidelines. 

===Janko van Roosmalen - Vught - Netherlands===

On Wed, 4 Oct 2000, Salmons, Michael wrote:

> 
> I've keyword searched the archives of this and other lists, Usenet and web
> at large, and I have not found anything close to this problem (except a
> question asked by a guy who did not include any system files in his post and
> apparently was not heard from again). So here goes... I am trying to enable
> user ppp via modem on my recently created freebsd system. I installed a
> standard OS (typical user + X Windows). I even used ppp via modem to install
> the OS itself, so in theory ppp via modem should be possible on this system!
> Here's what I get when in invoke ppp:
> 
> Working in interactive mode
> Using interface: tun0
> Warning: No default entry found in config file.

ppp cannot find your "default:" label and its entries

> 
> Fine, I think, despite the fact I've tweaked ppp.conf several times in an
> attempt to get ppp to see it! I decide to go into term mode:
> 
> term
> 
> deflink: entering terminal mode on /dev/cuaa1
> 
> (never mind the fact my modem is on cuaa0 as specified in ppp.conf...)
> of course it is no use trying to use interactive mode since it is looking at
> the wrong port.
> 
> I am using a very generic ppp.conf just to get a response from my modem. I
> have modified /etc/ttys and etc/gettytab so it is looking at the modem when
> login time comes.  Here's my ppp.conf (modified for the sake of modesty-
> replace username and password with valid account info)
> 
>     ################################################################
>     # PPP Configuration File ('/etc/ppp/ppp.conf')
>     #
>     # Default settings; These are always executed always when PPP
>     # is invoked and apply to all system configurations.
>     ################################################################
>     default:
>       set device /dev/cuaa0

default:
 set device /dev/cuaao

Align the "set" under the "e" of default.

>       set speed 115200
>       disable pred1
>       deny pred1
>       disable lqr
>       deny lqr
>       set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0
> OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"
>       set redial 3 10
>     #
>     #
>     ################################################################
>     #
>     # For interactive mode use this configuration:
>     #
>     # Invoke with `ppp -alias interactive`
>     #
>     ################################################################
>     interactive:
>       set authname username
>       set authkey password
>       set phone 1231234
>       set timeout 300
>       set openmode active
>       accept chap
>     #
>     ################################################################
>     #
>     # For demand-dial (automatic) mode we'll use this configuration:
>     #
>     # Invoke with: 'ppp -auto -alias demand'
>     #
>     ################################################################
>      demand:
>       set authname username
>       set authkey password
>       set phone 1231234
>       set timeout 300
>       set openmode active
>       accept chap
>       set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0
>       add 0 0 127.2.2.2
>     ################################################################
>     # End of /etc/ppp/ppp.conf
> 
> my modem is a US Robotics 56K V.90.
> 
> If nothing else, how do I get my system to look at cuaa0 by default in
> interactive mode so I can at least test the modem?
> 
> Any ideas why ppp can't see my default header? Or my demand header (The one
> I want to use ultimately)?
> 
> Thanks,
> 
> Michael Salmons
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10010050226230.1180-100000>