Difference between revisions of "Netplan"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 4: | Line 4: | ||
== Basic Commands == | == Basic Commands == | ||
* <code>[[netplan try]]</code> (you can also verity your [[YAML]] file before trying it, for example using <code>[[yq]]</code> utility) | * <code>[[netplan try]]</code> (you can also verity your [[YAML]] file before trying it, for example using <code>[[yq]]</code> utility) | ||
− | * <code>netplan generate</code> to validate the configuration is correctly parsed by netplan and written to disk so next boot will be available. | + | * <code>]]netplan generate]]</code> to validate the configuration is correctly parsed by netplan and written to disk so next boot will be available. |
* <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 apply</code> | + | * <code>[[netplan apply]]</code> |
=== Config Files === | === Config Files === |
Revision as of 11:57, 26 January 2020
netplan
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
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 --debug apply
[2]netplan apply
Config Files
/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
Activities
Basic
- Read Netplan examples: https://netplan.io/examples including Netplan Bonding and additional examples
- Configure your DNS servers in Ubuntu. https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/
Advanced
- Review netplan source code: https://github.com/CanonicalLtd/netplan
See also
- Netplan:
netplan try
,netplan apply
, examples,networkd
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[4],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze ip
[link, route]
,ifconfig
netstat
ss
lsof
ping
ethtool
mii-tool
arping
nmcli
(RHEL)route
networkctl
,netplan
,tc
- Ethernet: MII, MDI, bonding, etherchannel, STP, ARP, MAC, STP, Jumbo frames, 802.1X, MTU, Ethernet In-Band Access (IBA), LACP, Multicast, Broadcast, SPI
virsh net-define
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: