nerdexam
CompTIA

SY0-501 · Question #345

A security administrator wants to implement a logon script that will prevent MITM attacks on the local LAN. Which of the following commands should the security administrator implement within the…

The correct answer is A. arp - s 192.168.1.1 00-3a-d1-fa-b1-06. To prevent MITM attacks like ARP spoofing on a local LAN, the security administrator should use the arp -s command to create a static entry in the ARP cache, which maps an IP address to its correct MAC address.

Submitted by chen.hong· Mar 4, 2026Threats, vulnerabilities, and mitigations

Question

A security administrator wants to implement a logon script that will prevent MITM attacks on the local LAN. Which of the following commands should the security administrator implement within the script to accomplish this task?

Options

  • Aarp - s 192.168.1.1 00-3a-d1-fa-b1-06
  • Bdig - [email protected] mypc.comptia.com
  • Cnmap - A - T4 192.168.1.1
  • Dtcpdump - lnv host 192.168.1.1 or either 00:3a:d1:fa:b1:06

How the community answered

(30 responses)
  • A
    77% (23)
  • B
    3% (1)
  • C
    7% (2)
  • D
    13% (4)

Why each option

To prevent MITM attacks like ARP spoofing on a local LAN, the security administrator should use the `arp -s` command to create a static entry in the ARP cache, which maps an IP address to its correct MAC address.

Aarp - s 192.168.1.1 00-3a-d1-fa-b1-06Correct

The `arp -s` command adds a static entry to the Address Resolution Protocol (ARP) cache, permanently associating the IP address (192.168.1.1) with its legitimate MAC address (00-3a-d1-fa-b1-06). This static mapping prevents an attacker from injecting false ARP entries into the local cache, thereby mitigating ARP spoofing, a common mechanism for Man-in-the-Middle (MITM) attacks on a LAN.

Bdig - [email protected] mypc.comptia.com

The `dig` command is a DNS lookup utility used for querying domain name servers and does not provide any functionality to prevent MITM attacks on the local network.

Cnmap - A - T4 192.168.1.1

The `nmap` command is a network scanner used for discovery and security auditing, but it does not actively configure network settings or security mechanisms to prevent MITM attacks.

Dtcpdump - lnv host 192.168.1.1 or either 00:3a:d1:fa:b1:06

The `tcpdump` command is a packet sniffer used for monitoring network traffic, which can help detect anomalies but does not prevent MITM attacks from occurring.

Concept tested: Static ARP entry configuration for MITM prevention

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/arp

Topics

#ARP poisoning#MITM prevention#static ARP entry#LAN security

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice