*BSD News Article 99641


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.ci.com.au!brian.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!pumpkin.pangea.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!ais.net!newsfeed.direct.ca!torn!onlink3.onlink.net!pheebs.citytel.net!kwoody
From: "Keith W." <kwoody@citytel.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: repost...PPP Setup probs...Someone comment?
Date: Mon, 14 Jul 1997 08:40:31 -0700
Organization: Ontario Northland--ONLink
Lines: 110
Approved: Hopefully all the time!
Message-ID: <Pine.A32.3.91.970714083531.12841A-100000@pheebs.citytel.net>
NNTP-Posting-Host: pheebs.citytel.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44418

Sorry for the length of this post but have not been able to setup ppp. Have
been lurking here a few months, reading faqs, handbooks etc. The best I can
manage is no route to host when I try a ping after dialing to my ISP.

Ive tried to setup PPP off and on for the last 2 or so months to no avail.
Setup NFS to 2 win boxes and dialup lines on this machine but cant for the
life of me seem to get PPP working. 

So I have posted the relevant parts of my ppp config stuff. This is with
v2.1.7.
This is from my PPP.LOG file that may or may not be useful...

07-05 18:51:38 [269]  COMPPROTO[6]  002d0f00
07-05 18:51:38 [269]  IPADDR[6]  204.244.99.76
07-05 18:51:38 [269] IPCP: state change Req-Sent --> Ack-Sent
07-05 18:51:39 [269] IPCP: Received Configure Nak (1) state = Ack-Sent (8)
07-05 18:51:39 [269]  IPADDR[6]  204.244.99.119
07-05 18:51:39 [269]  IPADDR[6]  changing address: 0.0.0.0  --> 204.244.99.119
                                                   ^^^^^^^
                                                   didnt at the time have
                                                   an ip# in my hosts file.
07-05 18:51:39 [269] IPCP: SendConfigReq
07-05 18:51:39 [269]  IPADDR [6] 204.244.99.119
07-05 18:51:39 [269]  COMPPROTO [6] 002d0f00

07-05 18:51:39 [269] LCP: Received Protocol Reject (214) state = Opend (9)
07-05 18:51:39 [269] -- Protocol (80fd) was rejected.
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        what is this? Bad, I'm assuming.

07-05 18:51:39 [269] CCP: LayerFinish.
07-05 18:51:39 [269] CCP: state change Req-Sent --> Stopped
07-05 18:51:39 [269] IPCP: Received Configure Ack (2) state = Ack-Sent (8)
07-05 18:51:39 [269] IPCP: state change Ack-Sent --> Opend
07-05 18:51:39 [269] IPCP: LayerUp.
07-05 18:51:39 [269]  myaddr = 204.244.99.119  hisaddr = 204.244.99.76
07-05 18:51:39 [269] OsLinkup: 204.244.99.76
07-05 18:54:07 [269] OsLinkdown: 204.244.99.76
07-05 18:54:07 [269] PPP Terminated.

Netstat -rn output:
---------------
Routing tables
Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            204.244.99.76      UGc         0        3      tun0
127.0.0.1          127.0.0.1          UH          1       10       lo0
204.244.99.76      204.244.99.119     UH          1        0      tun0

ifconfig tun0 output:
------------
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
	inet 204.244.99.119 --> 204.244.99.76 netmask 0xffffff00 
                            ^^^
                            Is this right?
ppp.conf
--------
default:
 set device /dev/cuaa1
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set phone 6247873
 set login "TIMEOUT 10 rname:-BREAK-rname: xxx word: xxx _prct> ppp\sdefault"
 set timeout 120
 delete ALL
 set ifaddr 204.244.99.1/0 204.244.99.254/0 255.255.255.0 
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  is this right? It shows in the handbook to use 10.0.0.1/0 10.0.0.2/0. I put
  in the range that my ISP uses. probably wrong but it was a shot in the dark.

 add 0 0 10.0.0.1
         ^^^^^^^ Not sure about this one....

 set openmode active
 ^^^^^^^^^^^^^^^^^^^^taken from the latest handbook dated May.19

After I type ppp and get the ppp prompt, I type dial default, it dials
out, logs in, and am back at the ppp prompt, the PPP is not capitalized so
assume Packet mode not working. and after about 10 seconds, modem drops
carrier. But when I type term, login manually, PPP is capped meaning packet
mode is ok. But shell back to command line and nothing works.

ppp.linkup
----------
MYADDR:
  add 0 0 HISADDR
No idea if this is right??? used from the ppp.linkup.sample.

And last is my hosts file...

hosts
-----
127.0.0.1               localhost 
# Imaginary network.
10.0.0.1                   mybsd.net mybsd

Have not been sure about what to really put here...do I put in the above
ip address? or leave it blank but still use my host name...though dont know
what to use as my host name so I used the above...Its the same as my
whats in my /etc/sysconfig. I had it as no address but just my hostname
but of course still didnt work.

And comments, flames, fixes, helpful hints can be directed to:
kwoody@citytel.net or posted here of course!