Linux<\/a>\u7cfb\u7edf\u4e2d\u8bbe\u7f6e\u8def\u7531\u4e00\u822c\u662f\u4e3a\u4e86\u89e3\u51b3\u4ee5\u4e0b\u95ee\u9898\uff1a\u8be5Linux\u7cfb\u7edf\u5728\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\uff0c\u5c40\u57df\u7f51\u4e2d\u6709\u4e00\u4e2a\u7f51\u6bb5\uff0c\u624d\u80fd\u8ba9\u673a\u5668\u8bbf\u95eeInternet\uff0c\u8fd9\u4e48\u5c31\u987b\u8981\u5c06\u8fd9\u53f0\u673a\u5668\u7684ip\u5730\u5740\u8bbe\u7f6e\u4e3aLinux\u673a\u5668\u7684\u9ed8\u8ba4\u8def\u7531\u3002<\/p>\n<\/p>\n
linux\u670d\u52a1\u5668\u600e\u4e48\u6dfb\u52a0\u6c38\u4e45\u9ed8\u8ba4\u7f51\u6bb5<\/p>\n
linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u6bb5\uff1a\u9996\u5148\u7528\u6237\u987b\u8981\u4f7f\u7528xshell\u767b\u9646\u6211\u4eec\u7684linux\u670d\u52a1\u5668\u3002\u4e4b\u540e\u4f7f\u7528route-n\u67e5\u770b\u672c\u673a\u7684\u8def\u7531\u8868\uff0c\u89c1\u5230\u672c\u673a\u6ca1\u6709\u9ed8\u8ba4\u8def\u7531\u3002<\/p>\n
\u9996\u5148\u767b\u5165\u8054\u63a5linux\u7cfb\u7edf\uff0c\u8f93\u5165fconfig\u53ef\u4ee5\u67e5\u770b\u5230\u5f53\u524d\u672c\u673a\u7684IP\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u770b\u89c1\u91cc\u9762\u67e5\u8be2IP\u5730\u5740\uff0c\u5bf9\u5e94\u7684\u7f51\u5361\u4e3aeth02\u63a5\u7740\u987b\u8981\u7f16\u8f91\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\uff0c\u4f7f\u7528VI\u7f16\u8f91\u5668\u8bbe\u7f6elinux\u547d\u4ee4\u8be6\u89e3\u8bcd\u5178\uff0c\u8f93\u5165\u6307\u4ee4\u201cvietcsysconfignetworkscriptsifcfg\u3002<\/p>\n
linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u6bb5\u53ef\u4ee5\u5229\u7528\u4e8eroute\u547d\u4ee4\u3002\u4f8b\u5982\u8981\u5c06\u5f53\u524d\u8ba1\u7b97\u673a\u7684\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u4e3a0.2\uff0c\u5219\u53ef\u4ee5\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/p>\n
<\/p>\n
linux\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u5728\u54ea<\/p>\n
1\u3001\u90e8\u52061\uff1a\u4f7f\u7528\u7ec8\u7aef\u6253\u5f00\u7ec8\u7aef\u3002\u4f60\u53ef\u4ee5\u4ece\u8fb9\u680f\u6253\u5f00\u7ec8\u7aef\u7a0b\u5e8f\uff0c\u6216\u6309\u4e0bCtrl+Alt+T\u7ec4\u5408\u952e\u6765\u6253\u5f00\u5b83\u3002\u6d4f\u89c8\u5f53\u524d\u9ed8\u8ba4\u7f51\u6bb5\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u8f93\u5165route\uff0c\u6309\u4e0bEnter\uff0c\u6765\u67e5\u770b\u5f53\u524d\u7684\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u3002<\/p>\n
2\u3001\u4e00\u822c\u6765\u8bf4\uff0cLinux\u7684\u9ed8\u8ba4\u7f51\u6bb5\u6587\u4ef6\u8bbe\u7f6e\u5728etc\u5b50\u76ee\u5f55\u4e0b\uff0c\u6587\u4ef6\u540d\u6709\u7684\u79f0\u4f5cgateway\uff0c\u6709\u7684\u79f0\u4f5crouter\u8fd9\u4e2a\u5728\u4e0d\u540c\u7684\u7248\u672c\u4e0b\uff0c\u7a0d\u7a0d\u4f1a\u6709\u70b9\u513f\u5dee\u8ddd\u3002<\/p>\n
3\u3001\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u5c06\u201c\u67e5\u770b\u65b9\u6cd5\u201d\u8bbe\u7f6e\u4e3a\u201c\u5c0f\u56fe\u6807\u201d\uff0c\u4e4b\u540e\u627e\u5230\u5e76\u70b9\u51fb\u201cInternet\u9009\u9879\u201d\u3002\u5728\u6253\u5f00\u7684\u7a97\u53e3\u4e2d\u70b9\u51fb\u201c\u66f4\u6539\u9002\u914d\u5668\u8bbe\u7f6e\u201d\u3002\u5728\u6253\u5f00\u7684\u7a97\u53e3\u4e2d\uff0c\u53f3\u51fb\u201c\u672c\u5730\u8054\u63a5\u201d\uff0c\u5728\u5f39\u51fa\u7684\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/p>\n
<\/p>\n
4\u3001\u6253\u5f00\u7ec8\u7aef\u3002\u4f60\u53ef\u4ee5\u4ece\u8fb9\u680f\u6253\u5f00\u7ec8\u7aef\u7a0b\u5e8f\uff0c\u6216\u6309\u4e0bCtrl+Alt+T\u7ec4\u5408\u952e\u6765\u6253\u5f00\u5b83\u3002\u6d4f\u89c8\u5f53\u524d\u9ed8\u8ba4\u7f51\u6bb5\u4fe1\u606f\u3002\u53ef\u4ee5\u8f93\u5165\uff0c\u6309\u4e0b\uff0c\u6765\u67e5\u770b\u5f53\u524d\u7684\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u3002<\/p>\n
5\u3001\u3010\u7535\u8111\u9ed8\u8ba4\u7f51\u6bb5\u5e38\u89c1\u95ee\u9898\u6c47\u603b\u3011\u9ed8\u8ba4\u7f51\u6bb5\u5982\u4f55\u67e5\u7684\u8be6\u5c3d\u6559\u7a0b\u7b2c\u4e00\u79cd\u65b9\u5f0f\u7b2c\u4e00\u6b65\uff1a\u70b9\u51fb\u53f3\u4e0b\u89d2\u7f51\u8def\u56fe\u6807\uff0c\u6b65\u5165\u7f51\u8def\u548cInternet\u8bbe\u7f6e\u4e2d\u5fc3\uff0c\u5728\u4ee5\u592a\u7f51\uff08\u672c\u5730\u8054\u63a5\uff09\u4e2d\u70b9\u51fb\u4fee\u6539\u9002\u914d\u5668\u9009\u9879\u3002<\/p>\n
6\u3001linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u6bb5\u53ef\u4ee5\u5229\u7528\u4e8eroute\u547d\u4ee4\u3002\u4f8b\u5982\u8981\u5c06\u5f53\u524d\u8ba1\u7b97\u673a\u7684\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u4e3a0.2\uff0c\u5219\u53ef\u4ee5\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/p>\n
linux\u4e0b\u600e\u6837\u8bbe\u7f6e\u7f51\u6bb5?<\/p>\n
1\u3001\u90e8\u52061\uff1a\u4f7f\u7528\u7ec8\u7aef\u6253\u5f00\u7ec8\u7aef\u3002\u4f60\u53ef\u4ee5\u4ece\u8fb9\u680f\u6253\u5f00\u7ec8\u7aef\u7a0b\u5e8f\uff0c\u6216\u6309\u4e0bCtrl+Alt+T\u7ec4\u5408\u952e\u6765\u6253\u5f00\u5b83\u3002\u6d4f\u89c8\u5f53\u524d\u9ed8\u8ba4\u7f51\u6bb5\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u8f93\u5165routelinux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173<\/strong>\uff0c\u6309\u4e0bEnter\uff0c\u6765\u67e5\u770b\u5f53\u524d\u7684\u9ed8\u8ba4\u7f51\u6bb5\u8bbe\u7f6e\u3002<\/p>\n2\u3001\u9996\u5148\u767b\u5165\u8054\u63a5linux\u7cfb\u7edf\uff0c\u8f93\u5165fconfig\u53ef\u4ee5\u67e5\u770b\u5230\u5f53\u524d\u672c\u673a\u7684IP\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u770b\u89c1\u91cc\u9762\u67e5\u8be2IP\u5730\u5740\uff0c\u5bf9\u5e94\u7684\u7f51\u5361\u4e3aeth02\u63a5\u7740\u987b\u8981\u7f16\u8f91\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\uff0c\u4f7f\u7528VI\u7f16\u8f91\u5668\u8bbe\u7f6e\uff0c\u8f93\u5165\u6307\u4ee4\u201cvietcsysconfignetworkscriptsifcfg\u3002<\/p>\n
3\u3001linux\u4e0b\u8bbe\u7f6e\u7f51\u6bb5\u6b65\u9aa4\u5982\u4e0b\uff1a\u4f7f\u7528xshell\u767b\u9646\u6211\u4eec\u7684linux\u670d\u52a1\u5668\uff0c\u672c\u673a\u4f7f\u7528\u7684\u662fcentos5\u3002\u4f7f\u7528route-n\u67e5\u770b\u672c\u673a\u7684\u8def\u7531\u8868\uff0c\u89c1\u5230\u672c\u673a\u6ca1\u6709\u9ed8\u8ba4\u8def\u7531\u3002<\/p>\n
\u672c\u6587\u7531Tui18\u5c0f\u7f16\u7f51\u8def\u6536\u96c6\u6574\u7406\uff0c\u8f6c\u8f7d\u4fdd\u7559\u94fe\u63a5\uff01\u7f51\u5740\uff1a<\/p>\n","protected":false},"excerpt":{"rendered":"
linux\u600e\u4e48\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u51733\u3001linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173\u53ef\u4ee5\u501f\u52a9\u4e8eroute\u547d\u4ee4\u3002linux\u670d\u52a1\u5668\u5982\u4f55\u6dfb\u52a0\u6c38\u4e45\u9ed8\u8ba4\u7f51\u5173linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173\u53ef\u4ee5\u501f\u52a9\u4e8eroute\u547d\u4ee4\u3002linux\u9ed8\u8ba4\u7f51\u5173\u8bbe\u7f6e\u5728\u54ea6\u3001linux\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173\u53ef\u4ee5\u501f\u52a9\u4e8eroute\u547d\u4ee4\u3002linux\u4e0b\u5982\u4f55\u8bbe\u7f6e\u7f51\u5173?<\/p>\n","protected":false},"author":1,"featured_media":289473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-289472","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\/289472","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=289472"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/289472\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/289473"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=289472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=289472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=289472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}