Netplan CLI

Netplan provides a command line interface called netplan, which a user can use to control certain aspects of the Netplan configuration.

Tool

Description

help

Show a generic help message

generate

Generate back-end specific configuration files from /etc/netplan/*.yaml

apply

Apply current Netplan configuration to running system

try

Try to apply a new Netplan configuration to running system, with automatic rollback

get

Get a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"

set

Add new setting by specifying a dotted key=value pair like "ethernets.eth0.dhcp4=true"

info

Show available features

ip

Retrieve IP information (like DHCP leases) from the system

rebind

Rebind SR-IOV virtual functions of given physical functions to their driver

status

Query networking state of the running system