|| I'm having a problem with my lan. I want all my win95 machines to
|| connect to the Internet via my linux box (Red Hat 5.1 with PPP).
|| I can get the Linux box on the net just fine, just activate ppp0 and
|| add route default ppp0 and voila.
Make sure you have configured IP forwarding in the kernel *and* turned
it on with:
# echo 1 >/proc/sys/net/ipv4/ip_forwarding
|| I also have linux configured as a gateway and the info from my
|| route table is:
||
|| >Kernel IP routing table
|| >Destination Gateway Genmask Flags Metric Ref Use Iface
|| >195.64.64.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
|| >194.229.16.0 0.0.0.0 255.255.255.0 U 0 0 1 eth0
|| >127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 2 lo
|| >0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
|| >0.0.0.0 194.229.16.225 0.0.0.0 UG 0 0 2 eth0
||
|| So i'm guessing the line with the gateway address should have the ppp0
|| interface assigned to it. But route add won't let me
|| "route add default gw 194.229.16.225 ppp0" without an error.
That address is not the one of your ppp peer (195.64.64.1).
The last routing table entry is not doing anything. Remove it when your
ppp link is up. In fact, assuming the local ethernet has no other link
to internet, do not set a default route to the local ethernet at all.
What is special about 194.229.16.225, by the way?
Just make the default route go through ppp, as it already is:
Destination Gateway Genmask Flags Metric Ref Use Iface
195.64.64.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
194.229.16.0 0.0.0.0 255.255.255.0 U 0 0 1 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 2 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
The last line can also read:
0.0.0.0 195.64.64.1 0.0.0.0 UG 0 0 0 ppp0
because with ppp the gateway does not matter.
Doei. Vincent.
--
<http://www.xs4all.nl/~zweije/> | don't read, does anybody get burnt?"
[Xhost should be taken out and shot] | -- Paul Tomblin on a.s.r.