*BSD News Article 73205


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.net!imci4!newsfeed.internetmci.com!news.sprintlink.net!news-stk-200.sprintlink.net!news.sprintlink.net!news-stk-11.sprintlink.net!gol2!usenet
From: I-Lin Wang <ilin@gol.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: question about ppp..
Date: Wed, 10 Jul 1996 02:36:56 +0900
Organization: Global OnLine Japan
Lines: 155
Message-ID: <31E298B8.AC4@gol.com>
References: <31E1217B.3489@gol.com> <31E1C764.167EB0E7@eramp.net>
NNTP-Posting-Host: yok1-39.gol.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------60183CBA44C7"
X-Mailer: Mozilla 2.0 (Win95; I)
To: Syntax <syntax@eramp.net>

This is a multi-part message in MIME format.

--------------60183CBA44C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Syntax wrote:
> 
> I-Lin Wang wrote:
> >
> > Hi,
> > I have  tried to use ppp on FreeBSD for a long time. Finally, I read a
> > post in the newsgroup who wrote down his scripts for /etc/ppp/ppp.conf ,
> > /etc/ppp/ppp.linkup and /etc/resolv.conf. Somehow, it works, at least it
> > seems that I can dial OK and login OK. However, , I don't know what to
> > do next so that I can open xwindow, or do something else.
> 
> I'm glad my files actually helped someone. I should have stated that you
> should start x-windows first with startx. Then you can bring up another
> window, start ppp and then when connected just iconify the window.
> 
> Hope this helps.
> 
> Syntax

--------------60183CBA44C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Log"

Hi,
Thanks for your reply. However, it still does not work, the following is what
it shows which you may be interested. I set up /etc/ppp/ppp.conf, 
/etc/ppp/ppp.linkup and /etc/resolv.conf as you posted. 
As you can see, it assigns me a random IP 206.159.79.48 in this case. 
I tried to ping 3 places. For the 1st one, it can't find the no., for the 2nd
and 3rd ones, they can't get any packet back. 
I still have no idea about what's go wrong. Please give me any idea, thanks.

I-Lin Wang
==========================================================================
ilin# ppp
User Process PPP. Written by Toshiharu OHNO.
Log level is 09
can't open /etc/ppp/ppp.secret.
Warning: No password entry for this host in ppp.secret
Warning: All manipulation is allowed by anyone in the world
Using interface: tun0
Interactive mode
ppp ON ilin> dial host
dial OK!
login OK!
ppp ON ilin> Packet mode.
ppp ON ilin> 
PPP ON ilin> show log
07-10 01:49:51 [246] Using interface: tun0
07-10 01:49:51 [246] PPP Started.
07-10 01:50:54 [246] *Connected!
07-10 01:50:54 [246] LCP: state change Initial --> Closed
07-10 01:50:54 [246] LCP: state change Closed --> Stopped
07-10 01:50:55 [246] LCP: Received Configure Request (1) state = Stopped (3)
07-10 01:50:55 [246]  ACCMAP 00000000
07-10 01:50:55 [246]  MAGICNUM 1e1b7f34
07-10 01:50:55 [246]  PROTOCOMP
07-10 01:50:55 [246]  ACFCOMP
07-10 01:50:55 [246] LCP: SendConfigReq
07-10 01:50:55 [246]  ACFCOMP
07-10 01:50:55 [246]  PROTOCOMP
07-10 01:50:55 [246]  ACCMAP [6] 00000000
07-10 01:50:55 [246]  MRU [4] 1500
07-10 01:50:55 [246]  MAGICNUM [6] e5a740cc
07-10 01:50:55 [246] LCP:  SendConfigAck(Stopped)
07-10 01:50:55 [246]  ACCMAP 00000000
07-10 01:50:55 [246]  MAGICNUM 1e1b7f34
07-10 01:50:55 [246]  PROTOCOMP
07-10 01:50:55 [246]  ACFCOMP
07-10 01:50:55 [246] LCP: state change Stopped --> Ack-Sent
07-10 01:50:55 [246] LCP: Received Configure Ack (1) state = Ack-Sent (8)
07-10 01:50:55 [246] LCP: state change Ack-Sent --> Opend
07-10 01:50:55 [246] LCP: LayerUp
07-10 01:50:55 [246] Phase: Authenticate
07-10 01:50:55 [246]  his = 0, mine = 0
07-10 01:50:55 [246] Phase: Network
07-10 01:50:55 [246] IPCP: state change Initial --> Closed
07-10 01:50:55 [246] IPCP Up event!!
07-10 01:50:55 [246] IPCP: SendConfigReq
07-10 01:50:55 [246]  IPADDR [6] 0.0.0.0
07-10 01:50:55 [246]  COMPPROTO [6] 002d0f00
07-10 01:50:55 [246] IPCP: state change Closed --> Req-Sent
07-10 01:50:55 [246] CCP: state change Initial --> Closed
07-10 01:50:55 [246] CCP Up event!!
07-10 01:50:55 [246] CCP: SendConfigReq
07-10 01:50:55 [246] CCP: state change Closed --> Req-Sent
07-10 01:50:55 [246] IPCP: Received Configure Request (1) state = Req-Sent (6)
07-10 01:50:55 [246]  COMPPROTO[6]  002d0f00
07-10 01:50:55 [246]  IPADDR[6]  206.159.79.4
07-10 01:50:55 [246] IPCP:  SendConfigAck(Req-Sent)
07-10 01:50:55 [246]  COMPPROTO[6]  002d0f00
07-10 01:50:55 [246]  IPADDR[6]  206.159.79.4
07-10 01:50:55 [246] IPCP: state change Req-Sent --> Ack-Sent
07-10 01:50:56 [246] IPCP: Received Configure Nak (1) state = Ack-Sent (8)
07-10 01:50:56 [246]  IPADDR[6]  206.159.79.48
07-10 01:50:56 [246]  IPADDR[6]  changing address: 0.0.0.0  --> 206.159.79.48
07-10 01:50:56 [246] IPCP: SendConfigReq
07-10 01:50:56 [246]  IPADDR [6] 206.159.79.48
07-10 01:50:56 [246]  COMPPROTO [6] 002d0f00
07-10 01:50:56 [246] LCP: Received Protocol Reject (2) state = Opend (9)
07-10 01:50:56 [246] -- Protocol (80fd) was rejected.
07-10 01:50:56 [246] CCP: LayerFinish.
07-10 01:50:56 [246] CCP: state change Req-Sent --> Stopped
07-10 01:50:56 [246] IPCP: Received Configure Ack (2) state = Ack-Sent (8)
07-10 01:50:56 [246] IPCP: state change Ack-Sent --> Opend
07-10 01:50:56 [246] IPCP: LayerUp.
07-10 01:50:56 [246]  myaddr = 206.159.79.48  hisaddr = 206.159.79.4
07-10 01:50:56 [246] OsLinkup: 206.159.79.4
PPP ON ilin> 
=====================================================================
1:53am <~> ping akira.mit.edu
ping: unknown host akira.mit.edu
1:54am <~> ping 18.71.0.58
PING 18.71.0.58 (18.71.0.58): 56 data bytes
ping: sendto: No route to host
ping: wrote 18.71.0.58 64 chars, ret=-1
ping: sendto: No route to host
ping: wrote 18.71.0.58 64 chars, ret=-1
ping: sendto: No route to host
ping: wrote 18.71.0.58 64 chars, ret=-1
^C
--- 18.71.0.58 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
1:55am <~> ping gol.com
PING gol.com (202.243.48.4): 56 data bytes
ping: sendto: No route to host
ping: wrote gol.com 64 chars, ret=-1
ping: sendto: No route to host
ping: wrote gol.com 64 chars, ret=-1
^C
--- gol.com ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
1:55am <~> 
======================================================================
PPP ON ilin> show route
default          18.250.0.1         ffffffff  UG     (1)
18.250.0.0       6.0.0.0            00000000  U      (1)
18.250.0.1       6.0.0.0            ffffffff  UH     (1)
18.250.0.26      6.0.6.0            ffffffff  UH     (2)
18.250.0.255     6.0.0.0            ffffffff  UH     (1)
127.0.0.1        127.0.0.1          ffffffff  UH     (2)
202.243.48.4     18.250.0.1         ffffffff  UGH    (1)
202.243.48.5     18.250.0.1         ffffffff  UGH    (1)
206.159.79.4     206.159.79.48      ffffffff  UH     (4)
206.159.79.57    127.0.0.1          ffffffff  UH     (2)

--------------60183CBA44C7--