Netplan

Network configuration on Ubuntu is handled through Netplan, which provides a high-level, distribution-agnostic way to define how the network on your system should be set up via a YAML configuration file.

It is just as useful for configuring networking connectivity on a personal Raspberry Pi project as it is for enterprise systems administrators, who may need to configure and deploy complex networking setups in a consistent way across servers.

It is also flexible enough to be used in virtual environments and containerised deployments where network requirements might be more dynamic. Network bridges for VMs and containers can be straightforwardly defined in the YAML configuration file, and changed without needing to restart the entire network.

Netplan integrates with both of the primary Linux network management daemons: NetworkManager and systemd-networkd. For more general information about Netplan and how it works, see the introduction to Netplan in the official Netplan documentation.

Server admins may want to get started by checking out our guide to configuring networks. For more specific networking tasks with Netplan, we recommend checking out the list of how-to guides in their documentation.

1 Like

Do you have a reference for this feature where the entire network does not have to be restarted, just the component you are changing?

There’s no page in the Netplan docs that states it explicitly, but it seems to be the default behaviour of NetworkManager and systemd-networkd. I’ve got references for those, but not from the Netplan docs. I’m happy to add those refs if you think it would help, or to change the wording if you think I’ve stated it a bit strongly?