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.
You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…
Have you ever found yourself staring at a terminal full of 404 errors while trying…
One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …
In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…
If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…
Canonical announces the General Availability of Ubuntu for the NVIDIA® Jetson Orin™ for edge AI…