LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-17-2005, 04:40 PM   #1
alanfullmer
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 166.70.122.0 mask 255.255.255.128 and gw 166.70.122.1
ETH1 has a network of 166.70.133.128 mask 255.255.255.224 and gw
166.70.133.129

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

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
this:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
166.70.133.128 166.70.133.129 255.255.255.224 UG 0 0 0
eth1
166.70.133.128 0.0.0.0 255.255.255.224 U 0 0 0
eth1
166.70.122.0 0.0.0.0 255.255.255.128 U 0 0 0
eth0
0.0.0.0 166.70.122.1 0.0.0.0 UG 0 0 0
eth0


However the outbound traffic from IP 166.70.133.133 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.

-Alan
alan@xnote.com
 
Old 03-18-2005, 12:20 PM   #2
pave
Member
 
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration