{"id":2006,"date":"2019-05-15T00:59:25","date_gmt":"2019-05-14T16:59:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2006"},"modified":"2020-05-05T10:06:09","modified_gmt":"2020-05-05T02:06:09","slug":"ifcfg","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ifcfg","title":{"rendered":"ifcfg\u547d\u4ee4 – \u914d\u7f6e\u7f51\u7edc\u63a5\u53e3"},"content":{"rendered":"\n

ifcfg\u547d\u4ee4\u662f\u4e00\u4e2aBash\u811a\u672c\u7a0b\u5e8f\uff0c\u7528\u6765\u8bbe\u7f6elinux\u4e2d\u7684\u7f51\u7edc\u63a5\u53e3\u53c2\u6570\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a <\/strong>ifcfg [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

\u7f51\u7edc\u63a5\u53e3<\/td>\u6307\u5b9a\u8981\u64cd\u4f5c\u7684\u7f51\u7edc\u63a5\u53e3<\/td><\/tr>
add\/del<\/td>\u6dfb\u52a0\u6216\u5220\u9664\u7f51\u7edc\u63a5\u53e3\u4e0a\u7684\u5730\u5740<\/td><\/tr>
ip\u5730\u5740<\/td>\u6307\u5b9aIP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801<\/td><\/tr>
Stop<\/td>\u505c\u7528\u6307\u5b9a\u7684\u7f51\u7edc\u63a5\u53e3\u7684IP\u5730\u5740<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u505c\u6b62\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u7684IP\u5730\u5740\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ifcfg eth0 stop<\/pre>\n\n\n\n

\u4e3a\u7f51\u7edc\u63a5\u53e3\u914d\u7f6eIP\u5730\u5740\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ifcfg eth1 add 192.168.60.11\/24<\/pre>\n\n\n\n

\u4e3a\u7f51\u53e3\u5220\u9664\u7f51\u7edc\u5730\u5740\uff1a<\/p>\n\n\n\n

[root@localhost ~]# ifcfg eth0 delete 192.168.10.250\/24<\/pre>\n","protected":false},"excerpt":{"rendered":"

ifcfg\u547d\u4ee4\u662f\u4e00\u4e2aBash\u811a\u672c\u7a0b\u5e8f\uff0c\u7528\u6765\u8bbe\u7f6elinux\u4e2d\u7684\u7f51\u7edc\u63a5\u53e3\u53c2\u6570\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1a ifcfg […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2006"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=2006"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":7462,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2006\/revisions\/7462"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}