Date: Thu, 18 Jan 1996 14:16:50 -0800 From: tim@gfmurray.com To: freebsd-hackers@freefall.freebsd.org Subject: Re: Getting slip to run Message-ID: <199601182216.OAA15971@print.gfmurray.com>
next in thread | raw e-mail | index | archive | help
>To: Jyanek@cris.com >From: tim@print.gfmurray.com >Subject: Re: Getting slip to run > >>In comp.unix.bsd.freebsd.misc you write: >> >>>In article <jgor-1501961011150001@user52.lightside.com>, jgor@veldt.com (James Gorham) says: >>>> >>>>We just installed FreeBSD over temporary ethernet last night. now we would >>>>like to be able to use it on SLIP. We are having some problems however >>>>getting it to work. I thought that it was installed with FreeBSD. Anyway, >>>>we're trying to dial into an ISP, with a modem on com4, at 14.4. We have >>>>2.1.0 freebsd. We'd really like any help. >>>>James/Dan >>>> >>>>-- >>>>(=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=---=-=-=-=-=-=-=-=) >>>> )End ___ The) James jgor@veldt.com Gorham ( Drug War ( >>>>( (o o) ( http://veldt.com/~jgor/ ) /// ) >>>>+-ooO-(_)-Ooo-+=-=-=-=-=-[CASHP 9-95]=-=-=-=-=-=-=-=+-ooo-(~J~)-oOo-+ >> >>>1) Ensure that your serial device (sl0 or sl1 etc.) has been set to an appropriate >>>IP address (assuming that your ISP offers a fixed address for you) with 'ifconfig' >> >>>2) Use cu with the appropriate serial device >>> ie. cu -s 57600 -l /dev/cuaa0 >>>if you are using sl0 >> >>>3) enter atdt (ISP PH#) and your modem will dial >> >>>4) once you have logged in etc. and your ISP connection has gone into >>>slip mode, type ~z and cu will be suspended >> >>>5) run slattach for the serial device in question >>>ie. slattach -c -h -s 57600 /dev/cuaa0 >> >>>and you are attached.... >> >>>If you have an IP address that is dynamic (your ISP throws a different IP >>>address at you each time you call in) you will need to capture it with a >>>dial/redial script and do a ifconfig on the fly.....the script will have to >>>do you log in and password entry as well....I have a working script that does some >>>of this stuff...its pretty easy actually.... >> >>>If you want it, just email me a request.... >> >>TIM -- I am trying to do just what you have mentioned. Unfortunately, I >>get dynamic addresses. Can you email me the script? >> >>Thanks! >>Jay >>jyanek@cris.com >>i >my script does not normally account for a dynamic IP...I added a few lines to it so that it would....hope this sends you in the right direction > >cut here******************************************** > >#!/usr/bin/expect >set device /dev/cuaa1 >set speed 115200 >set dial ATX4DT####### >set user ####### >set upasswd ********** >proc EX str { > expect $str "" \ > timeout "exit 1" \ > "BUSY" "exit 1" \ > "NO DIAL TONE" "exit 1" \ > "NO CARRIER" "exit 1" >} >send "AT\r" >expect "OK" "" >send "AT\r" >expect "OK" "" >set timeout 30 >sleep 1 >send "$dial\r" >EX "login:" >set timeout 15 >send "$user\r" >EX "Password: " >send "$upasswd\r" >set timeout 15 > >#this is where an IP assignment may be captured.... >#additional routing commands can be inserted as well once the IP values are known > >set local_ip "###.###.###.###" >expect -re "\[1-9]\[0-9]*\.\[1-9]\[0-9]*\.\[1-9]\[0-9]*\.\[1-9]\[0-9]*" >set remote_ip $expect_out(0,string) >exec ifconfig sl1 $local_ip $remote_ip > Tim Baird Dominus Fecit "The Lord Made" Opinions expressed are not necessarily those of my employer etc. etc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601182216.OAA15971>