{"id":819,"date":"2014-10-21T20:29:43","date_gmt":"2014-10-21T20:29:43","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=819"},"modified":"2014-10-21T20:29:43","modified_gmt":"2014-10-21T20:29:43","slug":"changing-primary-ip-address-centos-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/10\/21\/changing-primary-ip-address-centos-server\/","title":{"rendered":"Changing the primary IP address of a CentOS Server"},"content":{"rendered":"<p>ssh to the server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\n<\/pre>\n<p>You will find&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# =============================================================\n# Network Interface Script generated by BareMetal\n# =============================================================\nDEVICE=eth0\nBOOTPROTO=STATIC\nONBOOT=yes\nIPADDR=216.55.xx.xx\nNETMASK=255.255.255.0\nHWADDR=6C:62:xx:xx:xx:C3\n\n<\/pre>\n<p>Change this line only to the new IP<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nIPADDR=216.55.xx.xx\n<\/pre>\n<p>Note: If you are changing to an IP on a different subnet and need to change your default gateway, this can be configured under \/etc\/sysconfig\/network<\/p>\n<p>Save the file and restart<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# service network restart\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ssh to the server. #nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 You will find&#8230; # ============================================================= # Network Interface Script generated by BareMetal # ============================================================= DEVICE=eth0 BOOTPROTO=STATIC ONBOOT=yes IPADDR=216.55.xx.xx NETMASK=255.255.255.0 HWADDR=6C:62:xx:xx:xx:C3 Change this line only to the new IP IPADDR=216.55.xx.xx Note: If you are changing to an IP on a different subnet and need to change your default gateway, this &#8230; <a title=\"Changing the primary IP address of a CentOS Server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/10\/21\/changing-primary-ip-address-centos-server\/\" aria-label=\"Read more about Changing the primary IP address of a CentOS Server\">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,72],"tags":[],"class_list":["post-819","post","type-post","status-publish","format-standard","hentry","category-centos6","category-networking"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/819","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=819"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/819\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}