{"id":2813,"date":"2012-04-18T21:06:36","date_gmt":"2012-04-18T13:06:36","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2813"},"modified":"2023-04-28T09:49:36","modified_gmt":"2023-04-28T09:49:36","slug":"how-to-configure-static-ip-address-on-centos-5-8-x86","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-static-ip-address-on-centos-5-8-x86\/","title":{"rendered":"How to Configure Static IP Address on CentOS 5.8 x86"},"content":{"rendered":"<p>In this post, i will share the quick steps on how to configure static ip address on linux CentOS 5.8 server. This post assumed that you have installed linux CentOS 5.8 with minimum type of installation. If you planned to run this CentOS as a server, it better to configure static ip address.<\/p>\n<p>After you have installed CentOS 5.8 linux server, the default DHCP ip configuration will be as below :<\/p>\n<pre>\n[root@centos58 ~]# vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\n<\/pre>\n<p>Example:<\/p>\n<pre>\n# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]\nDEVICE=eth0\nBOOTPROTO=dhcp\nHWADDR=00:0C:29:A1:17:AD\nONBOOT=yes\n<\/pre>\n<p>Please follow the following steps to configure static ip address on your linux CentOS 5.8 server.<\/p>\n<p>1. Configure eth0 ip address and default gateway :<\/p>\n<pre>\n[root@centos58 ~]# vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\n<\/pre>\n<pre>\n# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]\nDEVICE=eth0\nBOOTPROTO=static\nHWADDR=00:0C:29:A1:17:AD\nONBOOT=yes\nIPADDR=192.168.1.53\nNETMASK=255.255.255.0\nNETWORK=192.168.1.0\nGATEWAY=192.168.1.1\nTYPE=Ethernet\nPEERDNS=yes\nUSERCTL=no\n<\/pre>\n<p>2. Restart Network interface:<\/p>\n<pre>\n[root@centos58 ~]# \/etc\/init.d\/network restart\n<\/pre>\n<p>or<\/p>\n<pre>\n[root@centos58 ~]# service network restart\n<\/pre>\n<p>3. Configure DNS server:<\/p>\n<pre>\n[root@centos58 ~]# vi \/etc\/resolv.conf\n<\/pre>\n<pre>\nnameserver 8.8.8.8\nnameserver 8.8.4.4\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will share the quick steps on how to configure static ip address on linux CentOS 5.8 server. This post assumed that you have installed linux CentOS&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1249,1536,1546,1798],"class_list":["post-2813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-5-8","tag-linux","tag-linux-utilities","tag-static-ip"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2813"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2813\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}