Capturing Internal Traffic with Virtual Loopback & Wireshark on XP
Posted: May 18th, 2010 | Author: admin | Filed under: networking | 1 Comment »Create Loopback Interface on Windows XP
- Select “Start”->“Settings”->”Control Panel”
- Double click “Add Hardware”
- Click “Next” and select “Yes, I have already connected to the hardware”.
- Select “Add a new hardware device” and click “Next”.
- Click “Install the hardware that I manually select from a list(Advanced)” and then “Next”.
- Follow the following screenshots to finish installing the loopback device
- Follow the following screenshots to configure the loopback device. I give the device an IP of 192.168.100.2, with network mask of 255.255.255.0, and gateway of 192.168.100.1.
Assign IP address, subnet mask, and default gateway.
Run “ipconfig /all” to get the mac ID assigned to this loopback device . Windows assign 02-00-4C-4F-4F-50 for my MAC ID.
Add the ARP entry for this loopback device, using the MAC ID from last step.
Testing this device by pinging it.
- Now you should be able to see this device and monitor traffic through this device from Wireshark.
Remove the Loopback Device
Troubleshooting
Problem 1: WIreshark could not detect the loopback device
Solution: If you don’t see the loopback device after clicking the “List the available capture interfaces” button. Try restart your machine.
When it works, Wireshark should detect the loopback device and display it in its Capture Interfaces list.
Problem 2: The loopback interface does show in the Capture Interface list but there is no packets captured!!
Solution:
- Check the ARP table
Make sure there is an entry for the loopback device in the ARP table. To check, type “arp –a” at the command prompt.
If there is no entry for the loopback device, add it as followed:
- Check the routing table
Make sure the packets for 192.168.100.2 is routed corrected to the loopback interface (with 192.168.100.2 IP address). A common mistake is that there is a route of higher priority to the real loopback interface(127.0.0.1).
To add a static route for packets for 192.168.100.2 to the loopback device, do as followed:
Thanks for all of your work on this web page. I am looking forward to reading more of your posts in the future.