Re: routing problem
On Sat, May 13, 2006 at 08:43:35PM +0200, email@example.com wrote:
> Hi all I have dth fallowing problem.. I have a router with public ip (for example 220.127.116.11/30) and my Debian whit eth1 public ip 18.104.22.168/30. Everything works fine I can ping outside no problem.. but my Debian also fas eth0 interface with ip 192.168.1.1 and it is the gateway of my LAN. The problem is that packets from my lan stops at 22.214.171.124. It seems to be Debian cannot routes packets ??
> iface eth0 inet static
> address 192.168.1.1
> gateway 126.96.36.199
> iface eth1 inet static
> address 188.8.131.52
> gateway 184.108.40.206
> I also added..
> route add -net 0.0.0.0 netmask 0.0.0.0 gw 220.127.116.11 dev eth1
> ..but no way to make my Debian works as router/gateway for computers iiside my lan
You should remove the gateway for your eth0 configuration, as it is not
in the same subnet of 192.168.1.1/24
Your default gateway for your other devices on the LAN should point to