How to install GNS3 and capture packets?
Index
- Installation
- Capture packets
Installation:
Capture packets:
We first need to configure IP addresses.
(e.g.
PC1: $ ip 10.1.1.1 255.255.255.0
PC2: $ ip 10.1.1.2 255.255.255.0
//restart GNS3
)
Step 1:
- Right click the link that we want to capture.
- Click 'start capture' and click 'ok'.
Check out if there are some error messages.
In my case, I got some error messages.
This error message indicates that the path of Wireshark is unknown.
Thus, just modify the path of Wireshark to the true one.
Click 'Edit' on the menu bar and click 'preference', then go to 'Packet Capture'.
The default path of wireshark is 'C:\Program Files\Wireshark\wireshark.exe', I just changed it to the following stuff.
Then, click 'Apply' and 'OK'.
Fixed.
Try to send ICMP packet...
Notice I'm capturing packets between PC1 and Switch, so I sent ICMP packets from PC1 to PC2.
Successful!