{"id":1695,"date":"2015-01-28T04:31:19","date_gmt":"2015-01-28T04:31:19","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1695"},"modified":"2015-01-28T04:31:19","modified_gmt":"2015-01-28T04:31:19","slug":"setup-networking-centos-7","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/01\/28\/setup-networking-centos-7\/","title":{"rendered":"How to Setup networking on centos 7"},"content":{"rendered":"<p>Source: <a href=\"http:\/\/www.krizna.com\/centos\/setup-network-centos-7\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.krizna.com\/centos\/setup-network-centos-7\/<\/a><\/p>\n<p>When installing Centos 7, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default and need additional configuration.<\/p>\n<p>Type \u201cnmcli d\u201d command in your terminal<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# nmcli d\n<\/pre>\n<p>Recommended for beginners<br \/>\nStep 1 \u00bb Type this command \u201cnmtui\u201d to open Network manager and press enter after choosing \u201d Edit a connection\u201d ( Use TAB for choosing options ) .<\/p>\n<p>Command Line<\/p>\n<p>Network interface config files are located in \/etc\/sysconfig\/network-scripts\/ directory. Open ifcfg-en&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nnano \/etc\/sysconfig\/network-scripts\/ifcfg-en\n<\/pre>\n<p>Find<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nBOOTPROTO=none\nONBOOT=no \n\n<\/pre>\n<p>and replace with<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nBOOTPROTO=static\nONBOOT=yes \n\n\n<\/pre>\n<p>And add the below lines at the end of the file.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nIPADDR=172.27.0.32\nNETMASK=255.255.255.0\nGATEWAY=172.27.0.1\nDNS1=172.27.0.5File will look like below after changes.\nTYPE=Ethernet\nBOOTPROTO=static\nDEFROUTE=yes\nIPV4_FAILURE_FATAL=no\nIPV6INIT=yes\nIPV6_AUTOCONF=yes\nIPV6_DEFROUTE=yes\nIPV6_FAILURE_FATAL=no\nNAME=enp0s17\nUUID=f0c5b37d-299a-43cb-b74b-618bb252d129\nONBOOT=yes\nHWADDR=00:0C:29:A1:B5:CC\nIPV6_PEERDNS=yes\nIPV6_PEERROUTES=yes\nIPADDR=192.168.1.10\nNETMASK=255.255.255.0\nGATEWAY=192.168.1.1\nDNS1=192.168.1.5\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# systemctl restart network\n\nAdditionally you can use \/etc\/sysconfig\/network file for hostname and DNS.\n&#x5B;bash]\n\nHOSTNAME=server.krizna.com\nDNS1=192.168.1.5\nDNS2=8.8.8.8\nSEARCH=domain.com\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/www.krizna.com\/centos\/setup-network-centos-7\/ When installing Centos 7, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default and need additional configuration. Type \u201cnmcli d\u201d command in your terminal # nmcli d Recommended for beginners Step 1 \u00bb Type this command \u201cnmtui\u201d to open Network manager &#8230; <a title=\"How to Setup networking on centos 7\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/01\/28\/setup-networking-centos-7\/\" aria-label=\"Read more about How to Setup networking on centos 7\">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":[12,72],"tags":[],"class_list":["post-1695","post","type-post","status-publish","format-standard","hentry","category-centos-7","category-networking"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1695","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=1695"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}