How do I create a YAML file in order to set a static IP for my /etc/netplan directory? Server 18.04 LTS
9,377
That is exactly what I suggest that you do. Here is a sample file to get started: Can't change Ubuntu 17.10 to use a static IP
Of course, substitute your exact details here. Also, indentation, spacing, etc. are crucial. Proofread carefully.
Related videos on Youtube
Author by
Queedium
Updated on September 18, 2022Comments
-
Queedium over 1 year
I currently do not have any YAML files in my
/etc/netplan
directory than I can edit in order to set a static IP for my Ubuntu 18 server. I have tried:sudo netplan generate
It returns no errors but there is also no new files (or any files for that matter) created under
/etc/netplan
. Can I use nano to create a file a save it with a.yaml
extension and still usesudo netplan apply
in order to update my Ethernet interface settings?