Re: ppp problems with routing

2005-03-29 Thread J65nko BSD
On Mon, 28 Mar 2005 19:13:47 -0500, PS <[EMAIL PROTECTED]> wrote:
> Hello I use freeBSD 4.11 with pppoe.
> I used almost default ppp.conf (as in freebsd handbook) for dynamic ip.
> my config is here http://block111.servehttp.com/ppp.conf
> Twice a day I restart ppp from cron with `killall -INT ppp` and if the
> new connection default gateway is different then the old default route
> isn't removed, e.g. after ppp restart I have this:
> ifconfig ->
> ...
>  inet 66.11.172.181 --> 66.11.165.1 netmask 0x
> inet 66.11.180.20 --> 66.11.190.1 netmask 0x
> 
> before I had
> inet 66.11.172.181 --> 66.11.165.1 netmask 0x
> only, but after I sent INT to ppp the new ip has a different dafault
> gateway and the old one isn't removed. Should the old default route/ip
> be removed or not? In my case the old ip becomes invalid.
> 
> Thank you
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

Have you tried: 

   add! default HISADDR

Note the exclamation mark "!" after the add.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp problems with routing

2005-03-28 Thread Mike Tancsa
At 10:20 PM 28/03/2005, PS wrote:
Mike Tancsa wrote:
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:
My isp gives free bandwidth from x till y, provided that a connection 
starts after x and finishes before y... so, my smart freebsd pc sends 
every day INT to ppp to restart ppp connection :)
Ahh, that makes sense.  Instead of killing the program outright, you might 
open a socket and programatically shutdown the session.  Take a look at pppctl.

---Mike 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp problems with routing

2005-03-28 Thread PS
Mike Tancsa wrote:
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:

Hello I use freeBSD 4.11 with pppoe.
I used almost default ppp.conf (as in freebsd handbook) for dynamic ip. 
my config is here http://block111.servehttp.com/ppp.conf
Twice a day I restart ppp from cron with `killall -INT ppp` and if the 
new connection default gateway is different then the old default route 
isn't removed, e.g. after ppp restart I have this:
ifconfig ->
	...
   inet 66.11.172.181 --> 66.11.165.1 netmask 0x
	inet 66.11.180.20 --> 66.11.190.1 netmask 0x

before I had
inet 66.11.172.181 --> 66.11.165.1 netmask 0x
only, but after I sent INT to ppp the new ip has a different dafault 
gateway and the old one isn't removed. Should the old default route/ip 
be removed or not? In my case the old ip becomes invalid.

Hi,
If you add
disable iface-alias
Thanks, I'll check this solution.
does it fix the problem ?  Also, why do you need to kill / restart
ppp?
My isp gives free bandwidth from x till y, provided that a connection 
starts after x and finishes before y... so, my smart freebsd pc sends 
every day INT to ppp to restart ppp connection :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp problems with routing

2005-03-28 Thread Mike Tancsa
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:

>Hello I use freeBSD 4.11 with pppoe.
>I used almost default ppp.conf (as in freebsd handbook) for dynamic ip. 
>my config is here http://block111.servehttp.com/ppp.conf
>Twice a day I restart ppp from cron with `killall -INT ppp` and if the 
>new connection default gateway is different then the old default route 
>isn't removed, e.g. after ppp restart I have this:
>ifconfig ->
>   ...
> inet 66.11.172.181 --> 66.11.165.1 netmask 0x
>   inet 66.11.180.20 --> 66.11.190.1 netmask 0x
>
>before I had
>inet 66.11.172.181 --> 66.11.165.1 netmask 0x
>only, but after I sent INT to ppp the new ip has a different dafault 
>gateway and the old one isn't removed. Should the old default route/ip 
>be removed or not? In my case the old ip becomes invalid.

Hi,
If you add

disable iface-alias

does it fix the problem ?  Also, why do you need to kill / restart
ppp?

---Mike


Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"