{"id":13832,"date":"2025-04-03T11:13:07","date_gmt":"2025-04-03T11:13:07","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=13832"},"modified":"2025-04-03T11:13:10","modified_gmt":"2025-04-03T11:13:10","slug":"how-to-set-static-ip-address-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/","title":{"rendered":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods"},"content":{"rendered":"\n<p>An IP address is essential when connecting a system to the Internet, as it allows for tracking, differentiating, and identifying users connected to the Internet. Furthermore, IP addresses are categorized into two types: <strong>dynamic IP addresses<\/strong>, which change every time the system connects to the Internet, and <strong>static IP addresses<\/strong>, which remain constant, unlike dynamic IP addresses.<\/p>\n\n\n\n<p>Today, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04.<\/p>\n\n\n\n<p><strong>Outline:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#post-13832-_heading=h.pqtw4idfeqqd\">How To Set Static IP Address on Ubuntu 24.04<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#Method-1:-Using-GUI\">Method 1: Using GUI<\/a><\/li>\n\n\n\n<li><a href=\"#Method-2:-Using-Netplan-Utility\">Method 2: Using Netplan Utility<\/a><\/li>\n\n\n\n<li><a href=\"#Method-3:-Using-nmcli\">Method 3: Using nmcli<\/a><\/li>\n\n\n\n<li><a href=\"#Method-4:-Using-nmtui\">Method 4: Using nmtui<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13832-_heading=h.pqtw4idfeqqd\"><\/a>How To Set Static IP Address on Ubuntu 24.04<\/h2>\n\n\n\n<p>When a device needs to be accessed via the Internet, static IP addresses are essential. If the IP address changes, the host system won&#8217;t be able to connect. Static IP addresses are usually used for applications that require server hosting, remote accessibility, or accurate geolocation. To set a static IP address on Ubuntu, use GUI system settings, netplan, nmcli, or nmtui. The simplest recommendation is to change the static IP address through the Ubuntu GUI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-1:-Using-GUI\"><a id=\"post-13832-_heading=h.1lsn04hykypg\"><\/a>Method 1: Using GUI<\/h3>\n\n\n\n<p>One of the simplest techniques to set a static IP address on Ubuntu 24.04 is by configuring it through <strong>Network <\/strong>settings. Open the <strong>Settings <\/strong>application and head to the <strong>Network <\/strong>section for either your wireless or wired connection:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"758\" height=\"583\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-1.png\" alt=\"Setting static ip address using GUI \" class=\"wp-image-13833\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-1.png 758w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-1-300x231.png 300w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, in the <strong>Details <\/strong>tab, find the current IP address and subnet mask, then head to the <strong>IPV4 <\/strong>tab and select the <strong>Manual <\/strong>option:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"751\" height=\"478\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-2.png\" alt=\"Setting static ip address using GUI \" class=\"wp-image-13834\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-2.png 751w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-2-300x191.png 300w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, fill in the desired IP address that ranges between 1 to that of the broadcast IP address:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"767\" height=\"584\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-3.png\" alt=\"Setting static ip address using GUI \" class=\"wp-image-13835\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-3.png 767w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-3-300x228.png 300w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>As an example, the highest IP address on this network in my case is <strong>192.168.18.255<\/strong>. After you do that, verify all of the addresses and click on <strong>Apply <\/strong>to save the changes:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"564\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-4.png\" alt=\"Setting static ip address using GUI \" class=\"wp-image-13836\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-4.png 764w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-4-300x221.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-4-160x117.png 160w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Confirm the changes on the <strong>Details <\/strong>tab:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"585\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-5.png\" alt=\"Setting static ip address using GUI \" class=\"wp-image-13837\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-5.png 766w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-5-300x229.png 300w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>So this is the procedure to set a static IP for Ubuntu using its GUI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-2:-Using-Netplan-Utility\"><a id=\"post-13832-_heading=h.48drihb9351s\"><\/a>Method 2: Using Netplan Utility<\/h3>\n\n\n\n<p>The <strong>Netplan <\/strong>is a command-line utility that was developed to help configure networks on Linux systems. It separates the network configuration from the two backends referred to as renderers in Netplan.<\/p>\n\n\n\n<p>Network and network manager are the names of these two backends. So, change the original file extension from <strong>yaml <\/strong>to text with the following command:<\/p>\n\n\n\n<pre>cp \/etc\/netplan\/01-network-manager-all.yaml 01-network-manager-all.txt<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"191\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-6.png\" alt=\"cp \/etc\/netplan\/01-network-manager-all.yaml 01-network-manager-all.txt\" class=\"wp-image-13838\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-6.png 808w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-6-300x71.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-6-768x182.png 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The Netplan permits users to create a file in the YAML format. This file contains the definition of network interfaces that are needed and their required configuration. To set a static IP address on Ubuntu using Netplan, you will have to set up the configuration manually for the particular connection. First, open the file by using the command that will display the contents and see what render and version is in place:<\/p>\n\n\n\n<pre>cat \/etc\/netplan\/01-network-manager-all.yaml<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"206\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-7.png\" alt=\"cat \/etc\/netplan\/01-network-manager-all.yaml\" class=\"wp-image-13839\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-7.png 801w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-7-300x77.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-7-768x198.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, using any editor create a new configuration file with the following filename in the <strong>netplan <\/strong>folder:<\/p>\n\n\n\n<pre>sudo nano \/etc\/netplan\/01-netcfg.yaml<\/pre>\n\n\n\n<p>Now, you will paste the provided code segment into the file and adjust the connection and renderer names as well as the static IP, gateway, and connection names of your choice:<\/p>\n\n\n\n<pre>network:<\/pre>\n<pre>renderer: networkd<\/pre>\n<pre>ethernets:<\/pre>\n<pre>Enp0s3:<\/pre>\n<pre>addresses:<\/pre>\n<pre>- 192.168.18.175\/24<\/pre>\n<pre>nameservers:<\/pre>\n<pre>addresses: [4.2.2.2, 8.8.8.8]<\/pre>\n<pre>routes:<\/pre>\n<pre>- to: default<\/pre>\n<pre>via: 192.168.18.1<\/pre>\n<pre>version: 2<\/pre>\n\n\n\n<p>Once the code has been pasted, the changes should be reviewed before saving the file:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"356\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-8.png\" alt=\"\" class=\"wp-image-13840\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-8.png 799w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-8-300x134.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-8-768x342.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now you can proceed to apply the network changes:<\/p>\n\n\n\n<pre>sudo netplan apply<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"393\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-9.png\" alt=\"sudo netplan apply\" class=\"wp-image-13841\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-9.png 805w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-9-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-9-768x375.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>As stated in the image above, It can be seen there are a lot of \u201c<strong>warnings<\/strong>\u201d and it is very clear that they all have to do with the configuration file permissions for the file created earlier. Therefore, to remove them, try changing the file permission by using the following command:<\/p>\n\n\n\n<pre>sudo chmod 600 \/etc\/netplan\/01-netcfg.yaml \/etc\/netplan\/01-network-manager-all.yaml<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"212\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-10.png\" alt=\"sudo chmod 600 \/etc\/netplan\/01-netcfg.yaml \/etc\/netplan\/01-network-manager-all.yaml\" class=\"wp-image-13842\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-10.png 804w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-10-300x79.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-10-768x203.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, again apply the changes to these settings and check if the static IP address is changed by running:<\/p>\n\n\n\n<pre>ip a<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-3:-Using-nmcli\"><a id=\"post-13832-_heading=h.a395lureiakp\"><\/a>Method 3: Using nmcli<\/h3>\n\n\n\n<p>For setting static IP address on Ubuntu 24.04, there is a new command line tool or utility known as <strong>nmcli<\/strong>. The main function of nmcli is to manage the network settings. Therefore, before starting with the configuration of the static IP address on Ubuntu, check the list of network connections using the command below:<\/p>\n\n\n\n<pre>sudo nmcli con show<\/pre>\n<p>Or<\/p>\n<pre>nmcli connection show<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"185\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-11.png\" alt=\"nmcli connection show\" class=\"wp-image-13843\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-11.png 801w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-11-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-11-768x177.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>First, ensure that your desired static IP address is set with the connection name of the port your system is currently using. Here, my system is on <strong>port 24<\/strong> of the router, to set a static IP address use the following command:<\/p>\n\n\n\n<pre>sudo nmcli con mod wired ipv4.addresses &lt;desired-ip-address&gt;\/&lt;port-number&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"180\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-12.png\" alt=\"sudo nmcli con mod wired ipv4.addresses <desired-ip-address&gt;\/<port-number&gt;\" class=\"wp-image-13844\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-12.png 811w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-12-300x67.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-12-768x170.png 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, set the Gateway IP for the default static IP. Use the following syntax for the gateway IP:<\/p>\n\n\n\n<pre>sudo nmcli con mod &lt;connection-name&gt; ipv4.gateway &lt;desired-gateway-IP&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"188\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-13.png\" alt=\"sudo nmcli con mod <connection-name&gt; ipv4.gateway <desired-gateway-IP&gt;\" class=\"wp-image-13845\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-13.png 805w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-13-300x70.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-13-768x179.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The gateway Domain name server is necessary to set the static IP on Ubuntu because it translates user-friendly domain names to IP addresses. To set DNS for static IP, use the following syntax:<\/p>\n\n\n\n<pre>sudo nmcli con mod &lt;connection-name&gt; ipv4.dns &lt;desired-dns&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"207\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-14.png\" alt=\"sudo nmcli con mod <connection-name&gt; ipv4.dns <desired-dns&gt;\" class=\"wp-image-13846\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-14.png 805w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-14-300x77.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-14-768x197.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, change the configuration method of <strong>Internet Protocol Version 4 <\/strong>to manual. This allows you to set an IP Address, subnet mask, gateway, and DNS server for the connection:<\/p>\n\n\n\n<pre>sudo nmcli con mod &lt;connection-name&gt; ipv4.method manual<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"165\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-15.png\" alt=\"sudo nmcli con mod <connection-name&gt; ipv4.method manual\" class=\"wp-image-13847\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-15.png 807w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-15-300x61.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-15-768x157.png 768w\" sizes=\"(max-width: 807px) 100vw, 807px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now that all configuration details of static IP addresses have been provided, activate the connection using the <strong>\u2018up\u2019 <\/strong>command and the name of the connection:<\/p>\n\n\n\n<pre>sudo nmcli con up &lt;connection-name&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"172\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-16.png\" alt=\"sudo nmcli con up <connection-name&gt;\" class=\"wp-image-13848\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-16.png 804w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-16-300x64.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-16-768x164.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The next instruction is to verify the change in the IP address, therefore, check the current IP address by executing the command:<\/p>\n\n\n\n<pre>ip addr show<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"344\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-17.png\" alt=\"ip addr show\" class=\"wp-image-13849\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-17.png 805w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-17-300x128.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-17-768x328.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-4:-Using-nmtui\"><a id=\"post-13832-_heading=h.4lou0iikayqw\"><\/a>Method 4: Using nmtui<\/h3>\n\n\n\n<p>The <strong>N<\/strong>etwork <strong>M<\/strong>anager <strong>T<\/strong>ext <strong>U<\/strong>ser <strong>I<\/strong>nterface <strong>U<\/strong>tility can be used to configure Ubuntu&#8217;s static IP address. Now, let\u2019s begin with how to configure a static IP address on Ubuntu by first looking for the broadcast IP, in my case it is <strong>192.168.18.255<\/strong>:<\/p>\n\n\n\n<pre>ip a<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"379\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-18.png\" alt=\"ip a\" class=\"wp-image-13850\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-18.png 805w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-18-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-18-768x362.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now execute this command for the display browser with the activated interface in focus:<\/p>\n\n\n\n<pre>nmtui<\/pre>\n\n\n\n<p>Select the <strong>Edit a connection<\/strong> option in the small menu and set your desired static address:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"491\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-19.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13851\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-19.png 801w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-19-300x184.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-19-768x471.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Once you have selected your connection, select <strong>Edit<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"391\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-20.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13852\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-20.png 802w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-20-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-20-768x374.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Switch to <strong>Manual <\/strong>configuration under <strong>IPv4<\/strong> and you will see the nmtui set address interface. Afterward, move the cursor to the <strong>Show <\/strong>section to set the static IP address:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"467\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-21.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13853\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-21.png 799w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-21-300x175.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-21-768x449.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Then set DNS Servers, gateway, and the static IP address and return to the base menu:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"493\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-22.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13854\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-22.png 800w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-22-300x185.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-22-768x473.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The primary menu will have other options <strong>Activate a connection<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"481\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-23.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13855\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-23.png 802w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-23-300x180.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-23-768x461.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, choose the same network connection and hit <strong>Activate<\/strong>. It configures the IP address as static:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"303\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-24.png\" alt=\"Setting ip address using nmtui\" class=\"wp-image-13856\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-24.png 800w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-24-300x114.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-24-768x291.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Lastly, identify your IP address on Ubuntu with this command:<\/p>\n\n\n\n<pre>ip a<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"377\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-25.png\" alt=\"ip a\" class=\"wp-image-13857\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-25.png 803w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-25-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13832-25-768x361.png 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>That is all.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-13832-_heading=h.qxjlf6ga64yw\"><\/a>Conclusion<\/h2>\n\n\n\n<p>The static IP address can be useful for systems that need to be accessed remotely or automatically connected to a network. There are four different ways to configure the static IP address in Ubuntu. These include using its system network settings via its graphical user interface, nmcli, and nmtui. Ubuntu GUI is the recommended method for configuring static IP addresses because it&#8217;s the simplest.<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_13958 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_13958 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_13958 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_13958 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_13958 .wpsm_panel-title a:hover, #wpsm_accordion_13958 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_13958 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_13958 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_13958 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_13958 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_13958 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_13958  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_13958  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_13958  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_13958 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_13958\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13958 \" href=\"javascript:void(0)\" data-target=\"#ac_13958_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I set a static IP on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13958_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo set a static IP on Ubuntu 24.04, edit the Netplan configuration file in \/<code>etc\/netplan\/<\/code>. Modify the settings under the \"ethernets\" section, specifying the desired static IP, gateway, and DNS.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13958 \" href=\"javascript:void(0)\" data-target=\"#ac_13958_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhich file do I need to edit for a static IP on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13958_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYou need to edit the YAML file in <code>\/etc\/netplan\/<\/code>, typically named <code>01-netcfg.yaml<\/code> or similar. Use a text editor like nano or vim to modify the file.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13958 \" href=\"javascript:void(0)\" data-target=\"#ac_13958_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I apply the changes after setting a static IP?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13958_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tOnce you've made changes to the Netplan configuration file, apply the changes with the command <code>sudo netplan apply<\/code>. This will activate the static IP settings.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13958 \" href=\"javascript:void(0)\" data-target=\"#ac_13958_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I find the network interface name?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13958_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tUse the command <code>ip a<\/code> or <code>ifconfig<\/code> to find the name of your network interface (e.g., <code>eth0<\/code>, <code>enp3s0<\/code>), which you will need to reference in the Netplan configuration.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13958 \" href=\"javascript:void(0)\" data-target=\"#ac_13958_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat should I do if the network doesn\u2019t come back after applying changes?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13958_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tIf the network doesn\u2019t reconnect, check the configuration file for syntax errors. You can revert changes by running <code>sudo netplan apply<\/code> again or manually editing the file to ensure it's correct.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n\n\n<p><\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>An IP address is essential when connecting a system to the Internet, as it allows for tracking, differentiating, and identifying users connected to the Internet. Furthermore, IP addresses are categorized into two types: dynamic IP addresses, which change every time the system connects to the Internet, and static IP addresses, which remain constant, unlike dynamic [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13961,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[494,741,495,493,742,317],"class_list":["post-13832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-netplan","tag-network-configuration","tag-nmcli","tag-nmtui","tag-static-ip-address","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods<\/title>\n<meta name=\"description\" content=\"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods\" \/>\n<meta property=\"og:description\" content=\"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-03T11:13:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T11:13:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods\",\"datePublished\":\"2025-04-03T11:13:07+00:00\",\"dateModified\":\"2025-04-03T11:13:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\"},\"wordCount\":1057,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg\",\"keywords\":[\"netplan\",\"Network Configuration\",\"nmcli\",\"nmtui\",\"Static IP Address\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\",\"name\":\"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg\",\"datePublished\":\"2025-04-03T11:13:07+00:00\",\"dateModified\":\"2025-04-03T11:13:10+00:00\",\"description\":\"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to Set Static IP on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods","description":"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods","og_description":"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!","og_url":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-04-03T11:13:07+00:00","article_modified_time":"2025-04-03T11:13:10+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods","datePublished":"2025-04-03T11:13:07+00:00","dateModified":"2025-04-03T11:13:10+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/"},"wordCount":1057,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg","keywords":["netplan","Network Configuration","nmcli","nmtui","Static IP Address","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/","name":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg","datePublished":"2025-04-03T11:13:07+00:00","dateModified":"2025-04-03T11:13:10+00:00","description":"In this article, we will demonstrate four methods for configuring a static IP address on Ubuntu 24.04 LTS. Learn more!","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Set-Static-IP-on-Ubuntu-24.04-1.jpg","width":1020,"height":600,"caption":"How to Set Static IP on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-static-ip-address-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Set Static IP Address on Ubuntu 24.04: 4 Possible Methods"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=13832"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13832\/revisions"}],"predecessor-version":[{"id":13959,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13832\/revisions\/13959"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/13961"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=13832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=13832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=13832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}