nmstate.service(8)
π nmstate.service β the man page, but make it a group chat
ok so bestie, welcome to the nmstate.service man page (yes, nmstate.service(8), the whole vibe) β this is the little service that boots your network states into existence and honestly? she's iconic for it. let's get into it π
β¨ NAME β¨
nmstate.service β apply /etc/nmstate network states π
π¦ SYNOPSIS π¦
nmstate.service
that's it. that's the whole synopsis. no cap. β¨
πΈ DESCRIPTION πΈ
okay so nmstate.service runs the nmstatectl service command, and what that does is apply all the network state files that end in .yml or .yaml inside the /etc/nmstate folder. literally all of them, she does not do half measures. π
β οΈ but here's the drama: if two files have the same name but one ends in.ymland the other ends in.yaml, nmstate will not apply either of them β she fails the service entirely. no cap, it's giving "if y'all can't get along nobody's going anywhere" π
By default, after the service processes a file, it renames the network state file to a name with the suffix .applied. this is a whole protective bestie move β it means the same file doesn't get applied again the next time the service runs. slay. β¨
π§ alternativelyβ¦ the config file π§
you can also set the following in /etc/nmstate/nmstate.conf:
[service]
keep_state_file_after_apply = true
with keep_state_file_after_apply = true, the service copies the network state file to a file with .applied, but preserves the original file. so you keep both. best of both worlds, honestly. π«Ά
π merging vs. overriding π
By default, nmstate merges the network state file with the current network state. it's a collaborator, not a dictator.
but if you want to override interface settings without merging, please set override_iface = true in the [service] section in /etc/nmstate/nmstate.conf:
[service]
override_iface = true
π₯ so what happens when override_iface = true? π₯
if override_iface = true, then for the network state to apply, nmstate.service will:
- For the
interfacessection β any defined interface will be configured by desired state information only. undefined properties of this interface will use the default value instead of merging from the current state. she said "new beginnings only" π - For other sections β no changes to their original behavior. they stay exactly as they were, lowkey loyal. π
for example, if the desired interface has no IPv4 section defined, nmstate will treat it as disabled, regardless of the current network status. yeah. that's the whole point. not me being dramatic, that's just the semantics π
π BUG REPORTS π
found a bug? report it on the nmstate GitHub issues β <https://github.com/nmstate/nmstate>. the maintainers wanna hear it fr fr π«Ά
π COPYRIGHT π
License Apache 2.0 or any later version β <https://www.apache.org/licenses/LICENSE-2.0.txt> π
β SEE ALSO β
nmstatectl(8)β go read it, iykyk π¦
π and that's the page! this wasnmstate.service, version2.2.62, dated October 16, 2026 β mwah, take care of your network states bestie, and remember: no duplicate.yml/.yamlnames. periodt. π β¨
π¦ where this page comes from
- centos-stream 10: nmstate 2.2.62-4.el10 Β· Apache-2.0 AND LGPL-2.1-or-later
- centos-stream 9: nmstate 2.2.62-3.el9 Β· LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms