From owner-freebsd-questions Tue Nov 3 14:30:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24074 for freebsd-questions-outgoing; Tue, 3 Nov 1998 14:30:01 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24019 for ; Tue, 3 Nov 1998 14:29:58 -0800 (PST) (envelope-from sfriedri@laker.net) Received: from nt (digital-pbi-160.laker.net [208.0.233.60]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id RAA11032; Tue, 3 Nov 1998 17:29:05 -0500 Message-Id: <199811032229.RAA11032@laker.net> From: "Steve Friedrich" To: "freebsd-questions@FreeBSD.ORG" , "larry_nilsen" Date: Tue, 03 Nov 1998 17:27:22 -0500 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: using the term command Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 02 Nov 1998 23:29:20 -0800, larry_nilsen wrote: >Hi im trying unsuccesfully to have my modem dial my ISP >so i can give them my user name and password so i can >have a connection established.Ive been through all my ppp >files to see if im missing anything. But with my knowledge >so far working with my FREEBSD2.2.7 box its possible >i might be missing somthing in one of the 7 files a person is >suppose to edit to establish a connection using the ppp co- >mmand.I have a feeling that my modem is not correctly >configured yet and if its possible could you please tell me >how i might go about doing this task.when i type dmesg | >fgrep sio it says my modem is on cuaa0. Actually, grepping for "sio" only tells you with sio devices exist, not what they are. Here's my sio devices: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2 at 0x3e8-0x3ef irq 11 on isa sio2: type 16550A sio3 at 0x2e8-0x2ef irq 12 on isa sio3: type 16550A Which one is my modem?? You can't tell from this... How many sio devices are reported on your system?? If only sio0 then you're right, that must be your modem. But that would also be fairly unusual these days, because serial ports exist on most recent motherboards. Anyway, once you go into term, type AT and see if your modem responds with OK. If it does, we're in business, you DO know for sure which sio port your modem is on. If it doesn't, then we need to find it. Inside of ppp.conf is a definition for where the modem is: set device /dev/cuaa1 See, ppp comes "out-of-the-box" configured for COM2 (sio1), not COM1 (sio0). So if your modem is on COM1, you need to change this line to cuaa0, and try to get the OK from the modem again. Keep trying sio ports until you find an OK. If your modem is a "WinModem", you lose, this won't work and neither will it outside of Winblows. You also have to pick a port speed that your modem/serial port actually supports. If you have a 33K modem or faster, then you can probably use: set speed 115200 But if you have an older serial port or modem, try a slower speed, like 57600 So if you got the OK from your modem, use ATDT phone number to call your ISP and see if you get a login prompt. >Thats great now >what do i do to get the modem to dial out when i use the term >command.Right now when i use term it doesnt do anything >it just hangs and i have to type ~. to get my cursur back. >I would really like to get this up and running. If possible could >you send me a sample copy of a running ppp.conf file that i >could copy to my ppp.conf with just a miminal amount of >editing.same for linkup etc....... I know i will get this going >one of these days its just a matter of Patience:) Here's my ppp.conf (I use PAP/CHAP). If you get a login prompt back from your ISP, you'll need to modify my ppp.conf Look for the unix login comments default: set server /var/tmp/internet 0177 set log Phase Chat Connect Carrier LCP IPCP CCP tun command allow user steve set device /dev/cuaa1 set speed 115200 set ifaddr 0 0 set timeout 0 # enable dns # set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 60 CONNECT" set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK-ATZ-OK \\dATDT\\T TIMEOUT 60 CONNECT" lakernet: set phone 8526304|4701274 set authname YOUR_UID_FROM_YOUR_ISP_GOES_HERE set authkey YOUR_PASSWORD_FROM_YOUR_ISP_GOES_HERE # use for unix login # set login "TIMEOUT 15 login:-\\r-login: YOUR_UID_FROM_YOUR_ISP_GOES_HERE word: \\P" # use for PAP/CHAP login set login # bogus class A address just to establish a default route and enable # ppp-on-demand. Will be replaced by ppp.linkup set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0 add default 10.0.0.2 # set ifaddr 208.0.233.1/24 208.0.233.2/24 255.255.255.0 0.0.0.0 # add default 208.0.233.2 eminet: set phone 9629727 set authname YOUR_UID_FROM_YOUR_ISP_GOES_HERE set authkey YOUR_PASSWORD_FROM_YOUR_ISP_GOES_HERE # use for unix login # set login "TIMEOUT 15 login:-\\r-login: YOUR_UID_FROM_YOUR_ISP_GOES_HERE word: \\P" # use for PAP/CHAP login set login # bogus class A address just to establish a default route and enable # ppp-on-demand. Will be replaced by ppp.linkup set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0 add default 10.0.0.2 Here's my ppp.linkup MYADDR: delete ALL add default HISADDR Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message