Date: Mon, 21 Sep 1998 17:12:19 +0100 From: Brian Somers <brian@Awfulhak.org> To: almazs@wgn.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: about ppp link to internet!! Message-ID: <199809211612.RAA18414@woof.lan.awfulhak.org> In-Reply-To: Your message of "Sun, 20 Sep 1998 13:01:30 PDT." <36055F1A.779B@wgn.net>
next in thread | previous in thread | raw e-mail | index | archive | help
A lot of this is covered in http://www.FreeBSD.org/FAQ/userppp.html (although maybe not exactly). WRT your link dying after a manual dial and partial download, try disabling tcp extensions in /etc/rc.conf. WRT DialModem failed, you'll need to enable chat logging and try to determine what the difference is between your manual session and what ppp is doing in auto-dial mode. You may also want to upgrade to the latest version of ppp from http://www.Awfulhak.org/ppp.html. > Hi everybody; > > I have set up my ppp config files as in the FreeBSD docs and my > cofigurations are simiar to what was suggested and there seems to be a > problem when I try 'ondemand' or 'pmdemand'. > I am trying to connect on a dynamic IP assignment to MY ISP and I am > running FreeBSD 2.2.6 > My modem is a USR sportster 14.4 faxmodem external > DTR normal > verbal result codes > display result codes > echo offline commands > supress auto answer > carrier detect normal > load NVRAM defaults > smart mode > > I am able to connect using ppp terminal mode > after typing my login and password I get the prompt: > Entering PPP Mode > IP address is ***.***.***.*** > MTU IS 1500 > I logged-in on a second virtual terminal and executed a ports collection > fetch for netscape4-navigator. It failed to get it from > ftp.netscape.com/pub/communicator/4.04/development/english ... > it tryed the ftp://ftp.freebsd.org/pub/FreeBSD/distfiles ... > it "dowloaded" only 5% in 15 mins and hungup!! > > My kernel is setup for: > > pseudo-device tun 2 (for a max of two ppp sessions) > > 'ifconfig -a' shows: > > tun0: flags=8010<POINTTOPOINT,MULTICAST> mtu 1500 > tun1: flags=8010<POINTTOPOINT,MULTICAST> mtu 1500 > > > etc/host.conf looks like: > > #...... > bind > hosts > > > etc/hosts looks like: > > #...... > 127.0.0.1 localhost > 10.0.0.1 almazs.wgn.net almazs > #...... > > resolv.conf looks like: > > nameserver 207.213.0.5 #primary dns for my ISP > nameserver 207.213.0.6 #secondary dns for my ISP > domain wgn.net > > > ppp.conf looks like: > > #...... > default: > set log Phase Chat Connect Carrier LCP IPCP CCP tun command > set device /dev/cuaa1 #my modem device on com2 > set speed 19200 > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK > ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > #....... > pmdemand: > set phone 8730055 > set login "TIMEOUT 10 ogin:--ogin: almazs ppp word: ****** ppp" > set timeout 120 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > delete ALL > add 0 0 HISADDR > enable dns > #....... > PAPorCHAPpmdemand: > set phone 8730055 > set login > set authname almazs > set authkey ****** > set timeout 120 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > delete ALL > add 0 0 HISADDR > #...... > ondemand: > set phone 8730055 > set login "TIMEOUT 5 ogin:--ogin: almazs ppp word: ****** ppp" > set timeout 120 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > delete ALL > add 0 0 HISADDR > #..... > > ppp.linkup looks like: > > #...... > MYADDR: > delete 0 > add 0 0 HISADDR > #..... > pmdemand: > delete ALL > add default HISADDR > !bg /etc/ppp/ppp.etherup.pmdemand > !bg sendmail -bd -q30m > #.... > > rc.conf looks like: > > hostname="almazs.wgn.net" > > network_interfaces="io0 tun0 tun1" > ifconfig_lo0="inet 127.0.0.1" > > ifconfig_tun0="" > ifconfig_tun1="" > > > defaultrouter="207.213.4.1" #My ISP's gateway > static_routes="" > gateway_enable="YES" > router_enable="NO" > router="NO" > > When I use ppp -auto pmdemand I get > Working in auto mode > using interface: tun0 > almazs# > at this point 'ifconfig tun0' shows: > > tun0: flags=8051<UP,POINTTOPOINT,RUNNING,MULTICAST> mtu 1500 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xfffff00 > > but none of my applications can successfuly exeute ftp to fetch a file > or anything from the net. > > > when I use 'ppp ondemand' the modem dials but fails to login > i.e 'warning: DialModem: login failed' > > How do I get ppp to cooperate with me and connect on 'pmdemand' or > 'ondemand'? > What is the best way to test if it is really working OK? > > This particular problem has taken so much of my time it is not funny!! > > Thanks > > Dan -- Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> <http://www.Awfulhak.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809211612.RAA18414>