[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Routing question?



Title: RE: Routing question?

It's basic routing at least from what I can tell.  In your first scenario all of you traffic will leave out of your default gateyway 70.1.1.1.  Then you will only be able to talk to 192.168.10.x on eth1.  So you would need to add a static route for  192.168.11.20.

 route add -net 192.168.11.0 netmask 255.255.255.0 gw "gatewaydeviceip"


man route


-----Original Message-----
From: Robert Middleswarth [mailto:robert@middleswarth.net]
Sent: Wed 8/9/2006 5:37 PM
To: debian-isp@lists.debian.org
Subject: Routing question?

Here is what I am tiring to do?  I have both a public IP and private IP
address for this we will call them 70.1.1.5 and 192.168.10.5.  The
192.168.10.5 has a gateway of 192.168.10.1 and it routes out to
192.168.x.x address.  The 70.1.1.5 has a gateway of 70.1.1.1 and routes
to the inet.  I haven't be able to get this to work.  I have searched
and can't find what I am looking this is the closest I have found but
can't figuire how to use.  This is my current interface setup.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 70.1.1.5
        netmask 255.255.255.192
        network 70.1.1.1
        broadcast 70.1.1.63
        gateway 70.1.1.1

auto eth1
iface eth1 inet static
        address 192.168.10.5
        netmask 255.255.255.0
        network 192.168.10.0
        broadcast 192.168.10.255

This works but only if the I am connecting or talking to 192.168.10.x IP
  if I try to connection 192.168.11.20 it wont work then I tired.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 70.1.1.5
        netmask 255.255.255.192
        network 70.1.1.1
        broadcast 70.1.1.63
        gateway 70.1.1.1

auto eth1
iface eth1 inet static
        address 192.168.10.5
        netmask 255.255.255.0
        network 192.168.10.0
        broadcast 192.168.10.255
        gateway 192.168.10.1

This caused my public IP trafic to go thought my local IP network
resulting in major problems with the connection.  I known I am missing
something simple but can't see it now.  If there is doc for networking
under debian please point me to it.

Thanks
Robert



--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: