CNSP practice question 10 of 15
Which is the correct command to change the MAC address for an Ethernet adapter in a Unix-based system?
Full set: 60 questionsDomain Network Security Fundamentals
The ifconfig utility’s “hw” sub-command changes a hardware (MAC) address. The correct syntax is:
ifconfig hw ether
Thus, “ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF” is the only option that uses the valid sub-command (hw) and the correct keyword (ether) for an Ethernet interface on Unix/Linux systems.
B. Uses “hdw” – no such sub-command exists in ifconfig; command fails with “error: unknown command”.
C. Uses “hdwr” – invalid sub-command; ifconfig will reject it.
D. Uses “hwr” – not recognized by ifconfig; command is syntactically incorrect.
1. ifconfig(8) – net-tools 1.60
Section “hw class address”: “ifconfig eth0 hw ether 08:00:27:12:34:56”. (man7.org/linux/man-pages/man8/ifconfig.8.html)
2. MIT OpenCourseWare 6.858
Lab 2 handout
p.3: “sudo ifconfig eth0 hw ether 00:11:22:33:44:55” demonstrates MAC change. (https://ocw.mit.edu/courses/6-858-computer-systems-security-fall-2014/resources/lab2/)
3. University of Wisconsin–Madison CS640 Lab “Network configuration”
Section 2.2: shows same syntax for MAC spoofing. (https://pages.cs.wisc.edu/~cs640-1/handouts/lab-networking.pdf)
Keep practicing
Take the free CNSP practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CNSP practice questions
- Question 1Which Kerberos ticket is required to generate a Silver Ticket?
- Question 2What is the response from a closed UDP port which is not behind a firewall?
- Question 3Which of the following techniques can be used to bypass network segmentation during infra…
- Question 4What RID is given to an Administrator account on a Microsoft Windows machine?
- Question 6On a Microsoft Windows Operating System, what does the following command do? net localgro…
- Question 7The Management Information Base (MIB) is a collection of object groups that is managed by…
