logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

netplan - Netplan runtime CLI

Author

       Lukas Märdian (slyon@ubuntu.com).

                                                 23 January 2025                                      NETPLAN(8)

Description

       This manual page provides an overview of the Netplan runtime CLI commands.

Examples

netplangenerate  converts  Netplan YAML into configuration files understood by the back ends ( systemd-networkd(8) or NetworkManager(8) ). It does not apply the generated configuration.

       netplanapply applies the current Netplan configuration to a running system.

       netplantry [ --timeout 120 ] takes a netplan(5) configuration, applies it, and  automatically  rolls  it
       back if the user does not confirm the configuration within a time limit.

       netplanget [ network.ethernets.eth0 ] reads YAML files from /{etc,lib,run}/netplan/*.yaml and returns a
       merged view of the current configuration.

       netplanset [ network.ethernets.eth0={dhcp4: true, dhcp6: true} ] writes a given key/value pair  or  JSON
       struct into a YAML file in /etc/netplan/ and validates its format.

       netplanstatus [ interface ] queries the current network configuration and displays it in human-readable
       format.

Files

/etc/netplan/
              Directory with YAML configuration files, describing the network configuration.

Name

netplan - Netplan runtime CLI

Options

--debug
              Enable debug messages

See Also

netplan(5),  netplan-generate(8),  netplan-apply(8),  netplan-try(8),   netplan-get(8),   netplan-set(8),
       netplan-status(8).

Synopsis

netplan [--debug ] [generate|apply|try|get|set|status]

See Also