{"id":1174,"date":"2022-02-15T16:27:45","date_gmt":"2022-02-15T15:27:45","guid":{"rendered":"https:\/\/irg-net.com\/?p=1174"},"modified":"2022-02-15T18:12:49","modified_gmt":"2022-02-15T17:12:49","slug":"how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux","status":"publish","type":"post","link":"https:\/\/irg-net.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/","title":{"rendered":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux"},"content":{"rendered":"\n<p>There are many cases in which we may want to set a static IP for a network interface. In Red Hat Enterprise Linux 8, network interfaces are managed by the <strong>NetworkManager<\/strong>&nbsp;daemon, so to change a network interface settings we must somehow interact with it. In this tutorial we will see how can we set a static IP address, gateway and dns server for a NIC.<\/p>\n\n\n\n<p>The first thing we want to do is to find the interface we want to modify. To list all the interfaces on our system, we can use the <strong>ip addr<\/strong> command:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"210\" src=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?resize=1015%2C210&#038;ssl=1\" alt=\"\" class=\"wp-image-1175\" srcset=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?w=1015&amp;ssl=1 1015w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?resize=300%2C62&amp;ssl=1 300w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?resize=768%2C159&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure><\/div>\n\n\n\n<p>In the output above, which is the result of running the command on my rhel8 virtualized machine, we can see two interfaces:&nbsp;<strong>lo<\/strong> and <strong>ens192<\/strong>. <\/p>\n\n\n\n<p>The first is a \u201cvirtual\u201d interface, which is used by the system to \u201ctalk\u201d with itself. The second one is the one which interests us, which we want to change it.<\/p>\n\n\n\n<p>So let&#8217;s start with modifying interface configuration file manually. For each network interface managed by the <strong>NetworkManager<\/strong> daemon, a configuration file is created inside the <strong>\/etc\/sysconfig\/network-scripts<\/strong>&nbsp;directory. <\/p>\n\n\n\n<p>The name of the file is composed by the <strong>ifcfg-<\/strong>&nbsp;prefix plus the name of the interface. If we inspect the file related to our NIC, we can see its actual setup:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"337\" src=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160213.jpg?resize=632%2C337&#038;ssl=1\" alt=\"\" class=\"wp-image-1176\" srcset=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160213.jpg?w=632&amp;ssl=1 632w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160213.jpg?resize=300%2C160&amp;ssl=1 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure><\/div>\n\n\n\n<p>The <strong>BOOTPROTO<\/strong>&nbsp;option is set to <strong>dhcp<\/strong>: the option sets the protocol to use at boot to set the IP address of the interface. The possible options to use are:<\/p>\n\n\n\n<ul class=\"wp-block-list\" style=\"font-size:15.5px\"><li><strong>none <\/strong>\u2013 No protocol should be used<\/li><li><strong>bootp <\/strong>\u2013 Use the bootp protocol<\/li><li><strong>dhcp <\/strong>\u2013 Use the dhcp protocol<\/li><\/ul>\n\n\n\n<p>Since we want to set a static IPv4 address, we want to change the value of <strong>BOOTPROTO<\/strong> to&nbsp;<strong>none<\/strong> and configure our IP, route prefix, gateway and dns server statically. We can accomplish this by using respectively the&nbsp;<strong>IPADDR<\/strong>, <strong>PREFIX<\/strong>, <strong>GATEWAY <\/strong>and <strong>DNS <\/strong>options. Since many dns servers can be specified, the <strong>DNS<\/strong> option must be reported together with a progressive number, starting from 1. After the needed modifications, our file should look like this:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"430\" src=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160706.jpg?resize=1020%2C430&#038;ssl=1\" alt=\"\" class=\"wp-image-1177\" srcset=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160706.jpg?w=1020&amp;ssl=1 1020w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160706.jpg?resize=300%2C126&amp;ssl=1 300w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_160706.jpg?resize=768%2C324&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/figure><\/div>\n\n\n\n<p>We set our static IP to 192.168.34.189&nbsp;and set our <strong>gateway <\/strong>and <strong>dns <\/strong>servers. Now, to make our changes effective we must put down and up again the network interface. Be aware that this will disrupt existent <strong>ssh&nbsp;<\/strong>connections via said interface:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code lang=\"python\" class=\"language-python\">sudo nmcli connection down ens192 &amp;&amp; sudo nmcli connection up ens192<\/code><\/pre>\n\n\n\n<p>By running the <strong>ip addr<\/strong>&nbsp;command again we can verify the IP has changed:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code lang=\"python\" class=\"language-python\">IP addr|grep ens192|grep inet<\/code><\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code lang=\"python\" class=\"language-python\">inet 192.168.34.189\/24 brd 192.168.34.255 scope global nopref ixroute ens192<\/code><\/pre>\n\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>There is a second way to set static IP with <strong>nmtui<\/strong>. Other than changing the parameters of a network interface by modifying its file manually or by using the nmcli utility, we can also control NetworkManager by using a text user interface. To launch it we just invoke <strong>nmtui<\/strong> in our terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code lang=\"python\" class=\"language-python\">sudo nmtui<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"583\" src=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174733.jpg?resize=607%2C583&#038;ssl=1\" alt=\"\" class=\"wp-image-1194\" srcset=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174733.jpg?w=607&amp;ssl=1 607w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174733.jpg?resize=300%2C288&amp;ssl=1 300w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/figure><\/div>\n\n\n\n<p>We Select <strong>Edit a connection<\/strong>\u00a0and then the name of the interface we want to manipulate; we then proceed in changing the desired values. For example:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"902\" src=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174627.jpg?resize=969%2C902&#038;ssl=1\" alt=\"\" class=\"wp-image-1195\" srcset=\"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174627.jpg?w=969&amp;ssl=1 969w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174627.jpg?resize=300%2C279&amp;ssl=1 300w, https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_174627.jpg?resize=768%2C715&amp;ssl=1 768w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/figure><\/div>\n\n\n\n<p>After we are satisfied, we select <strong>OK\u00a0<\/strong>and press enter: we will be taken back to the interface selection menu. This time we select <strong>back<\/strong>, and then choose <strong>quit<\/strong>\u00a0to exit. To apply the settings we need to reload the interface connection:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code lang=\"python\" class=\"language-python\">sudo nmcli connection down ens192 &amp;&amp; sudo nmcli connection up ens192<\/code><\/pre>\n\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>That&#8217;s it, if you have any questions please leave it in the comments. \ud83d\ude42<\/p>\n\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are many cases in which we may want to set a static IP for a network interface. In Red Hat Enterprise Linux 8, network interfaces are managed by the NetworkManager&nbsp;daemon, so to change a network interface settings we must somehow interact with it. In this tutorial we will see how can we set a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,20,21],"tags":[],"class_list":["post-1174","post","type-post","status-publish","format-standard","hentry","category-blog","category-linux","category-rocky"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux - irgNET<\/title>\n<meta name=\"description\" content=\"How to set a static IP address by directly editing an interface file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux - irgNET\" \/>\n<meta property=\"og:description\" content=\"How to set a static IP address by directly editing an interface file\" \/>\n<meta property=\"og:url\" content=\"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"irgNET\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-15T15:27:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-15T17:12:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg\" \/>\n<meta name=\"author\" content=\"H. Cemre G\u00fcnay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@irg_net\" \/>\n<meta name=\"twitter:site\" content=\"@irg_net\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"H. Cemre G\u00fcnay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/\"},\"author\":{\"name\":\"H. Cemre G\u00fcnay\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#\\\/schema\\\/person\\\/71b46e79e8c12bdc8e610214a6621a66\"},\"headline\":\"How to configure a static IP address on RHEL 8 \\\/ CentOS 8 Linux\",\"datePublished\":\"2022-02-15T15:27:45+00:00\",\"dateModified\":\"2022-02-15T17:12:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/\"},\"wordCount\":545,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/2022-02-15_155750.jpg\",\"articleSection\":[\"Blog\",\"Linux\",\"Rocky Linux\"],\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/\",\"url\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/\",\"name\":\"How to configure a static IP address on RHEL 8 \\\/ CentOS 8 Linux - irgNET\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/2022-02-15_155750.jpg\",\"datePublished\":\"2022-02-15T15:27:45+00:00\",\"dateModified\":\"2022-02-15T17:12:49+00:00\",\"description\":\"How to set a static IP address by directly editing an interface file\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/2022-02-15_155750.jpg?fit=1015%2C210&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/2022-02-15_155750.jpg?fit=1015%2C210&ssl=1\",\"width\":1015,\"height\":210},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/index.php\\\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure a static IP address on RHEL 8 \\\/ CentOS 8 Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#website\",\"url\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/\",\"name\":\"irgNET\",\"description\":\"a virtual Knowledge Base\",\"publisher\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#organization\",\"name\":\"irg-NET\",\"url\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i2.wp.com\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/cropped-FINAL-Removed-Alpha.png?fit=2048%2C2048&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i2.wp.com\\\/irg-net.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/cropped-FINAL-Removed-Alpha.png?fit=2048%2C2048&ssl=1\",\"width\":2048,\"height\":2048,\"caption\":\"irg-NET\"},\"image\":{\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/irg_net\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/h-cemre-g\u00fcnay-2b61601b4\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC8GknhO5YMAkAoVxppu6aaQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/irgnet-ga3w6nfbvw.live-website.com\\\/#\\\/schema\\\/person\\\/71b46e79e8c12bdc8e610214a6621a66\",\"name\":\"H. Cemre G\u00fcnay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g\",\"caption\":\"H. Cemre G\u00fcnay\"},\"sameAs\":[\"http:\\\/\\\/192.168.34.155\\\/wordpress\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux - irgNET","description":"How to set a static IP address by directly editing an interface file","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:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux - irgNET","og_description":"How to set a static IP address by directly editing an interface file","og_url":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/","og_site_name":"irgNET","article_published_time":"2022-02-15T15:27:45+00:00","article_modified_time":"2022-02-15T17:12:49+00:00","og_image":[{"url":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg","type":"","width":"","height":""}],"author":"H. Cemre G\u00fcnay","twitter_card":"summary_large_image","twitter_creator":"@irg_net","twitter_site":"@irg_net","twitter_misc":{"Written by":"H. Cemre G\u00fcnay","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#article","isPartOf":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/"},"author":{"name":"H. Cemre G\u00fcnay","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#\/schema\/person\/71b46e79e8c12bdc8e610214a6621a66"},"headline":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux","datePublished":"2022-02-15T15:27:45+00:00","dateModified":"2022-02-15T17:12:49+00:00","mainEntityOfPage":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/"},"wordCount":545,"commentCount":0,"publisher":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#organization"},"image":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg","articleSection":["Blog","Linux","Rocky Linux"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/","url":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/","name":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux - irgNET","isPartOf":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#primaryimage"},"image":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg","datePublished":"2022-02-15T15:27:45+00:00","dateModified":"2022-02-15T17:12:49+00:00","description":"How to set a static IP address by directly editing an interface file","breadcrumb":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#primaryimage","url":"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?fit=1015%2C210&ssl=1","contentUrl":"https:\/\/i0.wp.com\/irg-net.com\/wp-content\/uploads\/2022\/02\/2022-02-15_155750.jpg?fit=1015%2C210&ssl=1","width":1015,"height":210},{"@type":"BreadcrumbList","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/index.php\/how-to-configure-a-static-ip-address-on-rhel-8-centos-8-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/"},{"@type":"ListItem","position":2,"name":"How to configure a static IP address on RHEL 8 \/ CentOS 8 Linux"}]},{"@type":"WebSite","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#website","url":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/","name":"irgNET","description":"a virtual Knowledge Base","publisher":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#organization","name":"irg-NET","url":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#\/schema\/logo\/image\/","url":"https:\/\/i2.wp.com\/irg-net.com\/wp-content\/uploads\/2021\/06\/cropped-FINAL-Removed-Alpha.png?fit=2048%2C2048&ssl=1","contentUrl":"https:\/\/i2.wp.com\/irg-net.com\/wp-content\/uploads\/2021\/06\/cropped-FINAL-Removed-Alpha.png?fit=2048%2C2048&ssl=1","width":2048,"height":2048,"caption":"irg-NET"},"image":{"@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/irg_net","https:\/\/www.linkedin.com\/in\/h-cemre-g\u00fcnay-2b61601b4\/","https:\/\/www.youtube.com\/channel\/UC8GknhO5YMAkAoVxppu6aaQ"]},{"@type":"Person","@id":"https:\/\/irgnet-ga3w6nfbvw.live-website.com\/#\/schema\/person\/71b46e79e8c12bdc8e610214a6621a66","name":"H. Cemre G\u00fcnay","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/15f5d90a0ec651cb5003605e56e8ba104f93bc11230562284db56c845df9d54d?s=96&r=g","caption":"H. Cemre G\u00fcnay"},"sameAs":["http:\/\/192.168.34.155\/wordpress"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/posts\/1174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/comments?post=1174"}],"version-history":[{"count":8,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/posts\/1174\/revisions"}],"predecessor-version":[{"id":1197,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/posts\/1174\/revisions\/1197"}],"wp:attachment":[{"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/media?parent=1174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/categories?post=1174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irg-net.com\/index.php\/wp-json\/wp\/v2\/tags?post=1174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}