{"id":1872,"date":"2025-12-06T20:53:04","date_gmt":"2025-12-06T15:23:04","guid":{"rendered":"https:\/\/kwikserver.com\/tutorials\/?p=1872"},"modified":"2026-09-17T03:09:40","modified_gmt":"2026-09-16T21:39:40","slug":"configure-ip-address-in-centos-php","status":"publish","type":"post","link":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/","title":{"rendered":"Configure Static IP Address in CentOS"},"content":{"rendered":"\n<style>\n\/* \u2500\u2500 All classes prefixed ksip- to avoid theme conflicts \u2500\u2500 *\/\n.ksip-note {\n  background: #fff7ed; border-left: 5px solid #c2410c;\n  border-radius: 0 10px 10px 0; padding: 18px 22px;\n  margin: 0 0 28px; font-size: 16.5px; color: #7c2d12; line-height: 1.7;\n}\n.ksip-block {\n  background: #0f172a; color: #e2e8f0; border-radius: 8px;\n  padding: 16px 18px; margin: 0 0 24px; overflow-x: auto;\n  font-family: monospace; font-size: 14px; line-height: 1.85; white-space: pre-wrap;\n}\n.ksip-code {\n  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px;\n  padding: 1px 7px; font-family: monospace; font-size: 14px; color: #9d174d;\n}\n.ksip-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15.5px; }\n.ksip-table th, .ksip-table td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; vertical-align: top; }\n.ksip-table th { background: #f9fafb; color: #374151; font-weight: 700; }\n.ksip-fixlist { margin: 0 0 28px; padding-left: 22px; line-height: 1.8; }\n.ksip-fixlist li { margin-bottom: 10px; }\n<\/style>\n\n<p>A static IP keeps a server reachable at the same address after every reboot. On a VPS the address is assigned to you, but CentOS still has to be told to use it \u2014 and how you do that changed between CentOS 7 and CentOS 8\/9. This guide covers both, and how to recover if you lock yourself out.<\/p>\n\n<div class=\"ksip-note\"><strong>Before you start:<\/strong> changing network settings over SSH can disconnect you. Check that your provider&#8217;s control panel gives you console access first, and note the address, subnet mask, gateway and DNS servers you were assigned.<\/div>\n\n<h2 id=\"ksip-version\">1. Which method applies to your version<\/h2>\n<table class=\"ksip-table\">\n<tr><th>Version<\/th><th>Configure with<\/th><th>Notes<\/th><\/tr>\n<tr><td>CentOS 7<\/td><td>network-scripts, or <span class=\"ksip-code\">nmcli<\/span><\/td><td>Reached end of life in June 2024; no further security updates.<\/td><\/tr>\n<tr><td>CentOS 8<\/td><td><span class=\"ksip-code\">nmcli<\/span> (NetworkManager)<\/td><td>network-scripts deprecated.<\/td><\/tr>\n<tr><td>CentOS 9 \/ Stream<\/td><td><span class=\"ksip-code\">nmcli<\/span> or keyfile<\/td><td>network-scripts removed entirely.<\/td><\/tr>\n<\/table>\n\n<h2 id=\"ksip-find\">2. Find your interface and current settings<\/h2>\n<p>Interface names vary \u2014 <span class=\"ksip-code\">eth0<\/span>, <span class=\"ksip-code\">ens3<\/span> and <span class=\"ksip-code\">enp1s0<\/span> are all common on VPS instances:<\/p>\n<div class=\"ksip-block\">ip addr show\nip route show\nnmcli device status<\/div>\n<p>The interface holding your current address is the one to edit, and the default route line shows your gateway.<\/p>\n\n<h2 id=\"ksip-centos7\">3. CentOS 7: network-scripts<\/h2>\n<p>Edit the file for your interface, for example <span class=\"ksip-code\">\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span>:<\/p>\n<div class=\"ksip-block\">TYPE=Ethernet\nBOOTPROTO=none\nNAME=eth0\nDEVICE=eth0\nONBOOT=yes\nIPADDR=203.0.113.25\nPREFIX=24\nGATEWAY=203.0.113.1\nDNS1=1.1.1.1\nDNS2=8.8.8.8<\/div>\n<p><span class=\"ksip-code\">BOOTPROTO=none<\/span> turns DHCP off, and <span class=\"ksip-code\">ONBOOT=yes<\/span> brings the interface up at boot \u2014 the setting most often behind a server that loses its address after a reboot. Then apply it:<\/p>\n<div class=\"ksip-block\">systemctl restart network<\/div>\n\n<h2 id=\"ksip-nmcli\">4. CentOS 8, 9 and Stream: nmcli<\/h2>\n<p>List the connection first, then set each property on it:<\/p>\n<div class=\"ksip-block\">nmcli connection show\nnmcli connection modify &#8220;System eth0&#8221; ipv4.addresses 203.0.113.25\/24\nnmcli connection modify &#8220;System eth0&#8221; ipv4.gateway 203.0.113.1\nnmcli connection modify &#8220;System eth0&#8221; ipv4.dns &#8220;1.1.1.1 8.8.8.8&#8221;\nnmcli connection modify &#8220;System eth0&#8221; ipv4.method manual\nnmcli connection modify &#8220;System eth0&#8221; connection.autoconnect yes\nnmcli connection up &#8220;System eth0&#8221;<\/div>\n<p>Use the connection name exactly as <span class=\"ksip-code\">nmcli connection show<\/span> prints it \u2014 it is not always the device name. <span class=\"ksip-code\">ipv4.method manual<\/span> is the part that disables DHCP.<\/p>\n\n<h2 id=\"ksip-keyfile\">5. Editing the NetworkManager keyfile<\/h2>\n<p>On CentOS 9 and Stream, connections live in <span class=\"ksip-code\">\/etc\/NetworkManager\/system-connections\/<\/span> as <span class=\"ksip-code\">.nmconnection<\/span> files:<\/p>\n<div class=\"ksip-block\">[connection]\nid=eth0\ntype=ethernet\ninterface-name=eth0\nautoconnect=true\n\n[ipv4]\nmethod=manual\naddress1=203.0.113.25\/24,203.0.113.1\ndns=1.1.1.1;8.8.8.8;<\/div>\n<p>The file must be owned by root with mode 600 or NetworkManager ignores it. Reload afterwards:<\/p>\n<div class=\"ksip-block\">chmod 600 \/etc\/NetworkManager\/system-connections\/eth0.nmconnection\nnmcli connection reload\nnmcli connection up eth0<\/div>\n\n<h2 id=\"ksip-verify\">6. Verify the configuration<\/h2>\n<div class=\"ksip-block\">ip addr show\nip route show\ncat \/etc\/resolv.conf\nping -c 3 1.1.1.1\nping -c 3 google.com<\/div>\n<p>If pinging an IP works but a hostname does not, the address and gateway are correct and the remaining problem is DNS.<\/p>\n\n<h2 id=\"ksip-trouble\">7. Troubleshooting<\/h2>\n<ul class=\"ksip-fixlist\">\n<li><strong>Address disappears after reboot<\/strong> \u2014 <span class=\"ksip-code\">ONBOOT=yes<\/span> missing on CentOS 7, or <span class=\"ksip-code\">connection.autoconnect<\/span> off under NetworkManager.<\/li>\n<li><strong>No connectivity at all<\/strong> \u2014 usually a wrong gateway, or one outside the subnet you configured.<\/li>\n<li><strong>Changes appear to be ignored<\/strong> \u2014 on CentOS 8 and 9, editing network-scripts does nothing because NetworkManager owns the interface. Use <span class=\"ksip-code\">nmcli<\/span>.<\/li>\n<li><strong>Locked out over SSH<\/strong> \u2014 reconnect on the old address if it still answers, otherwise use the provider console and check <span class=\"ksip-code\">ip addr<\/span>.<\/li>\n<li><strong>Duplicate address<\/strong> \u2014 if another machine already uses the IP, both behave erratically. Confirm the address is yours before assigning it.<\/li>\n<li><strong>Firewall blocks the port<\/strong> \u2014 the address can be right while <span class=\"ksip-code\">firewalld<\/span> drops traffic. Check with <span class=\"ksip-code\">firewall-cmd &#8211;list-all<\/span>.<\/li>\n<\/ul>\n\n<h2 id=\"ksip-ssh\">8. Keeping SSH access while you work<\/h2>\n<p>Keep your existing session open and test the new address from a second terminal before closing the first. If the server becomes unreachable, the provider console is the fallback \u2014 which is why it is worth confirming you have one before you start.<\/p>\n\n<p>Running this on a VPS? Everything above applies to <a href=\"https:\/\/kwikserver.com\/\">KwikServer Linux VPS instances<\/a>, where the assigned address, gateway and DNS servers are listed in your control panel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A static IP keeps a server reachable at the same address after every reboot. On a VPS the address is assigned to you, but CentOS still has to be told to use it \u2014 and how you do that changed between CentOS 7 and CentOS 8\/9. This guide covers both, and how to recover if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":""},"categories":[24,20],"tags":[31,27],"class_list":["post-1872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dedicated-server","category-linux","tag-dedicated-server","tag-vps"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kwik Server\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Tutorials Kwik Server -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Configure a Static IP on CentOS 7, 8 and 9\" \/>\n\t\t<meta property=\"og:description\" content=\"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-12-06T15:23:04+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-09-16T21:39:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Configure a Static IP on CentOS 7, 8 and 9\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#blogposting\",\"name\":\"Configure a Static IP on CentOS 7, 8 and 9\",\"headline\":\"Configure Static IP Address in CentOS\",\"author\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Steps-to-Configure-Static-IP-Address-in-CentOS.png\",\"width\":1376,\"height\":768},\"datePublished\":\"2025-12-06T20:53:04+05:30\",\"dateModified\":\"2026-09-17T03:09:40+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#webpage\"},\"articleSection\":\"Dedicated Server, Linux, Dedicated Server, VPS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#listItem\",\"name\":\"Configure Static IP Address in CentOS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#listItem\",\"position\":3,\"name\":\"Configure Static IP Address in CentOS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\",\"name\":\"Tutorials Kwik Server\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/cropped-Kwik-Server-Logo-1.png\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#organizationLogo\",\"width\":1956,\"height\":683},\"image\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/\",\"name\":\"Kwik Server\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b10492ce76cec12cc2303f4951f725e776449ce91e8fff43130c3174c94d70?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kwik Server\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#webpage\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/\",\"name\":\"Configure a Static IP on CentOS 7, 8 and 9\",\"description\":\"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/author\\\/server2202kwik\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Steps-to-Configure-Static-IP-Address-in-CentOS.png\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#mainImage\",\"width\":1376,\"height\":768},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/configure-ip-address-in-centos-php\\\/#mainImage\"},\"datePublished\":\"2025-12-06T20:53:04+05:30\",\"dateModified\":\"2026-09-17T03:09:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/\",\"name\":\"Tutorials Kwik Server\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kwikserver.com\\\/tutorials\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Configure a Static IP on CentOS 7, 8 and 9","description":"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.","canonical_url":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#blogposting","name":"Configure a Static IP on CentOS 7, 8 and 9","headline":"Configure Static IP Address in CentOS","author":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"publisher":{"@id":"https:\/\/kwikserver.com\/tutorials\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2026\/05\/Steps-to-Configure-Static-IP-Address-in-CentOS.png","width":1376,"height":768},"datePublished":"2025-12-06T20:53:04+05:30","dateModified":"2026-09-17T03:09:40+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#webpage"},"isPartOf":{"@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#webpage"},"articleSection":"Dedicated Server, Linux, Dedicated Server, VPS"},{"@type":"BreadcrumbList","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials#listItem","position":1,"name":"Home","item":"https:\/\/kwikserver.com\/tutorials","nextItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#listItem","name":"Configure Static IP Address in CentOS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#listItem","position":3,"name":"Configure Static IP Address in CentOS","previousItem":{"@type":"ListItem","@id":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/kwikserver.com\/tutorials\/#organization","name":"Tutorials Kwik Server","url":"https:\/\/kwikserver.com\/tutorials\/","logo":{"@type":"ImageObject","url":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#organizationLogo","width":1956,"height":683},"image":{"@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author","url":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/","name":"Kwik Server","image":{"@type":"ImageObject","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b0b10492ce76cec12cc2303f4951f725e776449ce91e8fff43130c3174c94d70?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kwik Server"}},{"@type":"WebPage","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#webpage","url":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/","name":"Configure a Static IP on CentOS 7, 8 and 9","description":"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kwikserver.com\/tutorials\/#website"},"breadcrumb":{"@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#breadcrumblist"},"author":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"creator":{"@id":"https:\/\/kwikserver.com\/tutorials\/author\/server2202kwik\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2026\/05\/Steps-to-Configure-Static-IP-Address-in-CentOS.png","@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#mainImage","width":1376,"height":768},"primaryImageOfPage":{"@id":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/#mainImage"},"datePublished":"2025-12-06T20:53:04+05:30","dateModified":"2026-09-17T03:09:40+05:30"},{"@type":"WebSite","@id":"https:\/\/kwikserver.com\/tutorials\/#website","url":"https:\/\/kwikserver.com\/tutorials\/","name":"Tutorials Kwik Server","inLanguage":"en-US","publisher":{"@id":"https:\/\/kwikserver.com\/tutorials\/#organization"}}]},"og:locale":"en_US","og:site_name":"Tutorials Kwik Server -","og:type":"article","og:title":"Configure a Static IP on CentOS 7, 8 and 9","og:description":"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.","og:url":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/","og:image":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png","og:image:secure_url":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png","article:published_time":"2025-12-06T15:23:04+00:00","article:modified_time":"2026-09-16T21:39:40+00:00","twitter:card":"summary_large_image","twitter:title":"Configure a Static IP on CentOS 7, 8 and 9","twitter:description":"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.","twitter:image":"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2025\/02\/cropped-Kwik-Server-Logo-1.png"},"aioseo_meta_data":{"post_id":"1872","title":"Configure a Static IP on CentOS 7, 8 and 9","description":"Set a static IP address on CentOS: network-scripts on CentOS 7, nmcli and NetworkManager keyfiles on CentOS 8, 9 and Stream, plus verification and troubleshooting.","keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2025-12-06 15:53:21","updated":"2026-09-16 21:32:13","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kwikserver.com\/tutorials\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kwikserver.com\/tutorials\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tConfigure Static IP Address in CentOS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kwikserver.com\/tutorials"},{"label":"Linux","link":"https:\/\/kwikserver.com\/tutorials\/category\/linux\/"},{"label":"Configure Static IP Address in CentOS","link":"https:\/\/kwikserver.com\/tutorials\/configure-ip-address-in-centos-php\/"}],"_links":{"self":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":12,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"predecessor-version":[{"id":2028,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1872\/revisions\/2028"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/media\/1915"}],"wp:attachment":[{"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}