While reviewing an Ubuntu Server's network configuration you find three Netplan definition files:
/lib/netplan/00-default.yaml
/etc/netplan/50-vm.yaml
/run/netplan/50-vm.yaml
Each file configures the same interface (ens192). After editing /lib/netplan/00-default.yaml to set a new static address you run "sudo netplan apply", but the system still boots with the old address.
According to Netplan's file-processing rules, which statement best explains why the change was ignored?
The definition in /run/netplan/50-vm.yaml is processed last (highest directory priority and later filename), so its settings override those in /lib/netplan/00-default.yaml.
Netplan skips YAML files whose names start with 00, causing your edited file to be excluded from processing.
Because Netplan keeps the first file it encounters, the earlier /etc/netplan/50-vm.yaml configuration took precedence over all others.
/lib/netplan files are ignored once the system has booted, so editing 00-default.yaml cannot influence a running configuration.
Netplan builds a single ordered list of all *.yaml files it finds in /lib/netplan, /etc/netplan and /run/netplan. When filenames differ, they are processed in simple lexicographical order regardless of the directory; when identical filenames exist, the copy in /run shadows one in /etc, which in turn shadows one in /lib. Because /run/netplan/50-vm.yaml is loaded after 00-default.yaml and originates from the directory with the highest priority, every setting it contains for ens192 overrides the earlier definitions, so the address you added in 00-default.yaml never reaches the backend.
The other statements are incorrect: Netplan does not permanently ignore /lib files, it prefers later (not earlier) filenames, and it does not filter files based on their numeric prefix.
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 does 'lexicographical order' mean in Netplan file processing?
Open an interactive chat with Bash
Why does the /run directory have the highest priority in Netplan processing?
Open an interactive chat with Bash
How can you ensure your changes in /lib/netplan/00-default.yaml take effect?
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...
IT & Cybersecurity Package Join Premium for Full Access