snippetbashTip
netplan — Network configuration utility using YAML. More information: <https://netplan.readthedocs.io/en/stabl
Viewed 0 times
configurationcommandnetworknetplancliyamlusingutility
linux
Problem
How to use the
netplan command: Network configuration utility using YAML. More information: <https://netplan.readthedocs.io/en/stable/cli/>.Solution
netplan — Network configuration utility using YAML. More information: <https://netplan.readthedocs.io/en/stable/cli/>.Apply a network configuration and make it persistent:
sudo netplan applyGenerate backend configuration files:
sudo netplan generateConfigure a network interface to use DHCP:
sudo netplan set ethernets.{{interface_name}}.dhcp4=trueTry configuration changes without applying them permanently:
sudo netplan try --timeout {{seconds}}Return to previous working configuration after failed apply:
sudo netplan --debug applyDisplay the current netplan configuration status:
netplan statusCode Snippets
Apply a network configuration and make it persistent
sudo netplan applyGenerate backend configuration files
sudo netplan generateConfigure a network interface to use DHCP
sudo netplan set ethernets.{{interface_name}}.dhcp4=trueTry configuration changes without applying them permanently
sudo netplan try --timeout {{seconds}}Return to previous working configuration after failed apply
sudo netplan --debug applyContext
tldr-pages: linux/netplan
Revisions (0)
No revisions yet.