From owner-freebsd-questions Mon Sep 21 14:43:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14155 for freebsd-questions-outgoing; Mon, 21 Sep 1998 14:43:17 -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 OAA13781 for ; Mon, 21 Sep 1998 14:40:58 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA11489; Mon, 21 Sep 1998 22:40:07 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id RAA18414; Mon, 21 Sep 1998 17:12:25 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809211612.RAA18414@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: almazs@wgn.net cc: freebsd-questions@FreeBSD.ORG Subject: Re: about ppp link to internet!! In-reply-to: Your message of "Sun, 20 Sep 1998 13:01:30 PDT." <36055F1A.779B@wgn.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 Sep 1998 17:12:19 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 mtu 1500 > tun1: flags=8010 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 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 , , 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