Answer the question
In order to leave comments, you need to log in
How to set up a static IP address?
Ubuntu Server 18.04 uses the Netplan utility to configure the network.
The configs for it are stored in yaml files in the /etc/netplan/ folder
In my installed Ubuntu there is only one config /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s3:
dhcp4: true
version: 2
Answer the question
In order to leave comments, you need to log in
suddenly it will somehow affect my network settingsYet it is written:
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
you can create another yaml config and write your settings there
What is cloud-init utility?Yes, Google knows it. https://cloud.croc.ru/blog/byt-v-teme/cloud-init/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question