Thanks for your reply Clifford,
Correct me if I'm wrong, but my understanding is that there must be a
default route pointing to some bogus remote ip-address for demand dialing
to work from an incoming ppp connection.
I use Linuxconf to set-up the outgoing ppp0 interface with a remote and
local ip-address and choose the option to activate this interface during
boot-up.
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.
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
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
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.
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.
Regards
Rajiv
At 11:50 AM 1/6/00 -0600, you wrote:
>On Thu, 6 Jan 2000, Rajiv Ghai wrote:
>
>|I masquerade ppp connections through my RH6.0 linux box to the internet
>|using demand dialing for my interface with the net (using dynamic ips).
>|The default route has been set for interface ppp0 which is automatically
>|activated during boot-up. However, when I disconnect from the internet I
>
>I don't know any way to activate the PPP interface except through pppd. Is
>that what you mean?
>
>|find the default route has been removed. When I connect a second time I
>|find demand dialing does not work.
>
>The default route to a PPP interface is both set and removed by pppd. I
>don't understand why demand would work only once. More details?
>
>|My questions:
>|1. Is it possible to disable the standard feature for the default route to
>|be deleted when the link comes down. If so, how does one do it. ?
>
>Not possible so far as I know. Why do you need it after the link is down?
>
>|2. Do I need to run routed or gated ?. The ppp-HowTo states that incoming
>|connections should use proxyarp and outgoing a default route. However my
>|logs show that proxyarp cannot find any ethernet device. Is there any
>|reason to use proxyarp if one has no LAN but just incoming ppp links ?
>
>You don't need a routing daemon for either a leafnode box or a leafnode
>LAN. If you don't have a LAN then you don't need the proxyarp option.
>
>---
>Clifford Kite Not a guru. (tm)
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]