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

To test my Load Balancer I would need to create several TCP/IP connections (from one host). Which tool can be used to create this sessions with different source-ip addresses? (no worries, only in my private LAN).

share|improve this question
up vote 5 down vote accepted

The easiest thing to do would be to assign multiple IPs to a host, and then use something that lets you bind to specific source IPs. Since this is TCP/IP and you need to handle the response, crafting is probably just a pain.

With linux, you could use Curl for http connections if that is what you happen to be using:

   --interface <name>
          Perform  an operation using a specified interface. You can enter
          interface name, IP address or host name. An example  could  look

           curl --interface eth0:1

Also with Linux, if you want lower level tcp, you might consider netcat nc.

share|improve this answer
Excuse me but, what does the eth0:1 means? The curl man page does not explaint it. – Sopalajo de Arrierez Dec 13 '14 at 14:26

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.