![]() Now the server will keep the assigned IP address whenever it’s restarted. Now apply the config with the following command: sudo netplan apply First we want to change dhcp4 to false and then add the static IP config below this. It’s the ethernets section of the file we want to change below the name of your ethernet adapter. You should see a file that looks similar to this: network: Open the netplan config file: sudo vim /etc/netplan/01-netcfg.yaml How to change the IP address from DHCP to static on Ubuntu Server 18.04 ![]() If the server does not change the IP address, restart it. Configure the second and subsequent interface in the same way by applying the settings. If the system is not using netplan, get a list of available interfaces. sudo mv /etc/netplan/50-cloud-init.yaml /etc/netplan/01-netcfg.yaml How to configure the network interface in Ubuntu 20.04: Browse the /etc/netplan directory. Rename the netplan config file to the same as the one in the server ISO. How to disable network configuration by cloud-initĬreate a new file called: sudo vim /etc/cloud//99-disable-network-config.cfgĪdd the following to the file: network:
0 Comments
Leave a Reply. |