Date: Tue, 15 Oct 1996 22:57:47 +0200 From: hw@thor.shn.com (Henning Wickhorst) To: questions@freebsd.org Subject: Re: [2.1R] ppp -auto works only after a non-auto connection terminated Message-ID: <199610152057.WAA11198@thor.shn.com>
next in thread | raw e-mail | index | archive | help
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
------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610152057.WAA11198>
