Difference between revisions of "Netplan"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>[[netplan]]</code> command is used for network configuration in [[Ubuntu]] Since [[Ubuntu 16.04 LTS]]<ref>https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration</ref>. netplan is included in <code>netplan.io</code> package and source code is available in GitHub https://github.com/CanonicalLtd/netplan/releases/tag/0.1. | + | <code>[[wikipedia:netplan]]</code> ([[2016]]) command is used for network configuration in [[Ubuntu]] Since [[Ubuntu 16.04 LTS]]<ref>https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration</ref>. netplan is included in <code>netplan.io</code> package and source code is available in GitHub https://github.com/CanonicalLtd/netplan/releases/tag/0.1. |
Line 7: | Line 7: | ||
* <code>[[netplan apply]]</code> | * <code>[[netplan apply]]</code> | ||
** <code>[[netplan --debug apply]]</code><ref>https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/</ref> | ** <code>[[netplan --debug apply]]</code><ref>https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/</ref> | ||
+ | * <code>[[netplan info]]</code> | ||
+ | * <code>[[netplan generate]]</code> | ||
== Config Files == | == Config Files == | ||
− | * <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> | ||
− | + | ||
− | 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 |
− | |||
== Logs == | == Logs == | ||
Line 32: | Line 33: | ||
* <code>[[/etc/resolv.conf]]</code> | * <code>[[/etc/resolv.conf]]</code> | ||
* <code>[[ip]]</code> | * <code>[[ip]]</code> | ||
+ | * <code>[[access-points:]]</code> | ||
+ | * <code>[[static.yaml]]</code> | ||
+ | * <code>[[virsh net-define]]</code> | ||
== See also == | == See also == | ||
* {{netplan}} | * {{netplan}} | ||
− | |||
* {{Linux networking commands}} | * {{Linux networking commands}} | ||
− | |||
− | |||
− | |||
{{CC license}} | {{CC license}} |
Latest revision as of 19:26, 4 June 2022
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.
Contents
Basic Commands[edit]
netplan try
(you can also verity your YAML file before trying it, for example usingyq
utility)netplan generate
to validate the configuration is correctly parsed by netplan and written to disk so next boot will be available.netplan apply
netplan info
netplan generate
Config Files[edit]
/etc/netplan/*.yaml
(Read Netplan examples: https://netplan.io/examples)
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[edit]
Jul 15 12:22:13 XXXX systemd[25690]: /lib/systemd/system-generators/netplan failed with exit status 1.
Activities[edit]
Basic[edit]
- Read Netplan examples: https://netplan.io/examples including Netplan Bonding and DHCP, additional examples
- Configure your DNS servers in Ubuntu. https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/
Advanced[edit]
- Review netplan source code: https://github.com/CanonicalLtd/netplan
Related terms[edit]
See also[edit]
- Netplan:
netplan try
,netplan apply
, examples,networkd
ip
[link, route]
,ifconfig
netstat
ss
lsof
ping
ethtool
mii-tool
arping
nmcli
(RHEL)route
networkctl
,netplan
,tc
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: