{"id":26236,"date":"2024-05-03T04:37:19","date_gmt":"2024-05-03T04:37:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=26236"},"modified":"2024-05-03T04:37:19","modified_gmt":"2024-05-03T04:37:19","slug":"configure-static-ip-address-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/configure-static-ip-address-ubuntu-24-04\/","title":{"rendered":"How to Configure Static IP Address on Ubuntu 24.04"},"content":{"rendered":"<p>The prime function of giving an IP address to a system while connecting to the internet is to track the location and to distinguish it from other systems connected to the internet. Further, the IP addresses are divided into two types one is dynamic which keeps on changing every time the system is connected to the internet. The other type is the static IP address; from the name, it can be understood that it doesn\u2019t change, unlike the dynamic IP.<\/p>\n<p>There are four ways to configure\/set static IP address on Ubuntu and today we are demonstrating these on Ubuntu 24.04.<\/p>\n<p><strong>Outline:<\/strong><\/p>\n<ul>\n<li><a href=\"#post-26236-_8kzkojtgb4m9\">How To Configure Static IP Address on Ubuntu 24.04<\/a>\n<ul>\n<li><a href=\"#post-26236-_11thzb1nnp4r\">Through GUI<\/a><\/li>\n<li><a href=\"#post-26236-_jk7jdjdnqhv8\">Through Netplan Utility<\/a><\/li>\n<li><a href=\"#post-26236-_ym8zqpo0eud1\">Through nmcli<\/a><\/li>\n<li><a href=\"#post-26236-_92dv2se2na3d\">Through nmtui<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#post-26236-_ijspwazgxzl7\">Conclusion<\/a><\/li>\n<\/ul>\n<h2><a id=\"post-26236-_8kzkojtgb4m9\"><\/a>How To Configure Static IP Address on Ubuntu 24.04<\/h2>\n<p>The use of static IP addresses holds significant importance when a device has to be accessed from the internet if the IP is changing then the host system will be unable to connect. Normally static IP addresses are used in applications where server hosting, remote access, and accurate geolocation are required.<\/p>\n<h3><a id=\"post-26236-_11thzb1nnp4r\"><\/a>1: Through GUI<\/h3>\n<p>One of the simplest ways to configure Ubuntu 24.04 static IP address is by using network settings. First, go to your wired or wireless connection settings in the network tab under the settings app:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"583\" class=\"wp-image-26251\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-1.png 758w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-1-300x231.png 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/p>\n<p>Now, in the details tab, check for your current IP address and subnet mask, afterward, you go to the IPV4 tab and choose the manual method from there.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"478\" class=\"wp-image-26252\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-2.png 751w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-2-300x191.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p>Next, write the desired IP address that is in the range between 1 to the broadcast IP address.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"584\" class=\"wp-image-26256\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-3.png 767w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-3-300x228.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/p>\n<p>Here, in my case, the last system on this network can have the IP address 192.168.18.255, now once you are all set, verify the addresses and click on Apply to save the changes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"564\" class=\"wp-image-26263\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-4.png 764w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-4-300x221.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/p>\n<p>Now verify the changes in the details tab:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"585\" class=\"wp-image-26270\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-5.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-5-300x229.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/p>\n<p>So this is how you can set the static IP address for Ubuntu using its graphical interface.<\/p>\n<h3><a id=\"post-26236-_jk7jdjdnqhv8\"><\/a>2: Through Netplan Utility<\/h3>\n<p>The Netplan is a command line utility that was developed for the purpose of simplifying the process for the configuration of networks in Linux systems. It provides the network configuration abstraction from the two backends also named as renderer in Netplan terminology.<\/p>\n<p>These two backends are named as network and network manager. So first copy the original file in the same directory by just changing the file extension from yaml to text:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cp<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>netplan<span class=\"sy0\">\/<\/span>01-network-manager-all.yaml 01-network-manager-all.txt<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"191\" class=\"wp-image-26276\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-6.png 808w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-6-300x71.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-6-768x182.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/p>\n<p>The Netplan allows the users to create a file in a serialization language known as YAML. In this file there is a description of required network interfaces and their desired configuration. So, to configure the static IP address in Ubuntu using Netplan you need to set configuration by yourself for the specified connection. To begin with writing the file first read the contents of this file and check with render and version is already being used:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cat<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>netplan<span class=\"sy0\">\/<\/span>01-network-manager-all.yaml<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"206\" class=\"wp-image-26281\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-7.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-7-300x77.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-7-768x198.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>Now create a new YAML configuration file using any file editor in the netplan directory by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>netplan<span class=\"sy0\">\/<\/span>01-netcfg.yaml<\/div><\/div>\n<p>Next, copy and paste the code line given below in the file and set your connection name, renderer name along with the desired static IP, gateway and connection name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;height:100%;\"><div class=\"bash codecolorer\"><span class=\"co0\"># This is the network config written by 'subiquity'<\/span><br \/>\n<br \/>\nnetwork:<br \/>\n<br \/>\nrenderer: networkd<br \/>\n<br \/>\nethernets:<br \/>\n<br \/>\nEnp0s3: <span class=\"co0\">#Edit this line according to your network interface name.<\/span><br \/>\n<br \/>\naddresses:<br \/>\n<br \/>\n- 192.168.18.175<span class=\"sy0\">\/<\/span><span class=\"nu0\">24<\/span><br \/>\n<br \/>\nnameservers:<br \/>\n<br \/>\naddresses: <span class=\"br0\">&#91;<\/span>4.2.2.2, 8.8.8.8<span class=\"br0\">&#93;<\/span><br \/>\n<br \/>\nroutes:<br \/>\n<br \/>\n- to: default<br \/>\n<br \/>\nvia: 192.168.18.1<br \/>\n<br \/>\nversion: <span class=\"nu0\">2<\/span><\/div><\/div>\n<p><strong>Note: <\/strong>While copying the code ensure the version is 2 and the render name is correct otherwise the changes for the static IP address will not be applied.<\/p>\n<p>Once the code is pasted then review the changes and save the file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"356\" class=\"wp-image-26289\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-8.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-8-300x134.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-8-768x342.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>Next, apply the network changes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> netplan apply<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"393\" class=\"wp-image-26297\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-9.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-9-300x146.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-9-768x375.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>As in the image above, you can see that there are multiple warnings and all are about the permissions for the configuration file created previously so to get rid of then change the file permission by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">chmod<\/span> <span class=\"nu0\">600<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>netplan<span class=\"sy0\">\/<\/span>01-netcfg.yaml <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>netplan<span class=\"sy0\">\/<\/span>01-network-manager-all.yaml<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"212\" class=\"wp-image-26301\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-10.png 804w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-10-300x79.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-10-768x203.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>Now again apply the changes and verify if the static IP address is changed by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a<\/div><\/div>\n<h3><a id=\"post-26236-_ym8zqpo0eud1\"><\/a>3: Through nmcli<\/h3>\n<p>To configure static IP address on Ubuntu 24.04 there is another command line tool or utility named as nmcli. The nmcli primarily controls the network settings. So to begin with the configuration of the static IP address on Ubuntu first check the list of network connections and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con show<br \/>\n<br \/>\nOr<br \/>\n<br \/>\nnmcli connection show<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"185\" class=\"wp-image-26307\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-11.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-11-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-11-768x177.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>Now first set the desired IP address by stating the connection name along with the port that your system is using, Here my system uses port 24 of the router, use the following syntax for setting the static IP address:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con mod wired ipv4.addresses <span class=\"sy0\">&lt;<\/span>desired-ip-address<span class=\"sy0\">&gt;\/&lt;<\/span>port-number<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"180\" class=\"wp-image-26316\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-12.png 811w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-12-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-12-768x170.png 768w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/p>\n<p>Next, set the gateway IP which serves as an access point for the system to connect the internet, for this static IP and use the following syntax for it:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con mod <span class=\"sy0\">&lt;<\/span>connection-name<span class=\"sy0\">&gt;<\/span> ipv4.gateway <span class=\"sy0\">&lt;<\/span>desired-gateway-IP<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"188\" class=\"wp-image-26332\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-13.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-13-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-13-768x179.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>The domain name server is also required to configure the static IP address on Ubuntu, it is necessary because it translates human-friendly domain names into IP addresses. To set the DNS for a static IP address, use the following syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con mod <span class=\"sy0\">&lt;<\/span>connection-name<span class=\"sy0\">&gt;<\/span> ipv4.dns <span class=\"sy0\">&lt;<\/span>desired-dns<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"207\" class=\"wp-image-26340\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-14.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-14-300x77.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-14-768x197.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>Next, modify the configuration method for Internet protocol version 4 to manual, this way you can change the IP address, subnet mask, gateway, and DNS server for a specific connection:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con mod <span class=\"sy0\">&lt;<\/span>connection-name<span class=\"sy0\">&gt;<\/span> ipv4.method manual<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"165\" class=\"wp-image-26348\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-15.png 807w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-15-300x61.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-15-768x157.png 768w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/p>\n<p>Now once you have entered all the details for the configuration of the static IP address, activate the connection by using its name along with up command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> nmcli con up <span class=\"sy0\">&lt;<\/span>connection-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"172\" class=\"wp-image-26357\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-16.png 804w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-16-300x64.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-16-768x164.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>Next, to verify the change in the IP address, check the current IP address by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip addr<\/span> show<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"344\" class=\"wp-image-26371\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-17.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-17-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-17-768x328.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<h3><a id=\"post-26236-_92dv2se2na3d\"><\/a>4: Through nmtui<\/h3>\n<p>The network manager text user interface utility can also be used to configure the IP address of Ubuntu to static. It&#8217;s a user-friendly command line tool for Linux operating systems that are primarily used for network configuration. To begin with the process of configuring the static IP address on Ubuntu first look for your broadcast IP which in my case is 192.168.18.255:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"379\" class=\"wp-image-26382\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-18.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-18-300x141.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-18-768x362.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>Now run this nmtui utility tool by executing the below command and as a result, a small menu will appear:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nmtui<\/div><\/div>\n<p>Here now click on the Edit a connection option to set your desired static address:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"491\" class=\"wp-image-26390\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-19.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-19-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-19-768x471.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>Now here select the connection appears on the list on the left and then select edit:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"391\" class=\"wp-image-26397\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-20.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-20-300x146.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-20-768x374.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>Now move to the IPv4 CONFIGURATION option and select Manual, afterward move the cursor to the Show option to set the static IP address:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"467\" class=\"wp-image-26404\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-21.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-21-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-21-768x449.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>Now here set your DNS servers and Gateway followed by the IP address, once you are done move back to the initial menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"493\" class=\"wp-image-26414\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-22.png 800w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-22-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-22-768x473.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>From the initial menu now click on Activate a connection:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"481\" class=\"wp-image-26420\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-23.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-23-300x180.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-23-768x461.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-23-501x300.png 501w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>From there select the same network connection and click on activate, this will set your desired IP address as static:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"303\" class=\"wp-image-26428\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-24.png 800w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-24-300x114.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-24-768x291.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Now to verify the changes, check the IP of your Ubuntu by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"377\" class=\"wp-image-26435\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-25.png 803w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-25-300x141.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/05\/word-image-26236-25-768x361.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<h2><a id=\"post-26236-_ijspwazgxzl7\"><\/a>Conclusion<\/h2>\n<p>Setting up the static IP address is beneficial for the systems when they are to be accessed remotely or they have to be connected to any network back and forth automatically. To configure static IP address on Ubuntu there are four ways which include using the system network settings through its graphical interface, netplan, nmcli, and nmtui utility. The recommended way for configuring the static IP address is through Ubuntu GUI because it is the easiest method among all.<\/p>","protected":false},"excerpt":{"rendered":"<p>To configure a static IP address on Ubuntu 24.04, use the system network settings through its graphical interface, netplan, nmcli, and nmtui utility.<\/p>","protected":false},"author":113,"featured_media":26528,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-26236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/26236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=26236"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/26236\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/26528"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=26236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=26236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=26236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}