{"id":1872,"date":"2025-12-06T20:53:04","date_gmt":"2025-12-06T15:23:04","guid":{"rendered":"https:\/\/kwikserver.com\/tutorials\/?p=1872"},"modified":"2025-12-06T21:51:40","modified_gmt":"2025-12-06T16:21: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":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1872\" class=\"elementor elementor-1872\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-427a226 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"427a226\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a39a6c9\" data-id=\"a39a6c9\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0c0085d ht-first-letter elementor-widget elementor-widget-text-editor\" data-id=\"0c0085d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"blog-para\">The first step after finishing installation of CentOS, you will require to configure the IP address. The use of CentOS is common as a server. You will need to provide static IP address to it. CentOS is configured to receive IP from DHCP server by default.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-37f5766 elementor-widget elementor-widget-themeht-heading\" data-id=\"37f5766\" data-element_type=\"widget\" data-widget_type=\"themeht-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n        <div class=\"\">\r\n\r\n          <h3 class=\" \">Steps to Configure Static IP Address in CentOS:-\n<\/h3>       \r\n\r\n        <\/div>\r\n\r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c320d5 elementor-widget elementor-widget-text-editor\" data-id=\"3c320d5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>1.<\/strong>Under \/etc\/sysconfig\/network-scripts , you will find all the files required for network configuration. We are using nano editor. And now the next step after starting the server that is running CentOS is to enter root user credentials to log in. Enter this command<\/p><p><b># nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/b><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-424518b elementor-widget elementor-widget-themeht-heading\" data-id=\"424518b\" data-element_type=\"widget\" data-widget_type=\"themeht-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n        <div class=\"\">\r\n\r\n          <h4 class=\" \">2. Default configuration will appear like this,\n<\/h4>       \r\n\r\n        <\/div>\r\n\r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de1b66e elementor-widget elementor-widget-text-editor\" data-id=\"de1b66e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><img decoding=\"async\" src=\"https:\/\/kwikserver.com\/assets\/img\/rdp%20buy-vps-france%20dedicated%20server.png\" alt=\"gpuupdate, buy windows vps, rdp client\" \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7d49b52 elementor-widget elementor-widget-text-editor\" data-id=\"7d49b52\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>3. Now change the default configuration same as given in pic.<\/strong><\/p><p><img decoding=\"async\" src=\"https:\/\/kwikserver.com\/assets\/img\/dedicated%20server%20usa-netherland%20vps%20server-rdp%20usa.png\" alt=\"gpuupdate, buy windows vps, rdp client\" \/><\/p><p>4. Press <b>ctrl+x<\/b>\u00a0to save the file and exit. You will be asked for confirmation, type\u00a0<b>y<\/b>.<\/p><p>\u00a0<\/p><p>5. Restart network service through this command<\/p><p><b>[root@hostname~]# service network restart<\/b><\/p><p>6. Verify the IP address<\/p><p><b>[root@hostname~]# ifconfig<\/b><\/p><p>Following information will appear on screen.<\/p><p><img decoding=\"async\" src=\"https:\/\/kwikserver.com\/assets\/img\/germany%20rdp-vmware-linux.png\" alt=\"gpuupdate, buy windows vps, rdp client\" \/><\/p><p>7. Next step after configuring IP address is DNS configuration. DNS information or Name server is located in different file location that is, \/etc\/recolv.conf. Now for the configuration of DNS information nano editor will be used.<\/p><p><b>[root@hostname~]# nano \/etc\/resolv.conf<\/b><\/p><p>You will need to enter at least one entry as by default this file will be empty.<\/p><p><b>nameserver 4.2.2.2<\/b><\/p><div><p>Depending upon network scenario, name server IP address can vary. We will use\u00a0<b><a href=\"https:\/\/www.google.com\/\">www.google.com<\/a><\/b>. After that save the file and exit. If you want to test the configuration, use the ping command.<\/p><\/div><p><b>[root@hostname~]# ping www.google.com<\/b><\/p><p>When you get the reply as shown in this given picture then that means you have successfully configured the DNS information and IP address.<\/p><p><img decoding=\"async\" src=\"https:\/\/kwikserver.com\/assets\/img\/france%20vps-windows%20vps-ubuntu.png\" alt=\"gpuupdate, buy windows vps, rdp client\" \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-81f3d43 elementor-widget elementor-widget-theme-blockquote\" data-id=\"81f3d43\" data-element_type=\"widget\" data-widget_type=\"theme-blockquote.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n        <blockquote class=\"theme-blockquote\"><p>\"Understanding CentOS IP configuration empowers administrators to create predictable, scalable, and well managed server networks.\"<\/p><span>Kwik Server<\/span>\r\n        <\/blockquote>\r\n\r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-28fb15d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"28fb15d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-0f5e36c\" data-id=\"0f5e36c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-427d60c elementor-widget elementor-widget-image\" data-id=\"427d60c\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"600\" height=\"400\" src=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-03-600x400.jpg\" class=\"attachment-seoland-600x400 size-seoland-600x400 wp-image-43\" alt=\"\" srcset=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-03-600x400.jpg 600w, https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-03-1200x800.jpg 1200w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-df48d92\" data-id=\"df48d92\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-32b9855 elementor-widget elementor-widget-image\" data-id=\"32b9855\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"600\" height=\"400\" src=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-06-600x400.jpg\" class=\"attachment-seoland-600x400 size-seoland-600x400 wp-image-46\" alt=\"\" srcset=\"https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-06-600x400.jpg 600w, https:\/\/kwikserver.com\/tutorials\/wp-content\/uploads\/2024\/04\/portfolio-06-1200x800.jpg 1200w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-9a12f35 elementor-widget elementor-widget-themeht-heading\" data-id=\"9a12f35\" data-element_type=\"widget\" data-widget_type=\"themeht-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n        <div class=\"\">\r\n\r\n          <h3 class=\" \">Why is Kwik Server the top choice for hosting?<\/h3>       \r\n\r\n        <\/div>\r\n\r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1537e74 elementor-widget elementor-widget-list_style\" data-id=\"1537e74\" data-element_type=\"widget\" data-widget_type=\"list_style.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n        <!-- Start rendering the output -->\r\n        \r\n                    \r\n                             <ul class=\"list-unstyled list-icon style-2\">\r\n                          <li><i class=\"flaticon flaticon-check-mark\"><\/i> Instant VPS provisioning through modules<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> Option to restart or reinstall OS in a single click<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> VPS and Dedicated servers have port 25 open by default<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> Round the clock customer support through Live Chat and SkyPe<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> Distinguished provider of affordable AMD, Ampere and Intel Servers<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> Storage Servers at unbelievable low cost and expandable upto 96TB<\/li>\r\n                            <li><i class=\"flaticon flaticon-check-mark\"><\/i> Top ranked Encoding RDP provider with unmatched powerful servers in the industry<\/li>\r\n                          <\/ul>\r\n                            \r\n            \r\n        <!-- End rendering the output -->\r\n\r\n\r\n\r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The first step after finishing installation of CentOS, you will require to configure the IP address. The use of CentOS is common as a server. You will need to provide static IP address to it. CentOS is configured to receive IP from DHCP server by default. Steps to Configure Static IP Address in CentOS:- 1.Under [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1630,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"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":[],"_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":10,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"predecessor-version":[{"id":1884,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/posts\/1872\/revisions\/1884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kwikserver.com\/tutorials\/wp-json\/wp\/v2\/media\/1630"}],"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}]}}