Horst Lueck wrote:

> QUESTION:
> Which process/conf-file is responsible for directing a request for an 
> external connection to ppp0,  while, lets say 'ping 192.168.1.xxx' goes 
> through eth0 ? 
> (I have tried subnet mask 255.255.255.0 and 255.255.0.0)

Hi, Horst.

Whenver the kernel has an outgoing IP packet to send, it looks in its
routing table.  You can view the routing table type by typing
"/sbin/route -n".

Here's what it shows on my workstation.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.4     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

That's not very interesting, because my workstation only has one
network interface, eth0.  When I send a packet, the kernel looks for
the routing table that best matches the packet's destination address
and sends the packet through the listed interface to the listed
gateway, or directly to the destination if there is no gateway.

The line with Destination 0.0.0.0 and Genmask 0.0.0.0 is known as the
Default Route.  Whenever a packet doesn't match any of the other
routing table entries, it is sent through the Default Route.  In my
routing table above, the Default Route is the last line.

If I sent a packet to 207.189.137.45, the only match would be the
default route, and the packet would be sent through eth0 to the
gateway, 192.168.0.1.

If I sent a packet to 192.168.0.44, the best match would be the third
line (Destination = 192.168.0.0, Genmask = 255.255.255.0), so the
packet would be sent directly to 192.168.0.44 through eth0.

If you look at your routing table while your PPP link is up, I think
you'll see that the default route (destination 0.0.0.0, Genmask
0.0.0.0) points through eth0 to some gateway on the 192.168.0.X
network.

So what should you do?  In my version of kppp (warning, I run a very
old version of KDE), there is a panel on the edit dialog called
"Gateway".  There is a checkbox on that panel labeled "Assign the
Default Route to this Gateway".  I would check that box.  Then redial
your ISP.

But that's for kppp 1.6.22.  I don't know how the current version
works.

If that doesn't solve your problem, please write back with the output
of "/sbin/route -n" and "/sbin/traceroute -n 207.189.137.45".

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to