From owner-freebsd-questions Tue Jun 30 17:46:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA14342 for freebsd-questions-outgoing; Tue, 30 Jun 1998 17:46:29 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA14232 for ; Tue, 30 Jun 1998 17:45:53 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (brian@localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id BAA13672; Wed, 1 Jul 1998 01:24:49 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199807010024.BAA13672@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Chris Browning cc: questions Subject: Re: newbie PPP question In-reply-to: Your message of "Mon, 29 Jun 1998 15:27:49 EDT." <3597EAB4.3C5DAF10@netunlimited.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Jul 1998 01:24:49 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > When I try user PPP I can't get terminal mode to work. When > I invoke ppp, I get the ppp prompt and can pass commands and > settings to ppp. If I then go to term mode I get the term > prompt and the 'Type ~? for help' message, but when I type > in a command I get no echo and no response. The console > appears to lock up. I have to go to another virtual terminal > and kill the ppp process. Have you tried typing ``~?'' ? > User PPP also will not run the > script I have written to automate the process (I get a > timeout), but I figure that's because I haven't gotten the > script right yet. I can live with manual dialling for the > time being. Hmm, how do you do that if ``term'' doesn't work ? Ah - using pppd ? > Using > 'pppd /dev/cuaa0 115200 connect 'chat -f > /etc/ppp.dial.chat'' > I can get kernel PPP to dial the modem and I can hear the > handshake, but I haven't quite figured out how to get my > userid and password to my ISP. Again, a scripting problem. > The manual says I can pass userid and password as arguments > after the 'chat ...' but I get 'userid: unrecognized > command'. But I know the hardware works and the DIP > switches are correct. > > I suspect that my User PPP problem is in the configuration > of the tunnel device in /etc/rc.conf. The only useful > reference to the tunnel device I can find is in G. Lehey's > wonderful manual, but it's for static IP addresses. How do I > write that line for dynamic IP addresses? > > 'ifconfig -a' gives: > 'tun0: flags=c010 mtu 1500' > > I know I need ''. How do I > get there? I assume I need tun0 in the network_interfaces > line. I also assume I need 'ifconfig_tun0="???......??"'. > What goes here for dynamic IP addresses? Do I just make > something up and let /etc/ppp/ppp.conf handle it? Or am I > way off track? Any help greatly appreciated. You're half off-track. Check out http://www.FreeBSD.org/handbook/userppp.html It explains who rc.conf should look. Before ppp runs, it should not be ``UP''. Also, read through the man page that came with the version of ppp you've got (you've probably done this already) and take a look at http://www.FreeBSD.org/FAQ/userppp.html > Also: sorry for posting two questions at once, but I thought > the one might illuminate the other. Or vice versa. TIA. > > Chris Browning > brownicm@netunlimited.net Remember that once you've gone into ``term'' mode, you're talking directly to your modem. You may have to blindly type ``ATE1'' before you get to see anything. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message