{"id":127126,"date":"2018-11-14T09:30:12","date_gmt":"2018-11-14T01:30:12","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=127126"},"modified":"2018-11-06T14:31:09","modified_gmt":"2018-11-06T06:31:09","slug":"linux-replace-ip","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-replace-ip.html","title":{"rendered":"linux-\u5982\u4f55\u5feb\u901f\u66ff\u6362IP"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728Linux\u5728\u505a\u9ad8\u53ef\u7528\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u4f1a\u4f7f\u7528\u5230\u865a\u62dfIP\u3002\u5728windows\u4e0a\u4e00\u4e2a\u7f51\u5361\u53ef\u4ee5\u914d\u7f6e\u4e24\u4e2aIP\uff0c\u5728Linux\u76f4\u63a5\u4f7f\u7528ip\u547d\u4ee4\u5c31\u53ef\u4ee5\u6dfb\u52a0\u4e86\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u6dfb\u52a0<\/strong><\/span><\/div>\n
ip address add 192.168.1.200\/24 broadcast 192.168.1.255 dev wlp58s0<\/pre>\n

\u6dfb\u52a0\u7684\u65f6\u5019\u9700\u8981\u6307\u5b9a\u63a9\u7801\u548c\u5e7f\u64ad\u5730\u5740\uff0c\u8ba9\u540c\u4e2a\u7f51\u6bb5\u7684\u673a\u5668\u53ef\u4ee5\u6536\u5230\u8fd9\u4e2a\u5730\u5740\u7684\u5e7f\u64ad\uff0c\u8fd8\u9700\u8981\u6307\u5b9a\u6dfb\u52a0\u5230\u54ea\u4e2a\u8bbe\u5907\uff0c\u8fd9\u91cc\u7684wlp58s0\u5c31\u662f\u7f51\u53e3\u7684\u540d\u79f0\u3002<\/p>\n

\u5220\u9664<\/strong><\/span><\/div>\n

\u5220\u9664\u7684\u547d\u4ee4\u8ddf\u6dfb\u52a0\u7684\u547d\u4ee4\u5dee\u4e0d\u591a\uff0c\u53ea\u9700\u8981\u5c06add\u4fee\u6539\u6210del<\/p>\n

ip address del 192.168.1.200\/24 broadcast 192.168.1.255 dev wlp58s0<\/pre>\n
\u5e94\u7528<\/strong><\/span><\/div>\n

\u5728\u6269\u5bb9\u7f51\u6bb5\u7684\u65f6\u5019\uff0c\u4e0d\u60f3\u53bb\u91cd\u542f\u7f51\u5361\u5bfc\u81f4\u8fdc\u7a0b\u8fde\u63a5\u65ad\u5f00\uff0c\u6211\u4eec\u53ef\u4ee5\u5148\u6dfb\u52a0\u6269\u5bb9\u540e\u7684\u7f51\u6bb5\uff0c\u7136\u540e\u5728\u5220\u9664\u539f\u6765\u7684IP\u8ddf\u63a9\u7801\u5373\u53ef\u3002<\/p>\n

ip address add 192.168.1.200\/24 broadcast 192.168.1.255 dev wlp58s0\r\nip address add 192.168.1.200\/16 broadcast 192.168.255.255 dev wlp58s0\r\nip address del 192.168.1.200\/24 broadcast 192.168.1.255 dev wlp58s0\r\n<\/pre>\n

\u53ea\u9700\u8981\u4e09\u6b65\u64cd\u4f5c\uff0c\u6211\u4eec\u5373\u53ef\u5b8c\u6210\u7f51\u6bb5\u7684\u52a8\u6001\u4fee\u6539\uff0c\u8fd9\u65f6\u5019\u8fdc\u7a0b\u4e5f\u4e0d\u4f1a\u65ad\u5f00\u3002<\/p>\n

\u603b\u7ed3<\/strong><\/span><\/div>\n

\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u6ca1\u6709\u4fdd\u5b58\u5230\u914d\u7f6e\u6587\u4ef6\uff0c\u91cd\u542f\u4ee5\u540e\u5c31\u5931\u6548\u4e86\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5c06\u6211\u4eec\u7684\u914d\u7f6e\u4fe1\u606f\u5199\u5230\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

ip address add 192.168.1.200\/24 broadcast 192.168.1.255 […]<\/p>\n","protected":false},"author":1893,"featured_media":127130,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-127126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1893"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=127126"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127126\/revisions"}],"predecessor-version":[{"id":127133,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127126\/revisions\/127133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/127130"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=127126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=127126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=127126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}