Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Why do you want to do this? – Sven 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
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
Usually the program you are using to open the client connection allows specifying the src address. – arved Mar 21 '12 at 16:06
@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

Your Answer


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

Browse other questions tagged or ask your own question.