Technology and General Blog

Changing the IP handle on your Ubuntu procedure can be essential for many situations, this kind of as in the port forwarding system or when you want to run a media server on your community. In most cases, your router’s DHCP server dynamically assigns IP addresses to your network interface. Nonetheless, you can very easily improve the assigned IP deal with on your process by using “netplan” or via the Ubuntu GUI Community configurations.

In Ubuntu, the device utilized for handling and configuring the community settings is acknowledged as “netplan”. netplan interacts with the kernel as a result of the systemd-networkd and NetworkManager daemons which are also acknowledged as renderers. You have to pick any a single from both of those of them. Netplan reads the community configurations from “/and many others/netplan/*.yaml” data files, saving the configuration configurations for all network interfaces. If you use the netplan command in the Ubuntu terminal, it gets to be simple to restart and alter community options.

Now, we will show you how to modify the IP handle on Ubuntu applying terminal and GUI. So, let’s start out!

How to change the IP tackle on Ubuntu terminal making use of netplan

Very first of all, listing out the active community interfaces by employing the “ip” command. The “ip” command is used in the Ubuntu terminal to assign, delete routes, place up or down interfaces, etc. Introducing “connection” in the “ip” command will exhibit the hyperlink-layer information and facts, identify, and status of an interface, and many others. Execute the beneath-supplied “ip backlink” command to know much more about your community interfaces:

Following stage is to open up the “/etcetera/netplan/*.yaml” file in your nano editor:

$ sudo nano /and many others/netplan/*.yaml

The opened “/etcetera/netplan/*.yaml” file will have the pursuing details:

Now create out the pursuing code in the “/and so on/netplan/*.yaml” file to alter the IP deal with on your program:

  edition: 2
  renderer: networkd
      dhcp4: no
      dhcp6: no
      addresses: []
              addresses: [,]


  • dhcp4 and dhcp6 are IPv4 and IPv6 DHCP qualities.
  • enp0s3 is the network interface name for which we will alter the IP deal with.
  • addresses include the sequence of addresses for the network interface.
  • gateway4 includes the default gateway’s IPv4 address.
  • nameservers comprise a collection of IP addresses for nameservers.

Press “CTRL+O” to conserve the variations we designed in the file:

Apply the modified settings by utilizing the under-supplied netplan command in your terminal:

Now, check out out that the IP deal with of the “enpos3” network interface is adjusted or not:

You can see that we have properly changed the IP tackle on our Ubuntu procedure:

How to transform the IP address on Ubuntu using GUI

Indeed, you browse it proper! Ubuntu also provides the alternative to adjust the IP tackle of your community interface employing its Graphical Consumer Interface (GUI). To do so, open up up your method “Options” application by exploring it manually in the Application’s search bar:

From the remaining facet vertical menu, pick the “Community” settings. Just after that, click on the “equipment” icon to alter the IP handle of the picked network:

You will see a window exhibiting options associated to your wired network link. Now, select the “IPv4” tab from the menu, and you will see that by default “Computerized (DHCP)” IPv4 system is enabled on your technique:

Find the “Manual” choice then, include the new IP handle, Netmask, Gateway, and DNS-related information in the presented fields. Last of all, simply click on the “Utilize” button:

All finished! You can check out the updated details by choosing the “information” tab of your community interface:


Ubuntu gives you the alternative to improve the IP tackle of your community interface, whether or not you want to do it for port forwarding or running any media server on your program. In an Ubuntu process, netplan” is the community administration tool able of configuring and taking care of the community options. This report showed you how to improve the IP address employing the “netplan” utility in the Ubuntu terminal. The process for shifting the IP tackle employing Ubuntu GUI is also delivered in the article.

Leave a Reply

Your email address will not be published. Required fields are marked *