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.
In this article, we will see how to Install Google Cloud BigQuery Python client library…
Nov 15,2024 Wallpaper Contest for Xfce 4.20 open for voting The submission phase for the…
MicroCloud 2.1.0 LTS is now available, expanding the number of Canonical infrastructure solutions with a…
Canonical is thrilled to be joining forces with Dell Technologies at the upcoming Dell Technologies…
In today’s massive private mobile network (PMN) market, one of the most common approaches to…
Welcome to the Ubuntu Weekly Newsletter, Issue 865 for the week of November 3 –…