{"id":290229,"date":"2024-03-03T21:22:41","date_gmt":"2024-03-03T13:22:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/djzhmlhjxrml.html"},"modified":"2024-03-03T21:22:41","modified_gmt":"2024-03-03T13:22:41","slug":"djzhmlhjxrml","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/djzhmlhjxrml.html","title":{"rendered":"7\u5927\u7edd\u62db\uff01\u7ea2\u5e3dLinux\u73af\u5883\u4e0broutedel\u547d\u4ee4\u8ba9\u4f60\u8f7b\u677e\u7ba1\u7406\u7f51\u7edc\u6d41\u91cf"},"content":{"rendered":"

\u5728\u7ea2\u5e3dLinux<\/a>\u73af\u5883\u4e0b\uff0croutedel\u547d\u4ee4<\/a>\u88ab\u89c6\u4e3a\u7f51\u7edc\u6d41\u91cf\u8c03\u63a7\u4e0e\u7ba1\u7406\u7684\u5f97\u529b\u52a9\u624b\u3002\u7ecf\u591a\u5e74\u7d2f\u79eflinux route del \u547d\u4ee4<\/strong>\uff0c\u7b14\u8005\u603b\u7ed3\u51fa\u8be5\u6307\u4ee4\u7684\u4e03\u5927\u5173\u952e\u7279\u70b9linux\u4f0a\u7538\u56ed\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u548c\u501f\u9274\u3002<\/p>\n

1.\u4e86\u89e3\u8def\u7531\u5220\u9664\u547d\u4ee4\u7684\u57fa\u672c\u8bed\u6cd5<\/b><\/p>\n

\u5728\u6267\u884cLinux\u7cfb\u7edf<\/a>\u4e2d\u7684route del\u547d\u4ee4\u65f6\uff0c\u5fc5\u987b\u6df1\u523b\u638c\u63e1\u5176\u57fa\u672c\u8bed\u6cd5\u3002\u5176\u7b80\u7ea6\u683c\u5f0f\u4e3a\uff1a\u201croute del -net\/-host destination_address gateway\u201d\u3002\u5728\u6b64\u79cd\u683c\u5f0f\u4e2d\uff0c\"-net\"\u7528\u4e8e\u5220\u9664\u7f51\u7edc\u8def\u7531\uff0c\"-host\"\u7528\u4e8e\u6e05\u9664\u4e3b\u673a\u8def\u7531\uff1b\"destination_address\"\u6307\u5b9a\u5220\u9664\u67d0\u4e00\u8def\u7531\u7684\u76ee\u6807\u5730\u5740\uff1b\"gateway\"\u5219\u4ee3\u8868\u5bf9\u5e94\u8def\u7531\u7684\u7f51\u5173\u6807\u8bc6\u3002<\/p>\n

2.\u5220\u9664\u7279\u5b9a\u7f51\u7edc\u6216\u4e3b\u673a\u7684\u8def\u7531<\/b><\/p>\n

\u547d\u4ee4\u65b9\u5757\u83b7\u53d6\u6307\u4ee4_\u547d\u4ee4\u65b9\u5757\u6307\u4ee4_linux route del \u547d\u4ee4<\/p>\n

\u4f7f\u7528 Linux \u7cfb\u7edf\u7684 route del \u547d\u4ee4\uff0c\u53ea\u9700\u6307\u5b9a\u76ee\u6807\u5730\u5740\u548c\u7f51\u5173\u5730\u5740\uff0c\u4fbf\u53ef\u65b9\u4fbf\u5730\u5220\u9664\u7279\u5b9a\u7f51\u7edc\u6216\u4e3b\u673a\u7684\u8def\u7531\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u8981\u79fb\u9664 192.168.1.0\/24 \u7f51\u7edc\u7684\u8def\u7531\u8bbe\u7f6e\uff0c\u4f7f\u5176\u6d41\u91cf\u5747\u5bfc\u5411\u4e3a 192.168.2.1\u7684\u7f51\u5173\uff0c\u8bf7\u6309\u7167\u4e0b\u8ff0\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n

\u7b56\u7565\u63d0\u8981\uff1a\u4ec5\u9700\u5c06\u8def\u7531\u5668\u8bbe\u7f6e\u4e3a\"192.168.1.0\/24\"linux route del \u547d\u4ee4<\/strong>\uff0c\u5e76\u8bbe\u5b9a\u7f51\u5173\u5730\u5740\u4e3a\"192.168.2.1\"\u5373\u53ef\u3002<\/p>\n

3.\u5220\u9664\u9ed8\u8ba4\u8def\u7531<\/b><\/p>\n

\u501f\u52a9Linux\u5185\u6838\u7684route\u547d\u4ee4\u53bb\u5b9a\u5236\uff0c\u53ef\u8c03\u6574\u6240\u6709\u672a\u77e5\u6d41\u5411\u7684\u7f51\u7edc\u5305\u5230\u65b0\u7f51\u5173\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u8def\u7531\u3002<\/p>\n

route del default gw \u65b0\u7f51\u5173\u5730\u5740<\/p>\n

\u8fd9\u6837linux cp\uff0c\u7cfb\u7edf\u5c06\u4e0d\u518d\u4f7f\u7528\u539f\u6709\u7684\u9ed8\u8ba4\u7f51\u5173\uff0c\u800c\u662f\u4f7f\u7528\u65b0\u7684\u7f51\u5173\u3002<\/p>\n

4.\u5220\u9664\u6240\u6709\u8def\u7531<\/b><\/p>\n

\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5b8c\u5168\u6e05\u9664\u5df2\u914d\u7f6e\u7684\u8def\u7531\u6570\u636e\u3002\u4e0b\u5217\u5373\u5177\u4f53\u64cd\u4f5c\u65b9\u6cd5\uff1a<\/p>\n

route del -net 0.0.0.0\/0<\/p>\n

\u6b64\u64cd\u4f5c\u5c06\u5168\u9762\u6e05\u9664\u6240\u6709\u7f51\u7edc\u548c\u4e3b\u673a\u7684\u8def\u7531\u8bbe\u7f6e\uff0c\u5176\u5f71\u54cd\u7b49\u540c\u4e8e\u5f7b\u5e95\u6e05\u7a7a\u6240\u6709\u8def\u7531\u4fe1\u606f\u3002<\/p>\n

5.\u614e\u91cd\u64cd\u4f5c\uff0c\u907f\u514d\u8bef\u5220\u91cd\u8981\u8def\u7531<\/b><\/p>\n

\u614e\u91cd\u5bf9\u5f85Linux\u4e0b\u7684route del\u6307\u4ee4\uff0c\u907f\u514d\u5220\u9664\u91cd\u8981\u8def\u7531\u4fe1\u606f\uff0c\u5e76\u786e\u4fdd\u7406\u89e3\u64cd\u4f5c\u76ee\u6807\uff0c\u505a\u597d\u6570\u636e\u5907\u4efd\u4ee5\u9632\u6b62\u610f\u5916\u53d1\u751f\u3002<\/p>\n

\u547d\u4ee4\u65b9\u5757\u83b7\u53d6\u6307\u4ee4_\u547d\u4ee4\u65b9\u5757\u6307\u4ee4_linux route del \u547d\u4ee4<\/p>\n

6.\u9a8c\u8bc1\u8def\u7531\u662f\u5426\u5220\u9664\u6210\u529f<\/b><\/p>\n

\u68c0\u9a8c\u8def\u7531\u8868\u6539\u53d8\u65b9\u80fd\u9a8c\u8bc1\u64cd\u4f5c\u7ed3\u679c\u3002\u91cd\u8981\u73af\u8282\u5305\u62ec\u786e\u8ba4\u8def\u7531\u8868\u4e2d\u7684\u76ee\u6807\u5730\u5740\u4e0e\u7f51\u5173IP\u5df2\u6210\u529f\u6e05\u7406\u3002<\/p>\n

7.\u7ed3\u5408\u5176\u4ed6\u547d\u4ee4\u8fdb\u884c\u9ad8\u7ea7\u64cd\u4f5c<\/b><\/p>\n

\u5728Linux\u7cfb\u7edf\u73af\u5883\u4e2d\uff0c\u9664\u76f4\u63a5\u4f7f\u7528route del\u547d\u4ee4\u5916\uff0c\u8fd8\u53ef\u8fd0\u7528\u591a\u79cd\u7ec4\u5408\u7b56\u7565\u4ee5\u5b9e\u73b0\u9ad8\u6548\u4e14\u7cbe\u7ec6\u5316\u7684\u8def\u7531\u63a7\u5236\u3002\u4f8b\u5982\uff0c\u91c7\u7528feb21590c094ace3831686a026ab4283\u6307\u4ee4\u6dfb\u52a0\u65b0\u8def\u7531\u914d\u7f6e\uff0c\u968f\u540e\u5229\u7528route del\u8fdb\u884c\u6e05\u9664\u539f\u6709\u8def\u7531\uff0c\u786e\u4fdd\u7f51\u7edc\u6d41\u91cf\u65e0\u7f1d\u8f6c\u63a5\u3002<\/p>\n

\u547d\u4ee4\u65b9\u5757\u6307\u4ee4_linux route del \u547d\u4ee4_\u547d\u4ee4\u65b9\u5757\u83b7\u53d6\u6307\u4ee4<\/p>\n

\u6df1\u5165\u7406\u89e3\u5e76\u719f\u7ec3\u638c\u63e1Linux\u7cfb\u7edf\u8def\u7531\u5220\u9664\u6280\u5de7\uff0c\u5bf9\u63d0\u5347Linux\u7cfb\u7edf\u7ba1\u7406\u80fd\u529b\u5927\u6709\u88e8\u76ca\uff0c\u540c\u65f6\u4e5f\u6709\u52a9\u4e8e\u65e5\u5e38\u5b66\u4e60\u4e0e\u5b9e\u6218\u8868\u73b0\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u6b64\u9879\u64cd\u4f5c\u5e94\u8c28\u614e\u8fdb\u884c\uff0c\u4ee5\u9632\u610f\u5916\u53d1\u751f\uff1b\u540c\u6642\uff0c\u4e5f\u9700\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u5236\u5b9a\u76f8\u5173\u7684\u8def\u7531\u6d88\u51cf\u7b56\u7565\u3002<\/p>\n

\u53c2\u8003\u8d44\u6599\uff1a<\/b><\/p>\n

- Linux Man Pages: route<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u7ea2\u5e3dLinux\u73af\u5883\u4e0b\uff0croutedel\u547d\u4ee4\u88ab\u89c6\u4e3a\u7f51\u7edc\u6d41\u91cf\u8c03\u63a7\u4e0e\u7ba1\u7406\u7684\u5f97\u529b\u52a9\u624b\u3002\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5b8c\u5168\u6e05\u9664\u5df2\u914d\u7f6e\u7684\u8def\u7531\u6570\u636e\u3002del\u547d\u4ee4\u5916\uff0c\u8fd8\u53ef\u8fd0\u7528\u591a\u79cd\u7ec4\u5408\u7b56\u7565\u4ee5\u5b9e\u73b0\u9ad8\u6548\u4e14\u7cbe\u7ec6\u5316\u7684\u8def\u7531\u63a7\u5236\u3002del\u8fdb\u884c\u6e05\u9664\u539f\u6709\u8def\u7531\uff0c\u786e\u4fdd\u7f51\u7edc\u6d41\u91cf\u65e0\u7f1d\u8f6c\u63a5\u3002<\/p>\n","protected":false},"author":1,"featured_media":290230,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-290229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290229","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=290229"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290229\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/290230"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=290229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=290229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=290229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}