Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a NIC with 2 aliases on it. The network interface has 3 IPs configured on it. Think about it like this: i can ping the same server by hitting .100 .101 and .102.

I want the source address of the outgoing connections to be distributed among these ip. So if i have 3 opened connections, one connection will have result as having an IP address ending with .100, the other two should result as having as ip addresses .101 and .102.

I'm using FreeBSD but I think this question to be Linux-Like wide.

share|improve this question
1  
Why do you want to do this? –  SvW Mar 21 '12 at 15:14
    
Nothing you should worry about ;) I simply pay a service to have N number of multiple connections to their services, however there is an hard limit of 200 connections / source ip and I want to go over it. I pay in the end for what I use, don't worry ;) it's just that this would make me finish my project a week or so earlier. –  cedivad Mar 21 '12 at 15:24
1  
What @SvenW said -- I see no benefit to this whatsoever. You're not "load-balancing" anything: The limiting resource is usually uplink bandwidth. You could theoretically assign 4294967296 IPs to the same interface but you wouldn't get any more speed/redundancy out of it. –  voretaq7 Mar 21 '12 at 15:25
2  
Usually the program you are using to open the client connection allows specifying the src address. –  arved Mar 21 '12 at 16:06
4  
@cedivad Perhaps if you explain to us why you are doing this (what you're trying to work around) someone might give you an answer you can use -- as it is we're all kinda staring at this question like the twisted wreckage of a car after a freight train hits it (you can't look away, but you don't know why :-) –  voretaq7 Mar 21 '12 at 17:23
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.