nmstate.service(8)

πŸ“¦
version 2.2.62 Β· 5 versions
, in centos-stream 10, centos-stream 9

πŸ’… 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 .yml and 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 interfaces section β€” 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 🫢


License Apache 2.0 or any later version β€” <https://www.apache.org/licenses/LICENSE-2.0.txt> πŸ’–


⭐ SEE ALSO ⭐


πŸŽ€ and that's the page! this was nmstate.service, version 2.2.62, dated October 16, 2026 β€” mwah, take care of your network states bestie, and remember: no duplicate .yml/.yaml names. periodt. πŸ’…βœ¨
πŸ“¦ where this page comes from