Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 1998 08:11:32 -0400 (EDT)
From:      BEAUPRE Antoine <beaupran@JSP.UMontreal.CA>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Doug White <dwhite@resnet.uoregon.edu>, freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Little PPP stupid probs... 
Message-ID:  <Pine.SGI.3.96.980919075520.28104A-100000@derby.jsp.umontreal.ca>
In-Reply-To: <199809182314.AAA02868@woof.lan.awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
So here's what I tried:

ppp.linkup:
-------------------
MYADDR:
 delete! 0
 add 0 0 HISADDR
-------------------

ppp.conf
--------------------
default:
 allow users beaupran root
 set log Phase Chat Connect Carrier LCP IPCP CCP tun command
 set device /dev/cuaa2
 set speed 115200
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0S7=45S
0=0S11=50L3M1V1X4&c1 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set log +tcp/ip
----------------------

the ppp session: (it is //commented)
-----------------------
beaupran@outpost [7:41am] /etc/ppp# ppp
Working in interactive mode
Using interface: tun0
ppp ON outpost> set line /dev/modem
ppp ON outpost> ppp ON outpost> 
ppp ON outpost> accept pap
ppp ON outpost> accept chap
ppp ON outpost> set log local +ipcp
ppp ON outpost> add default HISADDR
Warning: Add route failed: 0.0.0.0 already exists
// is this normal?
ppp ON outpost> term
Working in interactive mode
Entering terminal mode.
Type `~?' for help.

atdt3432411
CONNECT 115200

Serveur de terminaux AS1.CC.
(? = commandes;  AIDE = aide;  MOTD = message du jour)


User Access Verification

Username: beaupran
Password: 
umnet>ppp derby.jsp
Entering PPP mode.
// here it says some stuff about IP addresses and interfaces... 
// should I care? I don't know what to do with this info...
Async interface address is unnumbered (Ethernet0)
Your IP address is 132.204.45.26. MTU is 1500 bytes
Header compression will match your system.

~ppp ON outpost> Packet mode.
IPCP: State change Initial --> Closed
IPCP: IPCP Up event!!
IPCP: IpcpSendConfigReq
// ok... is this coming from here or there:
IPCP:  IPADDR[6] 127.0.0.1
IPCP:  COMPPROTO[6] 16 VJ slots with slot compres
IPCP: State change Closed --> Req-Sent
IPCP: Received Configure Request (1) state = Req-Sent (6)
IPCP:  COMPPROTO[6]  16 VJ slots without slot compression
IPCP:  IPADDR[6]  132.204.9.20
IPCP: SendConfigAck(Req-Sent)
IPCP:  COMPPROTO[6]  16 VJ slots without slot compression
IPCP:  IPADDR[6]  132.204.9.20
IPCP: State change Req-Sent --> Ack-Sent
IPCP: Received Configure Ack (1) state = Ack-Sent (8)
IPCP: State change Ack-Sent --> Opened
PPP ON outpost> IPCP: IpcpLayerUp(9).
IPCP:  myaddr = 127.0.0.1  hisaddr = 132.204.9.20

// ok so I get an IP address assign if I get it...
PPP ON outpost> 
PPP ON outpost> term
LCP state is [Opened]
Warning: term: Failed 1

[some 2 minutes later...]

PPP ON outpost> IPCP: OsLinkdown: 132.204.9.20
IPCP: IpcpLayerDown.
IPCP: Connect time: 346 secs: 0 octets in, 908 octets out
IPCP:  total 2 bytes/sec
IPCP: State change Opened --> Starting
fetchmail: no other fetchmail is running
Can't connect to audio server

ppp ON outpost> q
-----------------------------------

I don't understand. Trying to telnet the remote gives me:
telnet 132.204.9.20
Trying 132.204.9.20...
telnet: Unable to connect to remote host: Operation timed out


I don't understand. My next move will be to try the new ppp. but I'll wait
first for your advice.

Thanks again!

On Sat, 19 Sep 1998, Brian Somers wrote:

> > Sorry about this crap... I'm behaving like a lazy beginner, sorry.
> > 
> > I tried to use ppp's term command to log in and effectively remarked that
> > my chat script wasn't correct. So here is my little session:
> [.....]
> > ppp ON outpost> 
> > PPP ON outpost> Warning: Del route failed: 0.0.0.0: Non-existent
> > // I don't understand this ast message...
> > // I then wait a few minutes and it simply disconnects...
> > PPP ON outpost> fetchmail: no other fetchmail is running
> > Can't connect to audio server
> > 
> > ppp ON outpost> q
> 
> This looks good.  I suspect the above error is caused by a line 
> saying something like ``delete 0'' in /etc/ppp/ppp.linkup.  This 
> should not be a problem.  If you want to keep the line, change it to 
> ``delete! 0'' - the ``!'' tells ppp to ``just do it and shut up''.
> 
> As you've got the ``PPP'' (capitals) prompt, you've successfully 
> authenticated.
> 
> This doesn't necessarily mean you've negotiated IPCP yet (this is the 
> ``layer'' that lets you transfer IP traffic over the link), but if 
> the ``delete 0'' error message from above is comming from something 
> in ppp.linkup, it means that IPCP works ok.  If in doubt, add IPCP 
> logging (``set log +ipcp'') to see how that side of things fairs.
> 
> My guess is that you haven't got a line in ppp.linkup that says
> 
>   add 0 0 HISADDR
> 
> or
> 
>   add default HISADDR
> 
> They both do the same thing - and are necessary to say ``send 
> traffic down this link by default''.
> 
> The disconnect is probably due to the inactivity timer.
> 
> > -----------------------------------------------------
> > 
> > I guess I'm missing some info about that ISP...
> 
> Check that /etc/resolv.conf contains lines saying
> 
>   nameserver x.x.x.x
> 
> where x.x.x.x is your ISPs DNS - you can have lots of these lines.  
> Appart from this, there's no other ISP information that needs to be 
> entered (except maybe when configuring mail).
> 
> > Sorry again for being so imprecise...
> > 
> > There's one other thing... This last try in term mode didn't issue any
> > log. Is it nmormal?
> 
> No.  It should always write to the log unless you ``set log'' with 
> values that prevent it.  Bear in mind too, you can ``set log local 
> ...'' to see stuff displayed on the screen instead of (or as well as) 
> the log file.
> 
> 
> I reckon your best bet at this point is to get the latest ppp from 
> 
>   http://www.Awfulhak.org/ppp.html
> 
> Ppp now remembers the ``add default hisaddr'' line so you can just 
> put it in ppp.conf and forget about it (it's not required in 
> ppp.linkup).  It's also got lots of new features and is generally 
> more robust than older versions.
> 
> The latest version has some pretty precise information on connecting 
> to your ISP in the man page and has a much more detailed 
> ppp.conf.sample too.
> 
> [.....]
> > +-----------------------------------+
> > |  Free the world from businessmen  |
> > |   Free yourself from your money   |
> > +-----------------------------------+
> > Free the web. 
> > Spidey
> > 
> > visit: http://www.JSP.UMontreal.CA/~beaupran
> 
> -- 
> Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
>       <http://www.Awfulhak.org>;
> Don't _EVER_ lose your sense of humour....
> 
> 

+-----------------------------------+
|  Free the world from businessmen  |
|   Free yourself from your money   |
+-----------------------------------+
Free the web. 
Spidey

visit: http://www.JSP.UMontreal.CA/~beaupran


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.SGI.3.96.980919075520.28104A-100000>