In Ubuntu, the tool utilized for managing and configuring the network settings is known as “netplan”. netplan interacts with the kernel through the systemd-networkd and NetworkManager daemons which are also known as renderers. You have to choose any one from both of them. Netplan reads the network configurations from “/etc/netplan/*.yaml”
Now, we will show you how to change the IP address on Ubuntu using terminal and GUI. So, let’s start!
First of all, list out the active network interfaces by using the “ip” command. The “ip” command is utilized in the Ubuntu terminal to assign, delete routes, put up or down interfaces, etc. Adding “link” in the “ip” command will display the link-layer information, name, and status of an interface, etc. Execute the below-given “ip link” command to know more about your network interfaces:
Next step is to open the “/etc/netplan/*.yaml” file in your nano editor:
The opened “/etc/netplan/*.yaml” file will have the following information:
Now write out the following code in the “/etc/netplan/*.yaml” file to change the IP address on your system:
Here:
Press “CTRL+O” to save the changes we made in the file:
Apply the modified settings by utilizing the below-given netplan command in your terminal:
Now, check out that the IP address of the “enpos3” network interface is changed or not:
You can see that we have successfully changed the IP address on our Ubuntu system:
Yes, you read it right! Ubuntu also provides the option to change the IP address of your network interface using its Graphical User Interface (GUI). To do so, open up your system “Settings” application by searching it manually in the Application’s search bar:
From the left side vertical menu, select the “Network” settings. After that, click on the “gear” icon to change the IP address of the selected network:
You will see a window displaying settings related to your wired network connection. Now, select the “IPv4” tab from the menu, and you will see that by default “Automatic (DHCP)” IPv4 method is enabled on your system:
Select the “Manual” option; then, add the new IP address, Netmask, Gateway, and DNS-related information in the given fields. Lastly, click on the “Apply” button:
All done! You can check out the updated information by selecting the “details” tab of your network interface:
Ubuntu provides you the option to change the IP address of your network interface, whether you want to do it for port forwarding or running any media server on your system. In an Ubuntu system, netplan” is the network management tool capable of configuring and managing the network settings. This article showed you how to change the IP address using the “netplan” utility in the Ubuntu terminal. The procedure for changing the IP address using Ubuntu GUI is also provided in the article.
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…