LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-08-2005, 12:10 PM   #1
candyman123
Member
 
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 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" )
 
Old 09-08-2005, 12:36 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


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 08:50 AM
Multiple Gateways Jon Doe Linux - Networking 9 03-07-2005 03:26 PM
Gateways Esmo2000 Linux - Networking 1 01-03-2005 02:49 PM
2 Gateways Equis Linux - Networking 1 11-15-2003 03:58 AM
2 Gateways def1014 Linux - Networking 3 10-24-2002 05:21 PM


All times are GMT -5. The time now is 09:53 AM.

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