Difference between revisions of "Ubuntu 18.04"
From Teknologisk videncenter
m (→Netplan) |
m |
||
Line 19: | Line 19: | ||
netplan apply | netplan apply | ||
</source> | </source> | ||
− | + | Debugging yaml file | |
+ | <source lang=bash> | ||
+ | netplan --debug apply | ||
+ | </source> | ||
=Links= | =Links= | ||
*[https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/ Netplan config] | *[https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/ Netplan config] |
Latest revision as of 06:35, 25 September 2019
Netplan
/etc/netplan/01-netcfg.yaml or 50-cloud-init.yaml (See what it is called)
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
Activate
netplan apply
Debugging yaml file
netplan --debug apply