Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!ddsw1!news.mcs.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!newsfeed.internetmci.com!in1.uu.net!news.zipnet.net!usenet From: mi@ziplink.net (Misha Teterin) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to set up dynamic ip ppp or slip connection? Date: 19 Sep 1996 02:34:46 GMT Organization: Aldan at Newton Upper Falls Lines: 36 Message-ID: <51qbg6$btc@news.zipnet.net> References: <Mm=Dz8u00YUu1F7Gk0@andrew.cmu.edu> Reply-To: mi@ALDAN.zipnet.net NNTP-Posting-Host: guest.zipnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.7 To: Tao Jiang <jcjc+@andrew.cmu.edu> Honorable Tao Jiang wrote on 04 Sep (in article <Mm=Dz8u00YUu1F7Gk0@andrew.cmu.edu>): =Hi, can some one tell me step by step how I can set up my =freebsd 2.2 system to connect to my school which assign =dynamic ip address to me? Read the pppd's man page' and list all your options in /etc/ppp/options . The most important, is the `connect'-line. Here is mine: connect "chat -v ABORT BUSY ABORT 'NO CARRIER' '' 'MODEMS INI-STRING' OK ATDTPHONENUMBER ogin: 'MY LOGIN' assword: 'MY PASSWORD'" chat's man page will explain you the details of the line -- you define after which of modem's responses to abort, and then give pairs of strings expected from the modem and those, provided in response. So, modem's ini- -string goes as a response to nothing ('') -- immediately. Then, the modem shoud say 'OK'. Then you ask it to dial the number. It will return all the text coming from the dialed host, but I am only interested in the word 'login:' (or 'ogin:' -- my Internet provider changes it 'Login:' sometimes). So, `chat' will give my login-name. And so on... Do not forget to put the `defaultroute' line in the file. It is also advisable to put the device name (/dev/cuaa0, for example) into the file, so that you do not have to provide it on the command line every time. Make sure the file is not public readable, or someone on your machine may get your password. Make sure, your kernel has at least one ppp-device built in. Look at the /sys/i386/conf/LINT for details. When everything is ready, type `pppd', and enjoy your modem's sounds. -mi -- "Windows for dummies"