A Linux administrator is configuring a new KVM virtual machine for a security testing lab. The primary requirement is that the VM must be able to communicate with the host operating system, but it must be completely prevented from accessing the external network (LAN or internet) for security reasons. Which networking mode should the administrator select for the VM's network interface to meet this requirement?
The correct answer is Host-only networking. This mode creates a private virtual network that is shared between the guest VMs and the host machine. In this configuration, the VMs can communicate with the host and with each other (if they are on the same host-only network), but they are isolated from any external networks. This setup is ideal for isolated testing and development environments where network access must be restricted.
NAT networking is incorrect because it allows the VM to initiate outbound connections to the external network through the host's IP address. While it hides the VM from the external network, it does not prevent the VM from accessing it.
Bridged networking is incorrect because it connects the VM directly to the physical network, making it a peer to the host and other devices on the LAN. This provides full external network access, which violates the security requirement.
Routed networking is incorrect because its purpose is to route traffic between the VM's network and an external network, which explicitly provides the connectivity that needs to be prevented.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Host-only networking in detail?
Open an interactive chat with Bash
What are examples of when Host-only networking is useful?
Open an interactive chat with Bash
How is Host-only networking different from NAT networking?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .