Which command can be used to obtain the MAC address for a NIC?

Prepare for your IT Technical Interview with our comprehensive test. Utilize multiple-choice questions, flashcards, hints, and explanations to boost your readiness. Excel in your interview!

Multiple Choice

Which command can be used to obtain the MAC address for a NIC?

Explanation:
To find the MAC address of a NIC, you need to view the adapter’s hardware address. On Windows, the most straightforward way is to run ipconfig /all, which lists each network adapter and shows the Physical Address field—the MAC—for every interface. This command returns a complete view of the MAC alongside other settings like IP address, subnet mask, gateway, and DHCP details, making it the best fit for obtaining the MAC quickly in one place. The other commands serve different purposes: ping -a resolves a destination name but doesn’t reveal your own hardware address; tracert displays the route packets take to a destination; nslookup queries DNS records. So ipconfig /all directly provides the MAC where you need it.

To find the MAC address of a NIC, you need to view the adapter’s hardware address. On Windows, the most straightforward way is to run ipconfig /all, which lists each network adapter and shows the Physical Address field—the MAC—for every interface. This command returns a complete view of the MAC alongside other settings like IP address, subnet mask, gateway, and DHCP details, making it the best fit for obtaining the MAC quickly in one place. The other commands serve different purposes: ping -a resolves a destination name but doesn’t reveal your own hardware address; tracert displays the route packets take to a destination; nslookup queries DNS records. So ipconfig /all directly provides the MAC where you need it.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy