Difference between revisions of "Netplan"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
 
* <code>[[/etc/netplan/]]*.yaml</code> (Read [[Netplan examples]]: https://netplan.io/examples)
 
* <code>[[/etc/netplan/]]*.yaml</code> (Read [[Netplan examples]]: https://netplan.io/examples)
 
Depending on your [[Bionic]] (18.04LTS) installation method, your configuration file will be different:<ref>https://ubuntu.com/blog/ubuntu-bionic-netplan</ref>
 
Depending on your [[Bionic]] (18.04LTS) installation method, your configuration file will be different:<ref>https://ubuntu.com/blog/ubuntu-bionic-netplan</ref>
<pre>
+
INSTALL TYPE RENDERER FILE
+
INSTALL TYPE RENDERER FILE
Server ISO systemd-networkd /etc/netplan/01-netcfg.yaml
+
Server ISO [[systemd-networkd]] /etc/netplan/01-netcfg.yaml
Cloud Image systemd-networkd /etc/netplan/50-cloud-init.yaml
+
Cloud Image systemd-networkd /etc/netplan/50-cloud-init.yaml
Desktop ISO NetworkManager /etc/netplan/01-network-manager-all.yaml
+
Desktop ISO [[NetworkManager]] /etc/netplan/01-network-manager-all.yaml
</pre>
 
  
 
== Logs ==
 
== Logs ==

Revision as of 07:00, 10 March 2021

wikipedia:netplan (2016) command 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.


Basic Commands

Config Files

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

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

Logs

Jul 15 12:22:13 XXXX systemd[25690]: /lib/systemd/system-generators/netplan failed with exit status 1.

Activities

Basic

  1. Read Netplan examples: https://netplan.io/examples including Netplan Bonding and DHCP, additional examples
  2. Configure your DNS servers in Ubuntu. https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/

Advanced

  1. Review netplan source code: https://github.com/CanonicalLtd/netplan

Related terms

See also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Original Source: https://en.wikiversity.org/wiki/Ubuntu/netplan

Advertising: