LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-30-2004, 08:20 AM   #1
dhoro
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Using multiple IP addresses from client side


Hi everybody!

What I want to do is basically use multiple IP addresses and a single outgoing internet connection. I already setup more subinterfaces (i.e. eth0:1, eth0:2, eth0:3 and so on) on a single physical interface (eth0). My question: is how should I set the routs so that when a connection is initiated from my linux box, the kernel will round-robin go through all the subinterfaces, each time assigning a new source IP address for the outgoing packet.

If I'm not being very clear here, what I want to do:
1. I initiate, let's say, an FTP connection
2. The kernel routes the SYN packet through eth0:1
3 I initiate an HTTP connection
4. The kernel routes the second SYN packet through eth0:2
And so on and so forth.

I think a way to accomplish this is to setup a SNAT between two subinterfaces, specifind more than one --to-source parameters to iptables. But that's not to elegant...

Thanks!
Dan
 
  


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
can I install multiple distro along side each other? honu Linux - Newbie 3 08-01-2004 03:14 PM
tcp/ip programming client side gajaykrishnan Linux - Networking 2 07-29-2004 11:58 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
client side routing? heiseltc Linux - Networking 1 03-06-2003 06:40 PM
Remote Logging (Client Side) robeb Linux - General 3 10-13-2002 03:23 PM


All times are GMT -5. The time now is 12:14 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