Difference between revisions of "Netplan"
Jump to navigation
Jump to search
(Created page with "Since Ubuntu 16.04 LTS network configuration is done using /netplan/ <ref>https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration</ref>, and source code is...") |
|||
Line 1: | Line 1: | ||
− | Since Ubuntu 16.04 LTS network configuration is done using [[ | + | Since Ubuntu 16.04 LTS network configuration is done using [[netplan]] <ref>https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration</ref>, and source code is available in GitHub since July 20106: https://github.com/CanonicalLtd/netplan/releases/tag/0.1. |
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> |
Revision as of 05:59, 12 December 2019
Since Ubuntu 16.04 LTS network configuration is done using netplan [1], and source code is available in GitHub since July 20106: 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
/etc/netplan/*.yaml
(Read Netplan examples: https://netplan.io/examples)
Activities
Basic
- Read Netplan examples: https://netplan.io/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
- systemd: systemd-networkd and networkctl
- nmcli, used in RHEL
- Ethernet
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: