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

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




Reply to: