Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-08-2005, 01:10 PM   #1
Registered: Jul 2003
Posts: 46

Rep: Reputation: 15
Two gateways?

My computer has 2 network cards.

eth0 is grabbing a public IP from comcast
eth1 is statically set to 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, 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.


config_eth0=( "dhcp" )

#config_eth1=( " netmask" )
#routes_eth1=( "default gw" )
Old 09-08-2005, 01:36 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple gateways efm Linux - Newbie 4 06-10-2005 09:50 AM
Multiple Gateways Jon Doe Linux - Networking 9 03-07-2005 04:26 PM
Gateways Esmo2000 Linux - Networking 1 01-03-2005 03:49 PM
2 Gateways Equis Linux - Networking 1 11-15-2003 04:58 AM
2 Gateways def1014 Linux - Networking 3 10-24-2002 06:21 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration