{"id":89,"date":"2018-06-12T18:11:00","date_gmt":"2018-06-12T10:11:00","guid":{"rendered":"https:\/\/yeslq.com\/20180689.html"},"modified":"2018-06-12T18:11:00","modified_gmt":"2018-06-12T10:11:00","slug":"centos-minimal-network%e5%ae%89%e8%a3%85%e5%90%8e%e8%87%aa%e5%8a%a8%e8%8e%b7%e5%8f%96ip","status":"publish","type":"post","link":"https:\/\/yeslq.com\/?p=89","title":{"rendered":"CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP"},"content":{"rendered":"<p>CentOS Minimal\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u7f51\u7edc<\/p>\n<p>service network start\u540e\u4ecd\u7136\u65e0\u6cd5\u8fde\u63a5\uff0c\u9042ifconfig\u67e5\u770b\uff0c\u53d1\u73b0\u5e76\u6ca1\u6709\u5206\u914dIP\u5730\u5740<\/p>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\/etc\/sysconfig\/network-script\/ifcfg-eth0<\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\uff1a<\/p>\n<p>ONBOOT=&#8221;yes&#8221;&nbsp; &nbsp;#\u5f00\u673a\u81ea\u52a8\u8fde\u63a5\u7f51\u7edc<br \/>MM_Controlled=&#8221;no&#8221;&nbsp; &nbsp;#\u662f\u5426\u5b9e\u65f6\u751f\u6548\uff0c\u5efa\u8baeno<br \/>BOOTPROTO=&#8221;dhcp&#8221;&nbsp; &nbsp;#\u662f\u5426\u81ea\u52a8\u83b7\u53d6IP\u5730\u5740<\/p>\n<p>\u91cd\u542f\u7f51\u7edcservice network restart \uff0c \u987a\u5229\u8fde\u63a5\u7f51\u7edc<\/p>\n<p>\u5982\u679c\u8bbe\u7f6e\u9759\u6001IP\uff0c\u5c06\u4e0a\u9762\u7684\u6539\u4e00\u4e0b\uff0c\u6839\u636e\u81ea\u5df1\u5b9e\u9645\u60c5\u51b5\u8bbe\u7f6e<\/p>\n<p>ONBOOT=&#8221;yes&#8221;<br \/>MM_Controlled=&#8221;no&#8221;<br \/>IPADDR=192.168.0.33<br \/>BOOTPROTO=static<br \/>NETMASK=255.255.255.0<br \/>GATEWAY=192.168.0.1<br \/>DNS1=192.168.0.2<br \/>DNS2=192.168.0.3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS Minimal\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u7f51\u7edc service network start\u540e\u4ecd\u7136\u65e0\u6cd5\u8fde\u63a5 &#8230; <a title=\"CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP\" class=\"read-more\" href=\"https:\/\/yeslq.com\/?p=89\" aria-label=\"\u9605\u8bfb CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,22,8],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-centos","category-ip","category-network"],"_links":{"self":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":0,"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}