From owner-freebsd-questions Tue Aug 5 19:06:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA20266 for questions-outgoing; Tue, 5 Aug 1997 19:06:50 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA20259 for ; Tue, 5 Aug 1997 19:06:46 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id MAA22904; Wed, 6 Aug 1997 12:07:04 +1000 From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id LAA04515; Wed, 6 Aug 1997 11:36:11 +0930 (CST) Message-Id: <199708060206.LAA04515@freebie.lemis.com> Subject: Re: usermode ppp In-Reply-To: <199708060114.VAA05742@sed.cs.fsu.edu> from Gang-Ryung Uh at "Aug 5, 97 09:14:45 pm" To: uh@NU.cs.fsu.edu (Gang-Ryung Uh) Date: Wed, 6 Aug 1997 11:36:10 +0930 (CST) Cc: questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Gang-Ryung Uh writes: > Hi, > > I have been trying to configure usermode ppp and dynamic IP address. > Obviously, I cannot make the user ppp work for me. I think I set the > required information correctly as a usermode ppp client. However, > after the connection, I can not ping any host. > > Would you possibly correct my mistake(s)? > Thanks in advance. > > Regards, > Gang-Ryung Uh > > > ppp.conf > ======== > .. > simplesite: > set phone 6446090 > set login "TIMEOUT 5 login:-\\r-login: xx word: xxxxxx ocol: ppp" > set timeout 120 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 > delete all > add 0 0 HISADDR > set openmode active > .. > > ppp.linkup > ========== > ... > # Otherwise, simply add peer as default gateway. > # > MYADDR: > add 0 0 HISADDR > .. > ========= > > Here is the action that I made as a super user. > > # ppp > PPP ON jonah> dial simplesite > Dial attempt 1 of 1 > Phone: 6446090 > dial OK! > ppp ON jonah> Packet mode. > ppp ON jonah> show > PPP ON jonah> ip > IPCP [Opend] > his side: 128.186.121.25, 2d0f01 <-- what is 2d0f01? > my side: 128.186.121.202, 2d0f00 <-- what is 2d0f00? > connected: 1 secs, idle: 1 secs > > Defaults: > My Address: 10.0.0.1/0 > His Address: 10.0.0.2/0 > Negotiation: 0.0.0.0/0 <--- Is it correct? > > PPP ON jonah> show log > 08-05 16:42:22 [402] Using interface: tun0 > 08-05 16:42:22 [402] PPP Started. > 08-05 16:42:27 [402] Phone: 6446090 > 08-05 16:42:52 [402] *Connected! > 08-05 16:42:59 [402] Phase: Authenticate > 08-05 16:42:59 [402] Phase: Network > 08-05 16:42:59 [402] myaddr = 128.186.121.202 hisaddr = 128.186.1121.25 ^^^^ I trust that this is a miscopy. You should be able to get all this information from the log file--you don't need to copy it. > 08-05 16:42:59 [402] OsLinkup: 128.186.121.25 So far, the messages are saying that all is fine, and that you are connected to your ISP. > 08-05 16:43:58 [402] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0 > =============================================== > ???? <-- What this error means? The FCS error usually means that a corrupted frame has been received. It could be indicative of a bad line. In your case, it probably means that there is some misunderstanding between your ISP and your system. > Ovbiously I cannot ping any host. That's not obvious at all. You should be able to, according to the messages you have. > The following is the more information after the connection > > # ifconfig tun0 > tun0: flags=8051 mtu 296 > inet 128.186.121.202 --> 128.186.121.25 netmask 0xffffff00 > > # netstat -nr > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 128.186.121.25 UGSc 0 0 tun0 > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > 128.186.121.25 128.186.121.202 UH 1 0 tun0 This all looks fine. Have you tried 'ping 128.186.121.25'? If not, please try it. If you can get a response from the other end, then your ISP probably has routing problems. Otherwise let me know, and I'll suggest more things to try. Greg