{"id":2936,"date":"2012-08-06T04:32:49","date_gmt":"2012-08-06T04:32:49","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2936"},"modified":"2014-11-21T06:56:11","modified_gmt":"2014-11-21T06:56:11","slug":"configure-secondary-ip-address-in-centos","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/configure-secondary-ip-address-in-centos\/","title":{"rendered":"Configure secondary ip address in centos"},"content":{"rendered":"<p><script type=\"text\/javascript\">\/\/ < ![CDATA[\nvar _gaq = _gaq || [];\n  _gaq.push(['_setAccount', 'UA-27772211-1']);\n  _gaq.push(['_trackPageview']);\n\n  (function() {\n    var ga = document.createElement('script'); ga.type = 'text\/javascript'; ga.async = true;\n    ga.src = ('https:' == document.location.protocol ? 'https:\/\/ssl' : 'http:\/\/www') + '.google-analytics.com\/ga.js';\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n  })();\n\/\/ ]]><\/script><br \/>\nWe can configure secondary ip address in centos by using the following steps but make sure that you have logged in to the server as root user.<\/p>\n<p><strong>cd \/etc\/sysconfig\/network-scripts<\/strong><\/p>\n<p>Create the new interface file ifcfg-eth0:1, if its already exist then use ifcfg-eth0:2 and so on for the every new ips.<\/p>\n<p><strong>touch ifcfg-eth0:1<\/strong><\/p>\n<p>Now open the file <strong>ifcfg-eth0:1<\/strong> and add the following lins as per your ip new ip address.<\/p>\n<p><strong>DEVICE=eth0:1<br \/>\nBOOTPROTO=static<br \/>\nIPADDR=your new ip address<br \/>\nONBOOT=yes<\/strong><\/p>\n<p>Similarly you can add other ips on your server and to get the ip up use the ifup command.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>We can configure secondary ip address in centos by using the following steps but make sure that you have logged in to the server as <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/configure-secondary-ip-address-in-centos\/\" title=\"Configure secondary ip address in centos\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2936","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2936"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2936"}],"version-history":[{"count":4,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2936\/revisions"}],"predecessor-version":[{"id":3780,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2936\/revisions\/3780"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}