我来补充2点:
1、在controller里, Tools > Expert mode, 然后Tools > option > General, 此处的Multiple IP address mode和以下的设置要一致:Run-time setting > miscellaneous 的Multithreading,如果不一致虚拟用户还是会使用同一个IP。(我实践中是这样的,但文档中没有说必须一致。)
2、用以下的代码插入到测试脚本中,然后在日志中可以查看是否虚拟用户都使用了不同的IP
char *ip;
ip = lr_get_vuser_ip();
if (ip)
lr_output_message("The IP address is %s", ip);
else
lr_output_message("IP spoofing disabled");
不正确的请更正。