Welcome to the most active Linux Forum on the web.
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 03-17-2005, 04:40 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Ip Routing

I have a question maybe someone can help with.

The O/S I am running is pretty much a vanilla install of Fedora Core 3.

I have two NIC's in the machine. Eth0 and Eth1

I am attempting to separate the two networks and its traffic.

ETH0 has a network of mask and gw
ETH1 has a network of mask and gw

Since I have to have a default gateway, I have it set to

However, all traffic from the ETH1 goes out the default gateway, which I guess makes sense.

I attempted to add a gw for that network through the route command, so I get

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface UG 0 0 0
eth1 U 0 0 0
eth1 U 0 0 0
eth0 UG 0 0 0

However the outbound traffic from IP still goes out the default gateway.

My goal is to essentially create a router or something that directs all traffic for each network to its proper gateway.

Thanks in advance for any help.

Old 03-18-2005, 12:20 PM   #2
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
Linux Advanced Router will let you do that. You need to have it compiled into you kernel. You are then able to create 2 routing tables so that each has a seperate gateway. Just search this forum, there are already threads discussing this topic and giving links to various toutorials.


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
routing jmono Linux - Networking 5 02-07-2006 06:20 AM
Routing gtkmike Linux - Networking 1 11-13-2003 09:21 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing in RH 8.0 Hybrid Blue Linux - Networking 2 10-12-2003 05:41 PM
Routing jimval7 Linux - Networking 3 02-08-2002 04:06 PM > Forums > Linux Forums > Linux - Networking

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

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