LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Two gateways? (https://www.linuxquestions.org/questions/linux-networking-3/two-gateways-361460/)

candyman123 09-08-2005 01:10 PM

Two gateways?
 
My computer has 2 network cards.

eth0 is grabbing a public IP from comcast
eth1 is statically set to 192.168.1.15 for my internal network

My computer is not acting as a router. It is merely connected to both the internal network and to the comcast network.

I would like to be able to administer the router in the 192 IP range...and I would like to be able to connect to computers in the 192 range as well.

I guess I don't understand how this works.....what do I put as the gateway for eth1? When I type in 192.168.1.1, I would like this traffic to through the wireless router that I am connected to. Whenever I give some public address, I would like it ot go through eth0.

Thanks.


config_eth0=( "dhcp" )

#config_eth1=( "192.168.1.16 netmask 255.255.255.0" )
#routes_eth1=( "default gw 192.168.1.1" )

david_ross 09-08-2005 01:36 PM

You don't need to specify a gateway for local traffic. By definition you can only have one default route.


All times are GMT -5. The time now is 01:06 AM.