LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-09-2005, 04:59 AM   #1
cjs500
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
Question routing traffic out different eth#??


I'm fiddling around on a vmware os and setup 4 nics in on system. 2 of them being connected to the same ISP and 1 going to one network segment and the other going to another network segment.

Basically want to have 2 WANs going to different segments. That I have working using firewall rules (iptables) but since the default gateway is set to one of the external eithernet adapters all internal traffic goes out the same adapter.

Basic scenario:
eth0 > 24.x.x.x
eth1 > 24.x.x.x
eth2 > 192.168.1.x (internal segment #1 - physical segment)
eth3 > 172.16.x.x (internal segment #2 - vmware host only)

default gateway is eth1

I've taken a look at mangle using mark in iptable but not exactly sure how to configure iproute2 to push traffic marked out the eth# adapter that I want. ...if at all possible.

So all external traffic goes where I want it since I know internal destination IPs but for internal out I would like try and do this:

eth2 out eth0
eth3 out eth1

Thanks!
 
Old 07-10-2005, 04:39 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
are you looking for somethign like this? http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN268 Either way it's really not ideal to be using two nic's on a single subnet... where's the logic in it??? You could be bridging those two ports i guess, but that takes away the logic of wanting to routie certain traffic in certain ways. If these two nic's are on the same subnet, there's no argument to want to send trafic either way.. if you're not breaking the netowrk then either interface should be a suitable candidate anyway...
 
Old 07-10-2005, 11:07 PM   #3
cjs500
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the reply Chris. There isn't much logic in running two nics on the same subnet usually. In this case I want to have 2 seperate external IP's for a web project so I can have a website on a virtual subnet in VMWare and whatever else on my physical and was attempting to create a dual firewall to use less memory, allow traffic routing from my physical to virtual subnet, etc.

I'm not exactly sure but according to some users on my ISP they claim the traffic seems to be throttled via IP address depending on how much a user uploads/downloads or just set at a specific speed. I haven't tested it to verify this yet. If it appears to be throttled this way the next thing I'm looking at is bridging adapters (this is I haven't tried before) to see if I can squeeze some more speed out of my connection.
 
Old 07-11-2005, 12:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
well if it's more per ip than per NIC, maybe you just need to put two ip's on the same card? create an eth0:1 to take the second IP? might be suitable to go gigabit?
 
  


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 traffic fuelinjection Linux - Networking 3 04-01-2005 05:51 PM
Need help to route traffic properly with 2 eth cards mchan Linux - Networking 1 03-20-2005 07:55 PM
inbound traffic routing beowulfde Linux - Networking 2 02-20-2005 04:47 PM
command to see eth traffic? darazman Linux - Networking 8 10-25-2003 02:16 PM
USB<->Eth routing and IP-masquarading logrus Linux - Networking 1 11-21-2002 03:22 PM


All times are GMT -5. The time now is 06:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration