A network administrator needs to connect several containers directly to the local LAN so that each container receives its own IP address on that subnet. The access-switch port is configured to allow only one MAC address, so the solution must avoid assigning unique hardware addresses to every container. Which container network driver meets these requirements?
The correct choice is ipvlan. In both L2 and L3 modes, the ipvlan driver gives each container an IP address that is visible on the physical network, but all sub-interfaces reuse the parent interface's single MAC address. This conserves MAC entries on the switch while still allowing the containers to be addressed individually by IP.
macvlan is wrong because it assigns a distinct MAC address to each container, quickly exceeding the switch's one-MAC limit.
bridge is wrong because it keeps containers behind the Docker host's NAT, so the containers are not directly reachable on the LAN.
host is wrong because it puts the container in the host's network namespace; the container does not get its own separate IP address on the LAN.
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 the difference between ipvlan L2 and L3 modes?
Open an interactive chat with Bash
Why does macvlan exceed the one-MAC limit on a switch?
Open an interactive chat with Bash
How does the bridge network driver differ from ipvlan?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User 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 .