{"id":99,"date":"2016-12-08T22:41:32","date_gmt":"2016-12-08T20:41:32","guid":{"rendered":"http:\/\/itsimple.info\/?p=99"},"modified":"2016-12-08T22:41:32","modified_gmt":"2016-12-08T20:41:32","slug":"how-to-configure-static-ip-on-linux","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=99","title":{"rendered":"How to configure static IP on linux"},"content":{"rendered":"<p>Method 1 = Network Configuration Using a Text User Interface (nmtui)<\/p>\n<p>&nbsp;<\/p>\n<pre># yum install NetworkManager-tui\r\nand then just type: #nmtui (for semi graphic interface)\r\n\r\nMethod 2 = edit the configuration file :\r\nRHEL \/ Red hat \/ Fedora \/ CentOS Linux eth0 config file. \r\n\r\n#nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\r\n\r\nDEVICE=\"eth0\"\r\nBOOTPROTO=\"static\"\r\nONBOOT=\"yes\"\r\nIPV6INIT=\"yes\"\r\nIPV6_AUTOCONF=\"yes\"\r\nGATEWAY=192.168.1.1\r\n# Your primary public IP address\r\n# The netmask is taken from the PREFIX (where 24 is a public IP, 17 is a private IP)\r\nIPADDR0=192.168.1.5\r\nPREFIX0=\"24\"\r\n# To add a second public IP address:\r\nIPADDR1=172.16.1.10\r\nPREFIX1=\"24\"\r\nDOMAIN=example.com\r\n\r\nDNS1=8.8.8.8\r\nDNS2=8.8.4.4\r\n\r\nGood Luck :)\r\n\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Method 1 = Network Configuration Using a Text User Interface (nmtui) &nbsp; # yum install NetworkManager-tui and then just type: #nmtui (for semi graphic interface) Method 2 = edit the configuration file : RHEL \/ Red hat \/ Fedora \/ CentOS Linux eth0 config file. #nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 DEVICE=&#8221;eth0&#8243; BOOTPROTO=&#8221;static&#8221; ONBOOT=&#8221;yes&#8221; IPV6INIT=&#8221;yes&#8221; IPV6_AUTOCONF=&#8221;yes&#8221; GATEWAY=192.168.1.1 # Your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}