[Gllug] Routing Issues

Ian bredroll at atari.org
Thu Aug 15 10:04:23 UTC 2002


hmm,

reading what you have, it looks like you have your dsl router on
192.168.1.x and plugged into eth0, and your lan on 192.168.1.x also and
plugged into eth1, you cant route traffic for one subnet thru two
interfaces, unless you use some sort of ethernet bridge(evil),

ok, i take it your adsl router is plugged into adsl and your linux box,
and your linux box is plugged into your LAN ? if so, its routing table
should look like this (also with its lo interface)

eth0 has ip 192.168.0.2 and goes to 192.168.0.1 on the dsl router,
eth1 has ip 192.168.1.1 and is for the LAN,

network            netmask            router            dev
-----------------------------------------------------------------
192.168.0.2        255.255.255.255      -               eth0
192.168.0.0        255.255.255.0        -               eth0
192.168.1.1        255.255.255.255      -               eth1
192.168.1.0        255.255.255.0        -               eth1
0.0.0.0            0.0.0.0            192.168.0.1       -

if you can ping the dsl router from your lan, then cool, if not check
proc/sys/net/ip_forward to see if its set to 1 or not, if its not echo 1
> to it,

remember to export your correct route to the lan with dhcp, in this case
i would export the ip 192.168.1.1 as your linux box can have more
control over what goes in and out (you may run a dns etc,)

hope this helps

bredroll


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list