var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-333696-1']); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
  • 2008年04月07日

    LoadRunner运行原理浅析(5)-IP欺骗

    分类:

    IP Wizard(位于%programfiles%\Mercury\LoadRunner\bin\ipwizard.exe)不支持DHCP分派的网络,见下图:

     

    因此使用IP欺骗的客户机必须使用固定IP。它的设置能保存为.ips后缀的文件。

    设置完毕后需要重启生效,见下图

     

    在当前用户的Temp目录(位于%Temp%)分别生成unix_routing.shnt_routing.bat两个文件。

     

    以下是生成的设置脚本:

    nt_routing.bat

    REM This is a bat file to add IP addresses to the routing table of a server

    REM Replace [CLIENT_IP] with the IP of this machine (Load Generator) that the server already recognizes

    REM This script should be executed on the server machine

     

    route ADD 192.168.1.1 MASK 255.255.255.255 [CLIENT_IP] METRIC 1

    unix_routing.sh

    # Bourne shell script to add IP addresses to the routing table of a server

    # To run replace [CLIENT_IP] with the IP of this machine (Load Generator) that the server already recognizes

    # Then chmod +x unix_routing.sh

    # and finally execute this script on the server

    #!/bin/sh

     

    route add 192.168.1.1 [CLIENT_IP] 255.255.255.0

     

    IP欺骗设置生效后,如要使用它需要勾选LoadRunner Controller菜单Scenario->Enable IP Spoofer。此后在LoadRunner Controller勾选菜单Tool->Export Mode,再打开菜单Tool->Options->General,能看见Multiple IP address Mode有效。

     

    【资源】

    关于IP欺骗的问题

    虚拟IP(IP spoofer)使用经验、教训

    Windows NT TCP/IP 路由基础

    分享到:

    历史上的今天:

    SWIG 2006年04月07日