Clifford, thanks for the reply. You have listed the routes exactly as they
come up and down.
I have implemented a very crude fix to the problem by adding the default
route again in ip-up and ip-down.
route add -host 192.168.0.1
route add -net 0.0.0.0 gw 192.168.0.1
So the default route is set again wether there is an incoming connection or
outgoing connection. I now get two default routes after the ppp0 interface
link comes down (supposed to be a no-no):
0.0.0.0 192.168.0.1
0.0.0.0 xxx.xxx.x.x (old dynamic address)
Now when the ppp0 link comes up, both these are automatically deleted and
replaced by one default route
0.0.0.0 yyy.yyy.y.y (new dynamic address).
I think the problem is possibly confined to the RedHat 6.0 distribution as
links are brought up by standard scripts ifup-ppp and down by ifdown-ppp.
After the ppp0 link comes up, I ran ifdown-ppp from the prompt, this
disconnected the link ppp0 and I found all the default routes had
disappeared!!. So a possible explanation is that when the incoming user
disconnects, and the outgoing ppp0 link is allowed to time out due to lack
of activity, ifdown-ppp is executed and this removes the default routes.
I know you dont do redhat but perhaps this may help someone else on the
list or they may have a better solution.
Regards
Rajiv
At 02:51 PM 1/7/00 -0600, you wrote:
>On Fri, 7 Jan 2000, Rajiv Ghai wrote:
>
>|For example in my set-up the local address is 192.168.0.13 and the remote
>|bogus IP address is 192.168.0.1. Now when I boot-up, pppd daemon is started
>|with interface ppp0 and I get the following routes:
>|
>|Destination Gateway Interface
>|192.168.0.1 0.0.0.0 ppp0
>|127.0.0.0 0.0.0.0 lo
>|0.0.0.0 192.168.0.1 ppp0
>|
>|I use an ipchains firewall to deny output from my linux box so that
>|although the routes for the interface ppp0 is up, my DNS server (running on
>|the same box) does not actually fire-up the demand dialing connection to
>|the net.
>|
>|Now if and when a user connects to my box, I assign him a dynamic address
>|192.168.0.21 and get the following additional route
>|
>|192.168.0.21 0.0.0.0 ppp1
>|
>|Now my linux box also runs a Apache server, so if the user requests a local
>|page he gets it from my box. If he wants a site on the internet then I open
>|the firewall and demand dialing establishes a link ppp0 to the internet.
>|
>|I find my original default route 192.168.0.1 replaced by dynamic ip-address
>|assigned by the ISP.
>
>So at this point you have
>
> Destination Gateway Interface
> xxx.xxx.x.x 0.0.0.0 ppp0
> 127.0.0.0 0.0.0.0 lo
> 0.0.0.0 xxx.xxx.x.x ppp0
> 192.168.0.21 0.0.0.0 ppp1
>
>where xxx.xxx.x.x is the remote IP address at the ISP.
>
>|Upto this point everything works fine until the user disconnects and I find
>|that the route from 192.168.0.21 (ppp1) gets deleted - no problem. But
>
>And here you have
>
> Destination Gateway Interface
> xxx.xxx.x.x 0.0.0.0 ppp0
> 127.0.0.0 0.0.0.0 lo
> 0.0.0.0 xxx.xxx.x.x ppp0
>
>|after some time my default route gets deleted and demand dialing doesnt
>|work. I think this is because the next incoming connection from
>|192.168.0.21 is now automatically assigned interface ppp0. I find I have
>|only two entries for routing ie.
>|192.168.0.21 0.0.0.0 ppp0
>|127.0.0.0 0.0.0.0 lo
>
>This is where I'm lost. The ppp0 interface shouldn't be deleted until
>the pppd process running in the demand mode is explicitly killed.
>That pppd process shouldn't die just because a call-in disconnects
>and the call-in pppd process dies. If the demand pppd process is
>still alive when the second call-in connection is made then the ppp0
>interface should still be up and the second call-in should use ppp1
>interface.
>
>|I tried to run routed and it seemed to help in keeping the interfaces alive
>|but I kept getting error messages that there were packets from an unknown
>|router. Based on your advice I have now disabled routed.
>
>You shouldn't need a routing daemon with the possible exception of
>complex networks.
>
>|Hence my questions on how to control the routes which are automatically
>|deleted. Like I said, maybe my understanding of how it is supposed to work
>|is completely wrong and I would really appreciate any advice.
>
>I believe you are certainly justified in assuming that the demand pppd
>would remain running and that the ppp0 interface would not be deleted
>when the pppd process servicing an incoming connection terminates.
>But I'm not set up to make tests to verify that belief or to verify
>your results.
>
>---
>Clifford Kite Not a guru. (tm)
>[EMAIL PROTECTED] Not even close.
>
>
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]