
CARA SETTING IP ADDRES IPOS 4 HOW TO
At this moment, we will show you how to configure a static IP address on Ubuntu desktop 20.04. If you do not want to configure it on the router, you can do it on the device itself. This is the easiest and most recommended way to assign an IP address to your device, and this is called static DHCP or DHCP reservation.

With this option in your home router, your devices on the network will get static/fixed IP addresses. Most modern home routers have configuration options to allow you to reserve an IP address for a specific device connected to the same network. Configure Static IP Address on Ubuntu Desktop 20.04 You can hit ENTER to accept the changes or leave it to revert the changes back to the previous configuration. If everything is okay, you will see a message as seen in the picture below. To check the new configuration file without applying the changes, we can run this command: $ sudo netplan try

When editing the file, make sure the ethernet interface match with the one we see when invoking the ‘ip a’ or ‘ip link’ command. To replace the content of /etc/netplan/00-installer-config.yaml above with these lines. To do it, let’s open cloud-init file at /etc/cloud//subiquity-disable-cloudinit-networking.cfg and make sure that “network: Īnd open the file $ sudo nano /etc/netplan/00-installer-config.yaml To proceed with configuring a static IP address on Ubuntu server 20.04, we have to make sure that cloud-init does not manage the network interface. In this example, the interface that we are going to configure the static IP is ‘ens33’. And during the Ubuntu 20.04 server installation, cloud-init will configure a dynamic IP address for the network interface on the server if the DHCP server is available.įirst of all, we need to check what is the ethernet interface card that we want to configure the IP address for, we can run ip a or ip link command to see it.

NetPlan is a new network configuration tool introduced in Ubuntu 17.10 to manage network settings. In Ubuntu server 20.04, the network configuration is managed by a utility called NetPlan. In this tutorial, we will show you how to configure a static IP address on Ubuntu 20.04.Ĭonfigure Static IP Address on Ubuntu Server 20.04 And, if you use your managed Ubuntu VPS also as an FTP server of web server you would want to configure a static IP address for it, so you can reach the server using the same IP address. By default, a device connected to your home router whether it’s using cable or connected through WiFi will most likely get a dynamic IP address.
