Wireshark/IPv4 remote
Appearance
Wireshark is a free and open source packet analyzer used for network troubleshooting and analysis. These activities will show you how to use Wireshark to capture and analyze remote IPv4 traffic.
Readings
[edit | edit source]Preparation
[edit | edit source]To prepare for this activity:
- Start Windows.
- Log in if necessary.
- Install Wireshark.
Activity 1 - Capture Remote IPv4 Traffic
[edit | edit source]To capture remote IPv4 traffic:
- Start a Wireshark capture.
- Use ping 8.8.8.8 to ping an Internet host by IP address.
- Stop the Wireshark capture.
Activity 2 - Analyze Remote IPv4 Outbound Traffic
[edit | edit source]To analyze remote IPv4 outbound traffic:
- Observe the traffic captured in the top Wireshark packet list pane. Look for traffic with ICMP listed as the protocol. To view only ICMP traffic, type icmp (lower case) in the Filter box and press Enter.
- Select the first ICMP packet, labeled Echo (ping) request.
- Observe the packet details in the middle Wireshark packet details pane. Notice that it is an Ethernet II / Internet Protocol Version 4 / Internet Control Message Protocol frame.
- Expand Ethernet II to view Ethernet details.
- Observe the Destination field. This should contain the MAC address of your default gateway. You can use arp -a to confirm. Notice that remote Internet layer traffic is processed as local Link layer traffic. The default gateway will route the packet to the Internet.
- Observe the Source field. This should contain your MAC address. You can use ipconfig /all or getmac to confirm.
- Observe the Type field. Notice that the type is 0x0800, indicating IP.
- Expand Internet Protocol Version 4 to view IP details.
- Observe the Source address. Notice that the source address is your IP address.
- Observe the Destination address. Notice that the destination address is the Internet host IP address.
Activity 3 - Analyze Remote IPv4 Inbound Traffic
[edit | edit source]To analyze remote IPv4 inbound traffic:
- In the top Wireshark packet list pane, select the second ICMP packet, labeled Echo (ping) reply.
- Observe the packet details in the middle Wireshark packet details pane. Notice that it is an Ethernet II / Internet Protocol Version 4 / Internet Control Message Protocol frame.
- Expand Ethernet II to view Ethernet details.
- Observe the Destination field. This should contain your MAC address.
- Observe the Source field. This should contain the MAC address of your default gateway. Notice that the remote Internet layer traffic is returned as local Link layer traffic. The routers between the Internet host and your network routed the packet back to your router so that it could forward the packet back to your computer.
- Observe the Type field. Notice that the type is 0x0800, indicating IP.
- Expand Internet Protocol Version 4 to view IP details.
- Observe the Source address. Notice that the source address is the Internet host IP address.
- Observe the Destination address. Notice that the destination address is your IP address.
- Close Wireshark to complete this activity. Quit without Saving to discard the captured traffic.