Netplan

From wikieduonline
Revision as of 06:52, 12 December 2019 by Welcome (talk | contribs)
Jump to navigation Jump to search

netplan is used for network configuration in Ubuntu Since Ubuntu 16.04 LTS[1]. netplan is included in netplan.io package and source code is available in GitHub https://github.com/CanonicalLtd/netplan/releases/tag/0.1.

Depending on your Bionic (18.04LTS) installation method, your configuration file will be different:[2]

INSTALL TYPE	RENDERER	FILE
Server ISO	systemd-networkd	/etc/netplan/01-netcfg.yaml
Cloud Image	systemd-networkd	/etc/netplan/50-cloud-init.yaml
Desktop ISO	NetworkManager	/etc/netplan/01-network-manager-all.yaml

Basic Commands

  • netplan try (you can also verity your YAML file before trying it, for example using yq utility)
  • netplan generate to validate the configuration is correctly parsed by netplan and written to disk so next boot will be available.
  • netplan --debug apply[3]
  • netplan apply

Config Files

Activities

See also

Advertising: