{"id":46704,"date":"2025-07-30T03:57:33","date_gmt":"2025-07-29T19:57:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/46704.html"},"modified":"2025-07-30T03:57:33","modified_gmt":"2025-07-29T19:57:33","slug":"%e3%80%90%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8e%e9%83%a8%e7%bd%b2-32%e3%80%91%e4%bb%8e%e9%9b%b6%e6%8e%8c%e6%8f%a1linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bd%91%e7%bb%9c%e9%85%8d%e7%bd%ae%ef%bc%9a%e7%bd%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/46704.html","title":{"rendered":"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357"},"content":{"rendered":"<h2>\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e&#xff1a;\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357<\/h2>\n<p>\u5173\u952e\u8bcd&#xff1a;Linux\u7f51\u7edc\u914d\u7f6e\u3001\u7f51\u7edc\u63a5\u53e3\u3001\u8def\u7531\u8868\u3001iptables\u3001\u7f51\u7edc\u6545\u969c\u6392\u9664\u3001\u670d\u52a1\u5668\u8fd0\u7ef4\u3001\u7f51\u7edc\u5b89\u5168\u3001\u7cfb\u7edf\u7ba1\u7406<\/p>\n<p>\u6458\u8981&#xff1a;\u672c\u6587\u8bb2\u89e3Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u6838\u5fc3\u6982\u5ff5\u3002\u4ece\u7f51\u7edc\u63a5\u53e3\u7684\u57fa\u7840\u6982\u5ff5\u5230\u8def\u7531\u8868\u914d\u7f6e&#xff0c;\u4ece\u9759\u6001IP\u8bbe\u7f6e\u5230\u52a8\u6001\u7f51\u7edc\u7ba1\u7406&#xff0c;\u5e2e\u52a9\u8bfb\u8005\u5168\u9762\u638c\u63e1\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u5b9e\u7528\u6280\u80fd\u3002\u65e0\u8bba\u4f60\u662f\u8fd0\u7ef4\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u7cfb\u7edf\u7ba1\u7406\u5458&#xff0c;\u90fd\u80fd\u4ece\u4e2d\u83b7\u5f97\u5b9e\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e&#xff1a;\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357<\/li>\n<li>\n<ul>\n<li>\u5f15\u8a00&#xff1a;\u4e3a\u4ec0\u4e48\u7f51\u7edc\u914d\u7f6e\u5982\u6b64\u91cd\u8981&#xff1f;<\/li>\n<li>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u7f51\u7edc\u63a5\u53e3\u57fa\u7840 &#8211; \u670d\u52a1\u5668\u7684&#034;\u7f51\u5361&#034;\u4e16\u754c<\/li>\n<li>\n<ul>\n<li>\u4ec0\u4e48\u662f\u7f51\u7edc\u63a5\u53e3&#xff1f;<\/li>\n<li>\u67e5\u770b\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f<\/li>\n<li>\u7f51\u7edc\u63a5\u53e3\u7684\u542f\u7528\u548c\u7981\u7528<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e8c\u90e8\u5206&#xff1a;IP\u5730\u5740\u914d\u7f6e &#8211; \u7ed9\u670d\u52a1\u5668\u4e00\u4e2a&#034;\u8eab\u4efd\u8bc1&#034;<\/li>\n<li>\n<ul>\n<li>\u9759\u6001IP\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>\u4e34\u65f6\u914d\u7f6e&#xff08;\u91cd\u542f\u540e\u5931\u6548&#xff09;<\/li>\n<li>\u6c38\u4e45\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<li>\u52a8\u6001IP\u914d\u7f6e&#xff08;DHCP&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e09\u90e8\u5206&#xff1a;\u8def\u7531\u914d\u7f6e &#8211; \u6570\u636e\u5305\u7684&#034;\u5bfc\u822a\u7cfb\u7edf&#034;<\/li>\n<li>\n<ul>\n<li>\u8def\u7531\u8868\u57fa\u7840\u6982\u5ff5<\/li>\n<li>\u6dfb\u52a0\u548c\u5220\u9664\u8def\u7531<\/li>\n<li>\n<ul>\n<li>\u6dfb\u52a0\u9ed8\u8ba4\u7f51\u5173<\/li>\n<li>\u6dfb\u52a0\u9759\u6001\u8def\u7531<\/li>\n<li>\u6c38\u4e45\u8def\u7531\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<li>\u8def\u7531\u4f18\u5148\u7ea7\u548c\u5ea6\u91cf\u503c<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u56db\u90e8\u5206&#xff1a;\u7f51\u7edc\u63a5\u53e3\u9ad8\u7ea7\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>\u7f51\u7edc\u63a5\u53e3\u522b\u540d<\/li>\n<li>VLAN\u914d\u7f6e<\/li>\n<li>\u7f51\u7edc\u6865\u63a5<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e94\u90e8\u5206&#xff1a;\u7f51\u7edc\u6545\u969c\u6392\u67e5<\/li>\n<li>\n<ul>\n<li>\u57fa\u7840\u8fde\u901a\u6027\u6d4b\u8bd5<\/li>\n<li>\u7f51\u7edc\u63a5\u53e3\u72b6\u6001\u68c0\u67e5<\/li>\n<li>\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/li>\n<li>\n<ul>\n<li>\u95ee\u98981&#xff1a;\u7f51\u7edc\u63a5\u53e3\u65e0\u6cd5\u542f\u52a8<\/li>\n<li>\u95ee\u98982&#xff1a;\u65e0\u6cd5\u83b7\u53d6DHCP\u5730\u5740<\/li>\n<li>\u95ee\u98983&#xff1a;DNS\u89e3\u6790\u5931\u8d25<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u516d\u90e8\u5206&#xff1a;\u7f51\u7edc\u5b89\u5168\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>\u9632\u706b\u5899\u914d\u7f6e\u57fa\u7840<\/li>\n<li>\n<ul>\n<li>iptables\u57fa\u7840\u89c4\u5219<\/li>\n<li>UFW&#xff08;Ubuntu\u9632\u706b\u5899&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u7f51\u7edc\u8bbf\u95ee\u63a7\u5236<\/li>\n<li>\n<ul>\n<li>\u57fa\u4e8e\u6e90IP\u7684\u8bbf\u95ee\u63a7\u5236<\/li>\n<li>\u7aef\u53e3\u6572\u95e8&#xff08;Port Knocking&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e03\u90e8\u5206&#xff1a;\u6027\u80fd\u4f18\u5316\u548c\u76d1\u63a7<\/li>\n<li>\n<ul>\n<li>\u7f51\u7edc\u6027\u80fd\u76d1\u63a7<\/li>\n<li>\u7f51\u7edc\u53c2\u6570\u4f18\u5316<\/li>\n<li>\n<ul>\n<li>TCP\u53c2\u6570\u8c03\u4f18<\/li>\n<li>\u7f51\u7edc\u961f\u5217\u4f18\u5316<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u516b\u90e8\u5206&#xff1a;\u81ea\u52a8\u5316\u548c\u811a\u672c<\/li>\n<li>\n<ul>\n<li>\u7f51\u7edc\u914d\u7f6e\u68c0\u67e5\u811a\u672c<\/li>\n<li>\u7f51\u7edc\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9e\u6218\u6848\u4f8b&#xff1a;\u591a\u7f51\u5361\u670d\u52a1\u5668\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>\u573a\u666f\u63cf\u8ff0<\/li>\n<li>\u914d\u7f6e\u6b65\u9aa4<\/li>\n<li>\n<ul>\n<li>1. \u7f51\u7edc\u63a5\u53e3\u914d\u7f6e<\/li>\n<li>2. \u8def\u7531\u914d\u7f6e<\/li>\n<li>3. \u9632\u706b\u5899\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/li>\n<li>\n<ul>\n<li>\u5173\u952e\u8981\u70b9\u56de\u987e<\/li>\n<li>\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/li>\n<li>\n<ul>\n<li>1. \u914d\u7f6e\u7ba1\u7406<\/li>\n<li>2. \u5b89\u5168\u8003\u8651<\/li>\n<li>3. \u6027\u80fd\u4f18\u5316<\/li>\n<li>4. \u6545\u969c\u9884\u9632<\/li>\n<\/ul>\n<\/li>\n<li>\u8fdb\u9636\u5b66\u4e60\u65b9\u5411<\/li>\n<\/ul>\n<\/li>\n<li>\u53c2\u8003\u8d44\u6599<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u5f15\u8a00&#xff1a;\u4e3a\u4ec0\u4e48\u7f51\u7edc\u914d\u7f6e\u5982\u6b64\u91cd\u8981&#xff1f;<\/h3>\n<p>\u60f3\u8c61\u4e00\u4e0b&#xff0c;\u4f60\u7684\u670d\u52a1\u5668\u5c31\u50cf\u4e00\u5ea7\u57ce\u5e02&#xff0c;\u800c\u7f51\u7edc\u914d\u7f6e\u5c31\u662f\u8fd9\u5ea7\u57ce\u5e02\u7684\u4ea4\u901a\u7cfb\u7edf\u3002\u6ca1\u6709\u5408\u7406\u7684\u9053\u8def\u89c4\u5212\u548c\u4ea4\u901a\u89c4\u5219&#xff0c;\u8f66\u8f86\u5c31\u65e0\u6cd5\u987a\u7545\u901a\u884c&#xff1b;\u540c\u6837&#xff0c;\u6ca1\u6709\u6b63\u786e\u7684\u7f51\u7edc\u914d\u7f6e&#xff0c;\u6570\u636e\u5305\u5c31\u65e0\u6cd5\u5728\u7f51\u7edc\u4e2d\u6b63\u786e\u4f20\u8f93\u3002<\/p>\n<p>\u5728\u73b0\u4ee3\u4e92\u8054\u7f51\u65f6\u4ee3&#xff0c;\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u76f4\u63a5\u5f71\u54cd\u7740&#xff1a;<\/p>\n<ul>\n<li>\u670d\u52a1\u53ef\u7528\u6027&#xff1a;\u7528\u6237\u80fd\u5426\u6b63\u5e38\u8bbf\u95ee\u4f60\u7684\u5e94\u7528<\/li>\n<li>\u6570\u636e\u5b89\u5168&#xff1a;\u654f\u611f\u4fe1\u606f\u662f\u5426\u80fd\u5f97\u5230\u4fdd\u62a4<\/li>\n<li>\u7cfb\u7edf\u6027\u80fd&#xff1a;\u7f51\u7edc\u5ef6\u8fdf\u548c\u541e\u5410\u91cf\u7684\u4f18\u5316<\/li>\n<li>\u6545\u969c\u6392\u67e5&#xff1a;\u95ee\u9898\u53d1\u751f\u65f6\u80fd\u5426\u5feb\u901f\u5b9a\u4f4d<\/li>\n<\/ul>\n<p>\u4eca\u5929&#xff0c;\u6211\u4eec\u5c31\u6765\u6df1\u5165\u4e86\u89e3Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u65b9\u65b9\u9762\u9762\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195728-688927a82a150.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u7f51\u7edc\u63a5\u53e3\u57fa\u7840 &#8211; \u670d\u52a1\u5668\u7684&#034;\u7f51\u5361&#034;\u4e16\u754c<\/h3>\n<h4>\u4ec0\u4e48\u662f\u7f51\u7edc\u63a5\u53e3&#xff1f;<\/h4>\n<p>\u7f51\u7edc\u63a5\u53e3\u5c31\u50cf\u662f\u670d\u52a1\u5668\u7684&#034;\u5634\u5df4&#034;&#xff0c;\u5b83\u8d1f\u8d23\u4e0e\u5916\u754c\u8fdb\u884c\u6570\u636e\u4ea4\u6d41\u3002\u6bcf\u4e2a\u7f51\u7edc\u63a5\u53e3\u90fd\u6709\u81ea\u5df1\u7684&#034;\u8eab\u4efd\u8bc1&#034;&#xff08;MAC\u5730\u5740&#xff09;\u548c&#034;\u95e8\u724c\u53f7&#034;&#xff08;IP\u5730\u5740&#xff09;\u3002<\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d&#xff0c;\u5e38\u89c1\u7684\u7f51\u7edc\u63a5\u53e3\u7c7b\u578b\u5305\u62ec&#xff1a;<\/p>\n<li>\u7269\u7406\u7f51\u7edc\u63a5\u53e3&#xff08;\u5982 eth0, ens33&#xff09;<\/li>\n<li>\u865a\u62df\u7f51\u7edc\u63a5\u53e3&#xff08;\u5982 lo, tun0&#xff09;<\/li>\n<li>\u6865\u63a5\u63a5\u53e3&#xff08;\u5982 br0&#xff09;<\/li>\n<li>VLAN\u63a5\u53e3&#xff08;\u5982 eth0.100&#xff09;<\/li>\n<h4>\u67e5\u770b\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f<\/h4>\n<p>\u8ba9\u6211\u4eec\u4ece\u6700\u57fa\u672c\u7684\u547d\u4ee4\u5f00\u59cb&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">ip<\/span> addr show<br \/>\n<span class=\"token comment\"># \u6216\u8005\u4f7f\u7528\u7b80\u5199<\/span><br \/>\n<span class=\"token function\">ip<\/span> a<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7279\u5b9a\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">ip<\/span> addr show eth0<\/p>\n<p><span class=\"token comment\"># \u4f20\u7edf\u547d\u4ee4&#xff08;\u4ecd\u7136\u53ef\u7528&#xff09;<\/span><br \/>\n<span class=\"token function\">ifconfig<\/span><\/p>\n<p>\u5b9e\u9645\u8f93\u51fa\u793a\u4f8b&#xff1a;<\/p>\n<p>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN<br \/>\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br \/>\n    inet 127.0.0.1\/8 scope host lo<\/p>\n<p>2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP<br \/>\n    link\/ether 08:00:27:12:34:56 brd ff:ff:ff:ff:ff:ff<br \/>\n    inet 192.168.1.100\/24 brd 192.168.1.255 scope global eth0<\/p>\n<p>\u8fd9\u4e9b\u4fe1\u606f\u544a\u8bc9\u6211\u4eec\u4ec0\u4e48&#xff1f;<\/p>\n<ul>\n<li>lo&#xff1a;\u56de\u73af\u63a5\u53e3&#xff0c;\u7528\u4e8e\u672c\u5730\u901a\u4fe1<\/li>\n<li>eth0&#xff1a;\u7b2c\u4e00\u5757\u4ee5\u592a\u7f51\u5361<\/li>\n<li>UP&#xff1a;\u63a5\u53e3\u5904\u4e8e\u542f\u7528\u72b6\u6001<\/li>\n<li>192.168.1.100\/24&#xff1a;IP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801<\/li>\n<li>08:00:27:12:34:56&#xff1a;MAC\u5730\u5740<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195729-688927a9c6f1d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u7f51\u7edc\u63a5\u53e3\u7684\u542f\u7528\u548c\u7981\u7528<\/h4>\n<p><span class=\"token comment\"># \u542f\u7528\u7f51\u7edc\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> eth0 up<\/p>\n<p><span class=\"token comment\"># \u7981\u7528\u7f51\u7edc\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> eth0 down<\/p>\n<p><span class=\"token comment\"># \u4f20\u7edf\u65b9\u6cd5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ifconfig<\/span> eth0 up<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ifconfig<\/span> eth0 down<\/p>\n<p>\u5b9e\u9645\u5e94\u7528\u573a\u666f&#xff1a; \u5f53\u4f60\u9700\u8981\u66f4\u6362\u7f51\u7ebf\u6216\u8005\u6392\u67e5\u7f51\u7edc\u6545\u969c\u65f6&#xff0c;\u4e34\u65f6\u7981\u7528\u7f51\u7edc\u63a5\u53e3\u53ef\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u7f51\u7edc\u51b2\u7a81\u3002<\/p>\n<h3>\u7b2c\u4e8c\u90e8\u5206&#xff1a;IP\u5730\u5740\u914d\u7f6e &#8211; \u7ed9\u670d\u52a1\u5668\u4e00\u4e2a&#034;\u8eab\u4efd\u8bc1&#034;<\/h3>\n<h4>\u9759\u6001IP\u914d\u7f6e<\/h4>\n<p>\u9759\u6001IP\u5c31\u50cf\u7ed9\u4f60\u7684\u623f\u5b50\u4e00\u4e2a\u56fa\u5b9a\u95e8\u724c\u53f7&#xff0c;\u65e0\u8bba\u4ec0\u4e48\u65f6\u5019\u522b\u4eba\u90fd\u80fd\u901a\u8fc7\u8fd9\u4e2a\u5730\u5740\u627e\u5230\u4f60\u3002<\/p>\n<h5>\u4e34\u65f6\u914d\u7f6e&#xff08;\u91cd\u542f\u540e\u5931\u6548&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u6dfb\u52a0IP\u5730\u5740<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.100\/24 dev eth0<\/p>\n<p><span class=\"token comment\"># \u5220\u9664IP\u5730\u5740<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr del <span class=\"token number\">192.168<\/span>.1.100\/24 dev eth0<\/p>\n<p><span class=\"token comment\"># \u4f20\u7edf\u65b9\u6cd5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ifconfig<\/span> eth0 <span class=\"token number\">192.168<\/span>.1.100 netmask <span class=\"token number\">255.255<\/span>.255.0<\/p>\n<h5>\u6c38\u4e45\u914d\u7f6e<\/h5>\n<p>Ubuntu\/Debian \u7cfb\u7edf&#xff08;\u4f7f\u7528 Netplan&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \/etc\/netplan\/01-network-manager-all.yaml<\/span><br \/>\n<span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">renderer<\/span><span class=\"token punctuation\">:<\/span> networkd<br \/>\n  <span class=\"token key atrule\">ethernets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">eth0<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">dhcp4<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">false<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> 192.168.1.100\/24<br \/>\n      <span class=\"token key atrule\">gateway4<\/span><span class=\"token punctuation\">:<\/span> 192.168.1.1<br \/>\n      <span class=\"token key atrule\">nameservers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>8.8.8.8<span class=\"token punctuation\">,<\/span> 8.8.4.4<span class=\"token punctuation\">]<\/span><\/p>\n<p>\u5e94\u7528\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> netplan apply<\/p>\n<p>CentOS\/RHEL \u7cfb\u7edf&#xff1a;<\/p>\n<p><span class=\"token comment\"># \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span><br \/>\n<span class=\"token assign-left variable\">TYPE<\/span><span class=\"token operator\">&#061;<\/span>Ethernet<br \/>\n<span class=\"token assign-left variable\">BOOTPROTO<\/span><span class=\"token operator\">&#061;<\/span>static<br \/>\n<span class=\"token assign-left variable\">DEFROUTE<\/span><span class=\"token operator\">&#061;<\/span>yes<br \/>\n<span class=\"token assign-left variable\">IPV4_FAILURE_FATAL<\/span><span class=\"token operator\">&#061;<\/span>no<br \/>\n<span class=\"token assign-left variable\">IPV6INIT<\/span><span class=\"token operator\">&#061;<\/span>yes<br \/>\n<span class=\"token assign-left variable\">IPV6_AUTOCONF<\/span><span class=\"token operator\">&#061;<\/span>yes<br \/>\n<span class=\"token assign-left variable\">IPV6_DEFROUTE<\/span><span class=\"token operator\">&#061;<\/span>yes<br \/>\n<span class=\"token assign-left variable\">IPV6_FAILURE_FATAL<\/span><span class=\"token operator\">&#061;<\/span>no<br \/>\n<span class=\"token assign-left variable\">NAME<\/span><span class=\"token operator\">&#061;<\/span>eth0<br \/>\n<span class=\"token assign-left variable\">UUID<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">12345678<\/span>-1234-1234-1234-123456789abc<br \/>\n<span class=\"token assign-left variable\">DEVICE<\/span><span class=\"token operator\">&#061;<\/span>eth0<br \/>\n<span class=\"token assign-left variable\">ONBOOT<\/span><span class=\"token operator\">&#061;<\/span>yes<br \/>\n<span class=\"token assign-left variable\">IPADDR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">192.168<\/span>.1.100<br \/>\n<span class=\"token assign-left variable\">PREFIX<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">24<\/span><br \/>\n<span class=\"token assign-left variable\">GATEWAY<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">192.168<\/span>.1.1<br \/>\n<span class=\"token assign-left variable\">DNS1<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">8.8<\/span>.8.8<br \/>\n<span class=\"token assign-left variable\">DNS2<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">8.8<\/span>.4.4<\/p>\n<p>\u91cd\u542f\u7f51\u7edc\u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart network<br \/>\n<span class=\"token comment\"># \u6216\u8005<\/span><br \/>\n<span class=\"token function\">sudo<\/span> nmcli connection reload<\/p>\n<h4>\u52a8\u6001IP\u914d\u7f6e&#xff08;DHCP&#xff09;<\/h4>\n<p>DHCP\u5c31\u50cf\u9152\u5e97\u7684\u524d\u53f0&#xff0c;\u81ea\u52a8\u4e3a\u6bcf\u4e2a\u5ba2\u4eba\u5206\u914d\u623f\u95f4\u53f7\u3002<\/p>\n<p><span class=\"token comment\"># \u542f\u7528DHCP<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dhclient eth0<\/p>\n<p><span class=\"token comment\"># \u91ca\u653eDHCP\u5206\u914d\u7684IP<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dhclient -r eth0<\/p>\n<p>Netplan\u914d\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">ethernets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">eth0<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">dhcp4<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n      <span class=\"token key atrule\">dhcp6<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195730-688927aaad327.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u7b2c\u4e09\u90e8\u5206&#xff1a;\u8def\u7531\u914d\u7f6e &#8211; \u6570\u636e\u5305\u7684&#034;\u5bfc\u822a\u7cfb\u7edf&#034;<\/h3>\n<h4>\u8def\u7531\u8868\u57fa\u7840\u6982\u5ff5<\/h4>\n<p>\u8def\u7531\u8868\u5c31\u50cf\u57ce\u5e02\u7684\u4ea4\u901a\u6307\u793a\u724c&#xff0c;\u544a\u8bc9\u6570\u636e\u5305\u5e94\u8be5\u5f80\u54ea\u4e2a\u65b9\u5411\u8d70\u624d\u80fd\u5230\u8fbe\u76ee\u7684\u5730\u3002<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u8def\u7531\u8868<\/span><br \/>\n<span class=\"token function\">ip<\/span> route show<br \/>\n<span class=\"token comment\"># \u6216\u8005<\/span><br \/>\nroute -n<\/p>\n<p>\u5178\u578b\u8def\u7531\u8868\u8f93\u51fa&#xff1a;<\/p>\n<p>default via 192.168.1.1 dev eth0 proto dhcp metric 100<br \/>\n192.168.1.0\/24 dev eth0 proto kernel scope link src 192.168.1.100 metric 100<\/p>\n<p>\u8fd9\u544a\u8bc9\u6211\u4eec&#xff1a;<\/p>\n<ul>\n<li>default via 192.168.1.1&#xff1a;\u9ed8\u8ba4\u7f51\u5173\u662f 192.168.1.1<\/li>\n<li>192.168.1.0\/24 dev eth0&#xff1a;\u672c\u5730\u7f51\u7edc\u901a\u8fc7 eth0 \u63a5\u53e3<\/li>\n<\/ul>\n<h4>\u6dfb\u52a0\u548c\u5220\u9664\u8def\u7531<\/h4>\n<h5>\u6dfb\u52a0\u9ed8\u8ba4\u7f51\u5173<\/h5>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u9ed8\u8ba4\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> default via <span class=\"token number\">192.168<\/span>.1.1<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u9ed8\u8ba4\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route del default via <span class=\"token number\">192.168<\/span>.1.1<\/p>\n<h5>\u6dfb\u52a0\u9759\u6001\u8def\u7531<\/h5>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u5230\u7279\u5b9a\u7f51\u7edc\u7684\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">192.168<\/span>.1.254<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u4e3b\u673a\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">203.0<\/span>.113.12 via <span class=\"token number\">192.168<\/span>.1.254<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route del <span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">192.168<\/span>.1.254<\/p>\n<h5>\u6c38\u4e45\u8def\u7531\u914d\u7f6e<\/h5>\n<p>Ubuntu&#xff08;Netplan&#xff09;&#xff1a;<\/p>\n<p><span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">ethernets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">eth0<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>192.168.1.100\/24<span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">gateway4<\/span><span class=\"token punctuation\">:<\/span> 192.168.1.1<br \/>\n      <span class=\"token key atrule\">routes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">to<\/span><span class=\"token punctuation\">:<\/span> 10.0.0.0\/8<br \/>\n          <span class=\"token key atrule\">via<\/span><span class=\"token punctuation\">:<\/span> 192.168.1.254<br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">to<\/span><span class=\"token punctuation\">:<\/span> 172.16.0.0\/12<br \/>\n          <span class=\"token key atrule\">via<\/span><span class=\"token punctuation\">:<\/span> 192.168.1.253<\/p>\n<p>CentOS\/RHEL&#xff1a;<\/p>\n<p><span class=\"token comment\"># \/etc\/sysconfig\/network-scripts\/route-eth0<\/span><br \/>\n<span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">192.168<\/span>.1.254<br \/>\n<span class=\"token number\">172.16<\/span>.0.0\/12 via <span class=\"token number\">192.168<\/span>.1.253<\/p>\n<h4>\u8def\u7531\u4f18\u5148\u7ea7\u548c\u5ea6\u91cf\u503c<\/h4>\n<p>\u5f53\u6709\u591a\u6761\u8def\u7531\u5230\u8fbe\u540c\u4e00\u76ee\u6807\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u6839\u636e\u5ea6\u91cf\u503c&#xff08;metric&#xff09;\u9009\u62e9\u6700\u4f18\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u5e26\u5ea6\u91cf\u503c\u7684\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">192.168<\/span>.1.254 metric <span class=\"token number\">100<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">192.168<\/span>.1.253 metric <span class=\"token number\">200<\/span><\/p>\n<p>\u5ea6\u91cf\u503c\u8d8a\u5c0f&#xff0c;\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195731-688927ab89cf2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u7b2c\u56db\u90e8\u5206&#xff1a;\u7f51\u7edc\u63a5\u53e3\u9ad8\u7ea7\u914d\u7f6e<\/h3>\n<h4>\u7f51\u7edc\u63a5\u53e3\u522b\u540d<\/h4>\n<p>\u4e00\u4e2a\u7269\u7406\u63a5\u53e3\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aIP\u5730\u5740&#xff0c;\u5c31\u50cf\u4e00\u4e2a\u4eba\u53ef\u4ee5\u6709\u591a\u4e2a\u7535\u8bdd\u53f7\u7801&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u63a5\u53e3\u522b\u540d<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.101\/24 dev eth0 label eth0:0<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.102\/24 dev eth0 label eth0:1<\/p>\n<p><span class=\"token comment\"># \u4f20\u7edf\u65b9\u6cd5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ifconfig<\/span> eth0:0 <span class=\"token number\">192.168<\/span>.1.101 netmask <span class=\"token number\">255.255<\/span>.255.0<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ifconfig<\/span> eth0:1 <span class=\"token number\">192.168<\/span>.1.102 netmask <span class=\"token number\">255.255<\/span>.255.0<\/p>\n<h4>VLAN\u914d\u7f6e<\/h4>\n<p>VLAN&#xff08;\u865a\u62df\u5c40\u57df\u7f51&#xff09;\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u7269\u7406\u7f51\u7edc\u4e0a\u521b\u5efa\u591a\u4e2a\u903b\u8f91\u7f51\u7edc&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u521b\u5efaVLAN\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token function\">add<\/span> <span class=\"token function\">link<\/span> eth0 name eth0.100 <span class=\"token builtin class-name\">type<\/span> vlan <span class=\"token function\">id<\/span> <span class=\"token number\">100<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.100.1\/24 dev eth0.100<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> dev eth0.100 up<\/p>\n<p><span class=\"token comment\"># \u5220\u9664VLAN\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> delete eth0.100<\/p>\n<h4>\u7f51\u7edc\u6865\u63a5<\/h4>\n<p>\u6865\u63a5\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u7f51\u7edc\u6bb5&#xff0c;\u5e38\u7528\u4e8e\u865a\u62df\u5316\u73af\u5883&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u6865\u63a5\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token function\">add<\/span> name br0 <span class=\"token builtin class-name\">type<\/span> bridge<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> dev br0 up<\/p>\n<p><span class=\"token comment\"># \u5c06\u7269\u7406\u63a5\u53e3\u52a0\u5165\u6865\u63a5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> dev eth0 master br0<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e\u6865\u63a5IP\u5730\u5740<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> addr <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.100\/24 dev br0<\/p>\n<h3>\u7b2c\u4e94\u90e8\u5206&#xff1a;\u7f51\u7edc\u6545\u969c\u6392\u67e5<\/h3>\n<h4>\u57fa\u7840\u8fde\u901a\u6027\u6d4b\u8bd5<\/h4>\n<p><span class=\"token comment\"># \u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a\u6027<\/span><br \/>\n<span class=\"token function\">ping<\/span> -c <span class=\"token number\">4<\/span> <span class=\"token number\">8.8<\/span>.8.8<\/p>\n<p><span class=\"token comment\"># \u6d4b\u8bd5DNS\u89e3\u6790<\/span><br \/>\n<span class=\"token function\">nslookup<\/span> google.com<br \/>\n<span class=\"token function\">dig<\/span> google.com<\/p>\n<p><span class=\"token comment\"># \u8ddf\u8e2a\u8def\u7531\u8def\u5f84<\/span><br \/>\n<span class=\"token function\">traceroute<\/span> google.com<br \/>\n<span class=\"token comment\"># \u6216\u8005<\/span><br \/>\n<span class=\"token function\">mtr<\/span> google.com<\/p>\n<h4>\u7f51\u7edc\u63a5\u53e3\u72b6\u6001\u68c0\u67e5<\/h4>\n<p><span class=\"token comment\"># \u68c0\u67e5\u63a5\u53e3\u7edf\u8ba1\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">ip<\/span> -s <span class=\"token function\">link<\/span> show eth0<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7f51\u7edc\u8fde\u63a5\u72b6\u6001<\/span><br \/>\nss -tuln<br \/>\n<span class=\"token comment\"># \u6216\u8005\u4f20\u7edf\u547d\u4ee4<\/span><br \/>\n<span class=\"token function\">netstat<\/span> -tuln<\/p>\n<h4>\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h4>\n<h5>\u95ee\u98981&#xff1a;\u7f51\u7edc\u63a5\u53e3\u65e0\u6cd5\u542f\u52a8<\/h5>\n<p><span class=\"token comment\"># \u68c0\u67e5\u63a5\u53e3\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> show eth0<\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u9a71\u52a8\u7a0b\u5e8f<\/span><br \/>\nlspci <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -i ethernet<br \/>\nlsmod <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -i network<\/p>\n<p><span class=\"token comment\"># \u91cd\u65b0\u52a0\u8f7d\u7f51\u7edc\u6a21\u5757<\/span><br \/>\n<span class=\"token function\">sudo<\/span> modprobe -r e1000e<br \/>\n<span class=\"token function\">sudo<\/span> modprobe e1000e<\/p>\n<h5>\u95ee\u98982&#xff1a;\u65e0\u6cd5\u83b7\u53d6DHCP\u5730\u5740<\/h5>\n<p><span class=\"token comment\"># \u68c0\u67e5DHCP\u5ba2\u6237\u7aef\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl status dhclient<\/p>\n<p><span class=\"token comment\"># \u624b\u52a8\u8bf7\u6c42DHCP<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dhclient -v eth0<\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5DHCP\u65e5\u5fd7<\/span><br \/>\n<span class=\"token function\">sudo<\/span> journalctl -u dhclient<\/p>\n<h5>\u95ee\u98983&#xff1a;DNS\u89e3\u6790\u5931\u8d25<\/h5>\n<p><span class=\"token comment\"># \u68c0\u67e5DNS\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/etc\/resolv.conf<\/p>\n<p><span class=\"token comment\"># \u6d4b\u8bd5DNS\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token function\">nslookup<\/span> google.com <span class=\"token number\">8.8<\/span>.8.8<\/p>\n<p><span class=\"token comment\"># \u5237\u65b0DNS\u7f13\u5b58<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart systemd-resolved<\/p>\n<h3>\u7b2c\u516d\u90e8\u5206&#xff1a;\u7f51\u7edc\u5b89\u5168\u914d\u7f6e<\/h3>\n<h4>\u9632\u706b\u5899\u914d\u7f6e\u57fa\u7840<\/h4>\n<h5>iptables\u57fa\u7840\u89c4\u5219<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f53\u524d\u89c4\u5219<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -L -n -v<\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8SSH\u8fde\u63a5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j ACCEPT<\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8HTTP\u548cHTTPS<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p tcp &#8211;dport <span class=\"token number\">80<\/span> -j ACCEPT<br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p tcp &#8211;dport <span class=\"token number\">443<\/span> -j ACCEPT<\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8ping<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p icmp -j ACCEPT<\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8\u56de\u73af\u63a5\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i lo -j ACCEPT<\/p>\n<p><span class=\"token comment\"># \u9ed8\u8ba4\u62d2\u7edd\u6240\u6709\u5165\u7ad9\u8fde\u63a5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -P INPUT DROP<\/p>\n<h5>UFW&#xff08;Ubuntu\u9632\u706b\u5899&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u542f\u7528UFW<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw <span class=\"token builtin class-name\">enable<\/span><\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8SSH<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token function\">ssh<\/span><\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8\u7279\u5b9a\u7aef\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">80<\/span>\/tcp<br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">443<\/span>\/tcp<\/p>\n<p><span class=\"token comment\"># \u5141\u8bb8\u7279\u5b9aIP\u5730\u5740<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow from <span class=\"token number\">192.168<\/span>.1.100<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u89c4\u5219\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw status verbose<\/p>\n<h4>\u7f51\u7edc\u8bbf\u95ee\u63a7\u5236<\/h4>\n<h5>\u57fa\u4e8e\u6e90IP\u7684\u8bbf\u95ee\u63a7\u5236<\/h5>\n<p><span class=\"token comment\"># \u53ea\u5141\u8bb8\u7279\u5b9a\u7f51\u6bb5\u8bbf\u95eeSSH<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p tcp -s <span class=\"token number\">192.168<\/span>.1.0\/24 &#8211;dport <span class=\"token number\">22<\/span> -j ACCEPT<br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j DROP<\/p>\n<h5>\u7aef\u53e3\u6572\u95e8&#xff08;Port Knocking&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5knockd<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> knockd<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e \/etc\/knockd.conf<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>options<span class=\"token punctuation\">]<\/span><br \/>\n    UseSyslog<\/p>\n<p><span class=\"token punctuation\">[<\/span>openSSH<span class=\"token punctuation\">]<\/span><br \/>\n    sequence    <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">7000,8000<\/span>,9000<br \/>\n    seq_timeout <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">5<\/span><br \/>\n    <span class=\"token builtin class-name\">command<\/span>     <span class=\"token operator\">&#061;<\/span> \/sbin\/iptables -A INPUT -s %IP% -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j ACCEPT<br \/>\n    tcpflags    <span class=\"token operator\">&#061;<\/span> syn<\/p>\n<p><span class=\"token punctuation\">[<\/span>closeSSH<span class=\"token punctuation\">]<\/span><br \/>\n    sequence    <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">9000,8000<\/span>,7000<br \/>\n    seq_timeout <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">5<\/span><br \/>\n    <span class=\"token builtin class-name\">command<\/span>     <span class=\"token operator\">&#061;<\/span> \/sbin\/iptables -D INPUT -s %IP% -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j ACCEPT<br \/>\n    tcpflags    <span class=\"token operator\">&#061;<\/span> syn<\/p>\n<h3>\u7b2c\u4e03\u90e8\u5206&#xff1a;\u6027\u80fd\u4f18\u5316\u548c\u76d1\u63a7<\/h3>\n<h4>\u7f51\u7edc\u6027\u80fd\u76d1\u63a7<\/h4>\n<p><span class=\"token comment\"># \u5b9e\u65f6\u76d1\u63a7\u7f51\u7edc\u6d41\u91cf<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iftop<\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">watch<\/span> -n <span class=\"token number\">1<\/span> <span class=\"token string\">&#039;cat \/proc\/net\/dev&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528nload\u76d1\u63a7\u5e26\u5bbd<\/span><br \/>\nnload eth0<\/p>\n<p><span class=\"token comment\"># \u7f51\u7edc\u8fde\u63a5\u76d1\u63a7<\/span><br \/>\n<span class=\"token function\">watch<\/span> -n <span class=\"token number\">1<\/span> <span class=\"token string\">&#039;ss -s&#039;<\/span><\/p>\n<h4>\u7f51\u7edc\u53c2\u6570\u4f18\u5316<\/h4>\n<h5>TCP\u53c2\u6570\u8c03\u4f18<\/h5>\n<p><span class=\"token comment\"># \u7f16\u8f91 \/etc\/sysctl.conf<\/span><br \/>\nnet.core.rmem_max <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">16777216<\/span><br \/>\nnet.core.wmem_max <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">16777216<\/span><br \/>\nnet.ipv4.tcp_rmem <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">4096<\/span> <span class=\"token number\">12582912<\/span> <span class=\"token number\">16777216<\/span><br \/>\nnet.ipv4.tcp_wmem <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">4096<\/span> <span class=\"token number\">12582912<\/span> <span class=\"token number\">16777216<\/span><br \/>\nnet.ipv4.tcp_window_scaling <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\nnet.ipv4.tcp_timestamps <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\nnet.ipv4.tcp_sack <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1<\/span><\/p>\n<p><span class=\"token comment\"># \u5e94\u7528\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">sudo<\/span> sysctl -p<\/p>\n<h5>\u7f51\u7edc\u961f\u5217\u4f18\u5316<\/h5>\n<p><span class=\"token comment\"># \u589e\u52a0\u7f51\u7edc\u63a5\u53e3\u961f\u5217\u957f\u5ea6<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> <span class=\"token function\">link<\/span> <span class=\"token builtin class-name\">set<\/span> dev eth0 txqueuelen <span class=\"token number\">1000<\/span><\/p>\n<p><span class=\"token comment\"># \u8c03\u6574\u4e2d\u65ad\u5904\u7406<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token number\">2<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/proc\/irq\/24\/smp_affinity<\/p>\n<h3>\u7b2c\u516b\u90e8\u5206&#xff1a;\u81ea\u52a8\u5316\u548c\u811a\u672c<\/h3>\n<h4>\u7f51\u7edc\u914d\u7f6e\u68c0\u67e5\u811a\u672c<\/h4>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\"># network_check.sh<\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;&#061;&#061;&#061; \u7f51\u7edc\u914d\u7f6e\u68c0\u67e5 &#061;&#061;&#061;&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u7f51\u7edc\u63a5\u53e3<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;1. \u7f51\u7edc\u63a5\u53e3\u72b6\u6001&#xff1a;&#034;<\/span><br \/>\n<span class=\"token function\">ip<\/span> addr show <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -E <span class=\"token string\">&#034;^[0-9]|inet &#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u8def\u7531\u8868<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>2. \u8def\u7531\u8868&#xff1a;&#034;<\/span><br \/>\n<span class=\"token function\">ip<\/span> route show<\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5DNS<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>3. DNS\u914d\u7f6e&#xff1a;&#034;<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/etc\/resolv.conf<\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u8fde\u901a\u6027<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>4. \u7f51\u7edc\u8fde\u901a\u6027\u6d4b\u8bd5&#xff1a;&#034;<\/span><br \/>\n<span class=\"token function\">ping<\/span> -c <span class=\"token number\">1<\/span> <span class=\"token number\">8.8<\/span>.8.8 <span class=\"token operator\">&gt;<\/span>\/dev\/null <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Internet: OK&#034;<\/span> <span class=\"token operator\">||<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Internet: FAILED&#034;<\/span><br \/>\n<span class=\"token function\">ping<\/span> -c <span class=\"token number\">1<\/span> <span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">ip<\/span> route <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> default <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print <span class=\"token variable\">$3<\/span>}&#039;<\/span><span class=\"token variable\">)<\/span><\/span> <span class=\"token operator\">&gt;<\/span>\/dev\/null <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Gateway: OK&#034;<\/span> <span class=\"token operator\">||<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Gateway: FAILED&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u7aef\u53e3\u76d1\u542c<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>5. \u76d1\u542c\u7aef\u53e3&#xff1a;&#034;<\/span><br \/>\nss -tuln <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> LISTEN<\/p>\n<h4>\u7f51\u7edc\u914d\u7f6e\u5907\u4efd\u811a\u672c<\/h4>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\"># backup_network_config.sh<\/span><\/p>\n<p><span class=\"token assign-left variable\">BACKUP_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/backup\/network\/<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d_%H%M%S<span class=\"token variable\">)<\/span><\/span>&#034;<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u5907\u4efd\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> \/etc\/netplan\/* <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/&#034;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<br \/>\n<span class=\"token function\">cp<\/span> \/etc\/network\/interfaces <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/&#034;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<br \/>\n<span class=\"token function\">cp<\/span> \/etc\/sysconfig\/network-scripts\/ifcfg-* <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/&#034;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<\/p>\n<p><span class=\"token comment\"># \u5907\u4efd\u8def\u7531\u8868<\/span><br \/>\n<span class=\"token function\">ip<\/span> route show <span class=\"token operator\">&gt;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/routes.txt&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u5907\u4efd\u9632\u706b\u5899\u89c4\u5219<\/span><br \/>\niptables-save <span class=\"token operator\">&gt;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/iptables.rules&#034;<\/span><\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u7f51\u7edc\u914d\u7f6e\u5df2\u5907\u4efd\u5230: <span class=\"token variable\">$BACKUP_DIR<\/span>&#034;<\/span><\/p>\n<h3>\u5b9e\u6218\u6848\u4f8b&#xff1a;\u591a\u7f51\u5361\u670d\u52a1\u5668\u914d\u7f6e<\/h3>\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u5b9e\u9645\u6848\u4f8b\u6765\u7efc\u5408\u5e94\u7528\u6240\u5b66\u77e5\u8bc6\u3002<\/p>\n<h4>\u573a\u666f\u63cf\u8ff0<\/h4>\n<p>\u4e00\u53f0\u670d\u52a1\u5668\u6709\u4e09\u5757\u7f51\u5361&#xff1a;<\/p>\n<ul>\n<li>eth0&#xff1a;\u8fde\u63a5\u5916\u7f51&#xff08;\u516c\u7f51IP&#xff09;<\/li>\n<li>eth1&#xff1a;\u8fde\u63a5\u5185\u7f51&#xff08;\u7ba1\u7406\u7f51\u7edc&#xff09;<\/li>\n<li>eth2&#xff1a;\u8fde\u63a5\u5b58\u50a8\u7f51\u7edc<\/li>\n<\/ul>\n<h4>\u914d\u7f6e\u6b65\u9aa4<\/h4>\n<h5>1. \u7f51\u7edc\u63a5\u53e3\u914d\u7f6e<\/h5>\n<p><span class=\"token comment\"># \/etc\/netplan\/01-network.yaml<\/span><br \/>\n<span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">ethernets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token comment\"># \u5916\u7f51\u63a5\u53e3<\/span><br \/>\n    <span class=\"token key atrule\">eth0<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>203.0.113.100\/24<span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">gateway4<\/span><span class=\"token punctuation\">:<\/span> 203.0.113.1<br \/>\n      <span class=\"token key atrule\">nameservers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>8.8.8.8<span class=\"token punctuation\">,<\/span> 8.8.4.4<span class=\"token punctuation\">]<\/span><\/p>\n<p>    <span class=\"token comment\"># \u5185\u7f51\u7ba1\u7406\u63a5\u53e3<\/span><br \/>\n    <span class=\"token key atrule\">eth1<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>192.168.1.100\/24<span class=\"token punctuation\">]<\/span><\/p>\n<p>    <span class=\"token comment\"># \u5b58\u50a8\u7f51\u7edc\u63a5\u53e3<\/span><br \/>\n    <span class=\"token key atrule\">eth2<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>10.0.0.100\/24<span class=\"token punctuation\">]<\/span><\/p>\n<h5>2. \u8def\u7531\u914d\u7f6e<\/h5>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u7279\u5b9a\u8def\u7531<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.0.0\/16 via <span class=\"token number\">192.168<\/span>.1.1 dev eth1<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">ip<\/span> route <span class=\"token function\">add<\/span> <span class=\"token number\">10.0<\/span>.0.0\/8 via <span class=\"token number\">10.0<\/span>.0.1 dev eth2<\/p>\n<h5>3. \u9632\u706b\u5899\u914d\u7f6e<\/h5>\n<p><span class=\"token comment\"># \u5916\u7f51\u63a5\u53e3\u53ea\u5141\u8bb8\u7279\u5b9a\u670d\u52a1<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth0 -p tcp &#8211;dport <span class=\"token number\">80<\/span> -j ACCEPT<br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth0 -p tcp &#8211;dport <span class=\"token number\">443<\/span> -j ACCEPT<br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth0 -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j DROP<\/p>\n<p><span class=\"token comment\"># \u5185\u7f51\u63a5\u53e3\u5141\u8bb8\u7ba1\u7406\u8bbf\u95ee<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth1 -p tcp &#8211;dport <span class=\"token number\">22<\/span> -j ACCEPT<br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth1 -j ACCEPT<\/p>\n<p><span class=\"token comment\"># \u5b58\u50a8\u7f51\u7edc\u63a5\u53e3\u5141\u8bb8\u5b58\u50a8\u6d41\u91cf<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth2 -p tcp &#8211;dport <span class=\"token number\">3260<\/span> -j ACCEPT  <span class=\"token comment\"># iSCSI<\/span><br \/>\n<span class=\"token function\">sudo<\/span> iptables -A INPUT -i eth2 -p tcp &#8211;dport <span class=\"token number\">2049<\/span> -j ACCEPT  <span class=\"token comment\"># NFS<\/span><\/p>\n<h3>\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60&#xff0c;\u6211\u4eec\u638c\u63e1\u4e86Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u6838\u5fc3\u6280\u80fd&#xff1a;<\/p>\n<h4>\u5173\u952e\u8981\u70b9\u56de\u987e<\/h4>\n<li>\u7f51\u7edc\u63a5\u53e3\u7ba1\u7406&#xff1a;\u7406\u89e3\u4e0d\u540c\u7c7b\u578b\u7684\u7f51\u7edc\u63a5\u53e3\u53ca\u5176\u7528\u9014<\/li>\n<li>IP\u5730\u5740\u914d\u7f6e&#xff1a;\u638c\u63e1\u9759\u6001\u548c\u52a8\u6001IP\u914d\u7f6e\u65b9\u6cd5<\/li>\n<li>\u8def\u7531\u914d\u7f6e&#xff1a;\u5b66\u4f1a\u914d\u7f6e\u8def\u7531\u8868\u548c\u7f51\u5173<\/li>\n<li>\u6545\u969c\u6392\u67e5&#xff1a;\u5177\u5907\u57fa\u7840\u7684\u7f51\u7edc\u95ee\u9898\u8bca\u65ad\u80fd\u529b<\/li>\n<li>\u5b89\u5168\u914d\u7f6e&#xff1a;\u4e86\u89e3\u57fa\u672c\u7684\u7f51\u7edc\u5b89\u5168\u9632\u62a4\u63aa\u65bd<\/li>\n<h4>\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h4>\n<h5>1. \u914d\u7f6e\u7ba1\u7406<\/h5>\n<ul>\n<li>\u7248\u672c\u63a7\u5236&#xff1a;\u5c06\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6\u7eb3\u5165\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/li>\n<li>\u6587\u6863\u8bb0\u5f55&#xff1a;\u8be6\u7ec6\u8bb0\u5f55\u6bcf\u6b21\u914d\u7f6e\u53d8\u66f4\u7684\u539f\u56e0\u548c\u5f71\u54cd<\/li>\n<li>\u5b9a\u671f\u5907\u4efd&#xff1a;\u5efa\u7acb\u81ea\u52a8\u5316\u7684\u914d\u7f6e\u5907\u4efd\u673a\u5236<\/li>\n<\/ul>\n<h5>2. \u5b89\u5168\u8003\u8651<\/h5>\n<ul>\n<li>\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff1a;\u53ea\u5f00\u653e\u5fc5\u8981\u7684\u7aef\u53e3\u548c\u670d\u52a1<\/li>\n<li>\u5b9a\u671f\u5ba1\u8ba1&#xff1a;\u5b9a\u671f\u68c0\u67e5\u7f51\u7edc\u914d\u7f6e\u548c\u5b89\u5168\u89c4\u5219<\/li>\n<li>\u76d1\u63a7\u544a\u8b66&#xff1a;\u5efa\u7acb\u7f51\u7edc\u5f02\u5e38\u76d1\u63a7\u548c\u544a\u8b66\u673a\u5236<\/li>\n<\/ul>\n<h5>3. \u6027\u80fd\u4f18\u5316<\/h5>\n<ul>\n<li>\u5e26\u5bbd\u89c4\u5212&#xff1a;\u5408\u7406\u89c4\u5212\u7f51\u7edc\u5e26\u5bbd\u5206\u914d<\/li>\n<li>\u8d1f\u8f7d\u5747\u8861&#xff1a;\u5728\u591a\u7f51\u5361\u73af\u5883\u4e0b\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861<\/li>\n<li>\u53c2\u6570\u8c03\u4f18&#xff1a;\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u7f51\u7edc\u53c2\u6570<\/li>\n<\/ul>\n<h5>4. \u6545\u969c\u9884\u9632<\/h5>\n<ul>\n<li>\u5197\u4f59\u8bbe\u8ba1&#xff1a;\u5b9e\u73b0\u7f51\u7edc\u8fde\u63a5\u7684\u5197\u4f59\u5907\u4efd<\/li>\n<li>\u5065\u5eb7\u68c0\u67e5&#xff1a;\u5b9a\u671f\u6267\u884c\u7f51\u7edc\u5065\u5eb7\u68c0\u67e5\u811a\u672c<\/li>\n<li>\u5e94\u6025\u9884\u6848&#xff1a;\u5236\u5b9a\u7f51\u7edc\u6545\u969c\u5e94\u6025\u54cd\u5e94\u9884\u6848<\/li>\n<\/ul>\n<h4>\u8fdb\u9636\u5b66\u4e60\u65b9\u5411<\/h4>\n<li>SDN&#xff08;\u8f6f\u4ef6\u5b9a\u4e49\u7f51\u7edc&#xff09;&#xff1a;\u5b66\u4e60\u73b0\u4ee3\u7f51\u7edc\u865a\u62df\u5316\u6280\u672f<\/li>\n<li>\u5bb9\u5668\u7f51\u7edc&#xff1a;\u6df1\u5165\u4e86\u89e3Docker\u548cKubernetes\u7f51\u7edc<\/li>\n<li>\u7f51\u7edc\u81ea\u52a8\u5316&#xff1a;\u4f7f\u7528Ansible\u7b49\u5de5\u5177\u5b9e\u73b0\u7f51\u7edc\u914d\u7f6e\u81ea\u52a8\u5316<\/li>\n<li>\u7f51\u7edc\u76d1\u63a7&#xff1a;\u638c\u63e1\u4e13\u4e1a\u7684\u7f51\u7edc\u76d1\u63a7\u548c\u5206\u6790\u5de5\u5177<\/li>\n<p>\u7f51\u7edc\u914d\u7f6e\u662f\u670d\u52a1\u5668\u7ba1\u7406\u7684\u57fa\u7840\u6280\u80fd&#xff0c;\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60&#xff0c;\u4f60\u80fd\u591f\u66f4\u52a0\u81ea\u4fe1\u5730\u5904\u7406\u5404\u79cd\u7f51\u7edc\u914d\u7f6e\u4efb\u52a1\u3002\u8bb0\u4f4f&#xff0c;\u5b9e\u8df5\u662f\u6700\u597d\u7684\u8001\u5e08&#xff0c;\u5efa\u8bae\u5728\u6d4b\u8bd5\u73af\u5883\u4e2d\u591a\u52a0\u7ec3\u4e60&#xff0c;\u9010\u6b65\u79ef\u7d2f\u7ecf\u9a8c\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<li>\n<p>\u5b98\u65b9\u6587\u6863<\/p>\n<ul>\n<li>Linux\u7f51\u7edc\u7ba1\u7406\u6307\u5357<\/li>\n<li>systemd-networkd\u6587\u6863<\/li>\n<li>Netplan\u5b98\u65b9\u6587\u6863<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6df1\u5165\u5b66\u4e60\u8d44\u6e90<\/p>\n<ul>\n<li>\u300aTCP\/IP\u8be6\u89e3\u300b- Richard Stevens<\/li>\n<li>\u300aLinux\u7f51\u7edc\u7f16\u7a0b\u300b- Sean Walton<\/li>\n<li>Red Hat\u7f51\u7edc\u6307\u5357<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5b9e\u7528\u5de5\u5177<\/p>\n<ul>\n<li>\u7f51\u7edc\u914d\u7f6e\u751f\u6210\u5668<\/li>\n<li>iptables\u89c4\u5219\u751f\u6210\u5668<\/li>\n<\/ul>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u672c\u6587\u8bb2\u89e3Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u6838\u5fc3\u6982\u5ff5\u3002\u4ece\u7f51\u7edc\u63a5\u53e3\u7684\u57fa\u7840\u6982\u5ff5\u5230\u8def\u7531\u8868\u914d\u7f6e\uff0c\u4ece\u9759\u6001IP\u8bbe\u7f6e\u5230\u52a8\u6001\u7f51\u7edc\u7ba1\u7406\uff0c\u5e2e\u52a9\u8bfb\u8005\u5168\u9762\u638c\u63e1\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u5b9e\u7528\u6280\u80fd\u3002\u65e0\u8bba\u4f60\u662f\u8fd0\u7ef4\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u90fd\u80fd\u4ece\u4e2d\u83b7\u5f97\u5b9e\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n","protected":false},"author":2,"featured_media":46700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,4392,43,782,78],"topic":[],"class_list":["post-46704","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-4392","tag-43","tag-782","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/46704.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u672c\u6587\u8bb2\u89e3Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u6838\u5fc3\u6982\u5ff5\u3002\u4ece\u7f51\u7edc\u63a5\u53e3\u7684\u57fa\u7840\u6982\u5ff5\u5230\u8def\u7531\u8868\u914d\u7f6e\uff0c\u4ece\u9759\u6001IP\u8bbe\u7f6e\u5230\u52a8\u6001\u7f51\u7edc\u7ba1\u7406\uff0c\u5e2e\u52a9\u8bfb\u8005\u5168\u9762\u638c\u63e1\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u5b9e\u7528\u6280\u80fd\u3002\u65e0\u8bba\u4f60\u662f\u8fd0\u7ef4\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u90fd\u80fd\u4ece\u4e2d\u83b7\u5f97\u5b9e\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/46704.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T19:57:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195728-688927a82a150.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46704.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/46704.html\",\"name\":\"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T19:57:33+00:00\",\"dateModified\":\"2025-07-29T19:57:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/46704.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/46704.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46704.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/46704.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u672c\u6587\u8bb2\u89e3Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u6838\u5fc3\u6982\u5ff5\u3002\u4ece\u7f51\u7edc\u63a5\u53e3\u7684\u57fa\u7840\u6982\u5ff5\u5230\u8def\u7531\u8868\u914d\u7f6e\uff0c\u4ece\u9759\u6001IP\u8bbe\u7f6e\u5230\u52a8\u6001\u7f51\u7edc\u7ba1\u7406\uff0c\u5e2e\u52a9\u8bfb\u8005\u5168\u9762\u638c\u63e1\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\u7684\u5b9e\u7528\u6280\u80fd\u3002\u65e0\u8bba\u4f60\u662f\u8fd0\u7ef4\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u90fd\u80fd\u4ece\u4e2d\u83b7\u5f97\u5b9e\u7528\u7684\u7f51\u7edc\u914d\u7f6e\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/46704.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T19:57:33+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729195728-688927a82a150.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/46704.html","url":"https:\/\/www.wsisp.com\/helps\/46704.html","name":"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T19:57:33+00:00","dateModified":"2025-07-29T19:57:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/46704.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/46704.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/46704.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u670d\u52a1\u5668\u4e0e\u90e8\u7f72 32\u3011\u4ece\u96f6\u638c\u63e1Linux\u670d\u52a1\u5668\u7f51\u7edc\u914d\u7f6e\uff1a\u7f51\u7edc\u63a5\u53e3\u4e0e\u8def\u7531\u914d\u7f6e\u5b8c\u5168\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=46704"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46704\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/46700"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=46704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=46704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=46704"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=46704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}