Preface: If you are proficient in LoadRunner, you can directly use LoadRunner for IP spoofing. Here is an introduction to how to use JMeter for IP spoofing.
IP spoofing usage scenarios
01. How to set up IP spoofing in JMeter
1. Obtain available IP
Before configuring IP spoofing, you need to obtain unoccupied IP addresses in the same network segment. It is recommended to use the IP Wizard that comes with LoadRunner. It can automatically scan unused IP addresses in the specified network segment.
Here’s how:
Start IP Wizard first
Select Create new settings and click Next
Enter the local IP and click Next
Click add
The content that needs to be configured is as follows, click OK after completion:
-
From IP:
Which IP to start scanning from?
-
Number to add:
Scan how many IPs to add. If the machine configuration is average, it is recommended to scan less, otherwise the IP Wizard may crash.
-
Submask:
Subnet mask, consistent with the local machine
Now I have also found a lot of test friends and created a communication group to share technology, sharing a lot of technical documents and video tutorials we collected. If you don’t want to experience the feeling of not being able to find resources when studying on your own, having no one to answer your questions, and persisting for a few days before giving up. You can join us to communicate. And there are many technical experts who have made certain achievements in automation, performance, security, test development, etc. Share their experience, and also share many live lectures and technical salons You can learn for free! Focus on it! Open source! ! ! QQ group number: 110685036 [password: csdn999]
After the scan is completed, a prompt will pop up if there is an occupied IP, click OK
Click Done
Click save as to save the IP information and a file with the .ips suffix will be generated
Use a text editor to open the .ips file, you can see the IP we just scanned
How to verify that this IP can be used?
You can ping it. If the ping fails, it means that the IP is not occupied and we can keep it for future use.
2. Configure IP
Go to Control Panel > Network and Internet > Network Links, after finding the currently linked network, right-click “Properties”
Configure IPv4 attributes
Click Advanced
Click “Add”. Note that if the IP is obtained automatically, it will be grayed out. You need to manually configure the local IP, as shown in the figure.
Add the IP address and subnet mask in the .ips file one by one
After the addition is completed, be sure to save the configuration and use ipconfig to confirm whether the configuration is successful
3. Configure IP spoofing in JMeter
First prepare the parameterized file, save the IP address in the previous .ips file, and reference it in JMeter
Create a sampler in JMeter, select “Advanced”, select “HttpClient4” for client implementation, and the source address refers to the variable name of the parameterized file.
All configurations are now complete. You can add a debug sampler to verify whether the IP has changed
Finally, I would like to thank everyone who has read my article carefully. Looking at the increase in fans and attention, there is always some courtesy. Although it is not a very valuable thing, if you can use it, you can take it directly!
Software testing interview document
We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.
The knowledge points of the article match the official knowledge files, and you can further learn related knowledge. Network Skill TreeHomepageOverview 42,395 people are learning the system