From owner-freebsd-questions Tue Oct 15 14:19:17 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA09326 for questions-outgoing; Tue, 15 Oct 1996 14:19:17 -0700 (PDT) Received: from mail.shlink.de (root@mail.shlink.de [194.64.6.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA09312 for ; Tue, 15 Oct 1996 14:19:12 -0700 (PDT) Received: by mail.shlink.de (Smail3.1.29.1 #1) id m0vDHrX-000ZzeC; Tue, 15 Oct 96 23:21 MET Received: (from hw@localhost) by thor.shn.com (8.6.12/8.6.6) id WAA11198 for questions@freebsd.org; Tue, 15 Oct 1996 22:57:47 +0200 Date: Tue, 15 Oct 1996 22:57:47 +0200 Message-Id: <199610152057.WAA11198@thor.shn.com> From: hw@thor.shn.com (Henning Wickhorst) Subject: Re: [2.1R] ppp -auto works only after a non-auto connection terminated To: questions@freebsd.org Organization: Private site Reply-To: h.wickhorst@elmshorn.netsurf.de Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk sachs@interactive.net wrote: : I couldn't find this in the mailing list archives. : : I can connect via ppp directly no problem; after closing that : connection, ppp -auto then works. I've had the same problems, but sorry i can't realy remember what the reason was. If i compare your configuration with mine, i have some ideas what could be wrong. : However, if I try to run ppp -auto before making and breaking that : first connection, I get "host is down" or "unavailable" messages, and : no attempted dialup. My provider gives me dynamic IP. I think after the first call your routed has build some routing tables, so your second call (-auto) is using that routing information. Try 'netstat -rn' before and after your first manuell call. I am very sure there will be a big diferece. If you would wait a longer time between both calls, your second call will fail becaurse the routing tables have been deleted. : ### /etc/ppp/ppp.conf: : default: : set device /dev/cuaa0 : set speed 38400 : disable lqr : deny lqr : set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\ : \T TIMEOUT 40 CONNECT" : : interactive: : set phone 3012220 : set login "TIMEOUT 5 login:-\\r-login: xxxxxxxx word: xxxxxxxx" : set timeout 1800 : : ondemand: : load interactive : set ifaddr 0 208.192.224.5 I'm using 'set ifaddr 10.0.0.1/0 privider.ip' In my /etc/hosts file my machine has 10.0.0.1 as the IP-address : add 0 255.255.255.0 208.192.224.5 My Provider's IP adress is different to his nameserver address. For some reason ppp could not find a route to the nameserver. I had to add this line: add 208.192.224.0 255.255.255.0 208.192.224.5 (i am using your numbers for this example) to set a route to my provider's internal network. After that ppp was able to find the nameserver. : : #---------------------------------------------------------------------- : ### /etc/ppp/ppp.linkup : : ondemand: : delete ALL : add 0 0 HISADDR : # : # Otherwide, simply add peer as default gateway. : # : MYADDR: : add 0 0 HISADDR : : #---------------------------------------------------------------------- : ### /etc/sysconfig : : network_interfaces="tun0 lo0" : ifconfig_tun0="" : ifconfig_lo0="inet localhost" I Don't have 'tun0' in my 'network_interfaces' line. I have no 'ifconfig_tun0' line. Having both lines in my '/etc/sysconfig' gave my a lot of strange problems with ppp. You should take it away. Hope this helps. Regards, Henning -- ------------------------------------------------------------------ Henning Wickhorst Elmshorn, Germany E-Mail: h.wickhorst@elmshorn.netsurf.de ------------------------------------------------------------------