{"id":3188,"date":"2016-05-31T21:11:25","date_gmt":"2016-05-31T21:11:25","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3188"},"modified":"2016-05-31T21:11:25","modified_gmt":"2016-05-31T21:11:25","slug":"adding-secondary-ip-addresses-centos-6-x","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2016\/05\/31\/adding-secondary-ip-addresses-centos-6-x\/","title":{"rendered":"Adding Secondary IP Addresses CentOS 6.x"},"content":{"rendered":"<p>To add a secondary IP to CentOSnavigate to your \/etc\/sysconfig\/network-scripts<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cd \/etc\/sysconfig\/network-scripts<\/pre>\n<p>[\/bash]<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ls -la\n-rw-r--r--. 1 root root   203 Dec 30 14:18 ifcfg-eth0\n-rw-r--r--. 1 root root   230 Dec 30 14:59 ifcfg-eth1\n\n<\/pre>\n<p>The system has a public and primary IP.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# nano ifcfg-eth0\n<\/pre>\n<p>[\/bash]<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nDEVICE=eth0\nHWADDR=00:0C:29:E7:7D:05\nTYPE=Ethernet\nUUID=b9cbc9ab-d4a5-4ca8-9e3c-176c62102adc\nONBOOT=yes\nNM_CONTROLLED=no\nBOOTPROTO=static\nIPADDR=216.55.000.000\nGATEWAY=216.55.169.1\nNETMASK=255.255.255.0\n<\/pre>\n<p>To add a public IP, create new files with ifcfg-eth0:1, ifcfg-eth0:2, etc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add a secondary IP to CentOSnavigate to your \/etc\/sysconfig\/network-scripts # cd \/etc\/sysconfig\/network-scripts [\/bash] # ls -la -rw-r&#8211;r&#8211;. 1 root root 203 Dec 30 14:18 ifcfg-eth0 -rw-r&#8211;r&#8211;. 1 root root 230 Dec 30 14:59 ifcfg-eth1 The system has a public and primary IP. # nano ifcfg-eth0 [\/bash] DEVICE=eth0 HWADDR=00:0C:29:E7:7D:05 TYPE=Ethernet UUID=b9cbc9ab-d4a5-4ca8-9e3c-176c62102adc ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static IPADDR=216.55.000.000 &#8230; <a title=\"Adding Secondary IP Addresses CentOS 6.x\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2016\/05\/31\/adding-secondary-ip-addresses-centos-6-x\/\" aria-label=\"Read more about Adding Secondary IP Addresses CentOS 6.x\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3188","post","type-post","status-publish","format-standard","hentry","category-centos6"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3188"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3188\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}