1/ when we use ifconfig or ipconfig to capture traffic from your computer and examine your MAC address. Does it match each other?

2/Can we determine the code value for IP in the frames we have been captured?
Who is Participating?
Rick_O_ShayConnect With a Mentor Commented:
I am not sure what you are asking.
ipconfig on a Windows PC will show you the physical address which is the MAC of the ethernet adapter on the device.

A packet capture will show source and destination MAC and IP addresses and the data of all of the packets sent and received.
ifconfig is for *nix type OS's.
ipconfig is for Windows

These commands show you specific information about how the NIC is configured, but they are not the same commands.

Neither have anything to do with capturing packets.

If you want to capture network traffic you would need something like Wireshark (which runs on Windows or Linux) or MS's Netmon (runs on Windows only).
Or tcpdump for Linux. But as stated earlier, ifconfig and ipconfig show your configuration, not your traffic.

In answer to question #2, all of them will show the entire contents of the headers.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.