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'm trying to test a server with jmeter and I want to use different source IP without spoofing (although I'm willing to hear about it as well), on each run.

These are so far the only ideas I have:

  1. changing a static IP on the ETH in a batch script and re-running jmeter-n.cmd check.jmx and looping;
  2. dialing with vpn connection running the jmeter script disconnecting and looping.

But the problem is that I want to change parameters (username/pass) on every run of the script, from a list of about 1000 parameters.

share|improve this question

One way to do is it to create lots of aliases for your eth0, like

for each in $(seq 1 254); do ifconfig eth0:$each 192.168.1.$each; done

And then just do a little bit of NAT voodoo:

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 

But that may change the source IP too often for you ... I'm not 100% sure what you're going to do.

share|improve this answer
Thanks Janne, I think that will work fine, but how do I make jmeter run with different parameters each time? The only way I imagine right now is making lots of cvs files for each parameter set (for 1000 users - 1000 files) – tutuDajuju Nov 9 '10 at 11:49

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.