{"id":227,"date":"2012-08-03T11:44:03","date_gmt":"2012-08-03T15:44:03","guid":{"rendered":"https:\/\/www.vhdesigns.com\/?p=227"},"modified":"2012-08-03T11:44:03","modified_gmt":"2012-08-03T15:44:03","slug":"how-to-configure-static-ip-address-on-centos-6-3-linux-server","status":"publish","type":"post","link":"https:\/\/vhdesigns.com\/index.php\/2012\/08\/03\/how-to-configure-static-ip-address-on-centos-6-3-linux-server\/","title":{"rendered":"How to Configure Static IP Address on CentOS 6.3 Linux Host"},"content":{"rendered":"<p>This post shows the steps to configure static ip address, default gateway, netmask, dns server and make a network auto start at boot on linux CentOS 6.3 host normally configured with static ip address, so that easier to maintain the configuration on it\u2019s client and DNS server will always able to resolve it.<\/p>\n<pre>DEVICE=\"eth0\"\nBOOTPROTO=\"dhcp\"\nHWADDR=\"xx:xx:xx:xx:xx:xx\"\nNM_CONTROLLED=\"yes\"\nONBOOT=\"no\"\nTYPE=\"Ethernet\"<\/pre>\n<p>1. Configure eth0:<\/p>\n<pre>[root@centos ~]# nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/pre>\n<pre>DEVICE=\"eth0\"\nBOOTPROTO=\"static\"\nHWADDR=\"xx:xx:xx:xx:xx:xx\"\nNM_CONTROLLED=\"yes\"\nONBOOT=\"yes\"\nTYPE=\"Ethernet\"\nIPADDR=192.168.3.3\nNETMASK=255.255.255.0<\/pre>\n<p>2. Configure Default gateway:<\/p>\n<pre>[root@centos ~]# nano \/etc\/sysconfig\/network<\/pre>\n<pre>NETWORKING=yes\nHOSTNAME=centos.somedomain.local\nGATEWAY=192.168.13.1<\/pre>\n<p>4. Configure DNS server :<\/p>\n<pre>[root@centos ~]# nano \/etc\/resolv.conf<\/pre>\n<pre>nameserver 8.8.8.8<\/pre>\n<p>Tip, If after a reboot the interface is still not working, you may need to delete the 70-persistent-net.rules file from \/etc\/udev\/rules.d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post shows the steps to configure static ip address, default gateway, netmask, dns server and make a network auto start at boot on linux<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[10],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-tips","tag-linux"],"_links":{"self":[{"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":0,"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vhdesigns.com\/index.php\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}