{"id":90169,"date":"2026-08-04T19:26:16","date_gmt":"2026-08-04T11:26:16","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90169.html"},"modified":"2026-08-04T19:26:16","modified_gmt":"2026-08-04T11:26:16","slug":"dhcp%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90169.html","title":{"rendered":"DHCP\u670d\u52a1\u5668"},"content":{"rendered":"<h2>DHCP\u670d\u52a1\u5668<\/h2>\n<h3>\u4f20\u7edf\u624b\u52a8\u914d\u7f6e\u53c2\u6570\u7684\u95ee\u9898<\/h3>\n<p>\u53c2\u6570\u591a\u3001\u7406\u89e3\u96be<\/p>\n<ul>\n<li>\u666e\u901a\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u53c2\u6570\u4e0d\u4e86\u89e3&#xff0c;\u7ecf\u5e38\u914d\u7f6e\u9519\u8bef&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7f51\u7edc\u3002\u968f\u610f\u914d\u7f6e ip \u5730\u5740\u5bfc\u81f4\u5730\u5740\u51b2\u7a81\u66f4\u662f\u65f6\u5e38\u53d1\u751f\u3002<\/li>\n<\/ul>\n<p>\u5de5\u4f5c\u91cf\u5927<\/p>\n<ul>\n<li>\u4ea4\u7531\u7f51\u7edc\u7ba1\u7406\u5458\u7edf\u4e00\u914d\u7f6e&#xff0c;\u5de5\u4f5c\u91cf\u5de8\u5927&#xff0c;\u5c5e\u4e8e\u91cd\u590d\u6027\u52b3\u52a8\u3002<\/li>\n<li>\u7f51\u7edc\u7ba1\u7406\u5458\u9700\u8981\u63d0\u524d\u5bf9 ip \u5730\u5740\u8fdb\u884c\u89c4\u5212\u3001\u5206\u914d\u5230\u4e2a\u4eba\u3002<\/li>\n<\/ul>\n<p>\u5229\u7528\u7387\u4f4e<\/p>\n<ul>\n<li>\u4f01\u4e1a\u7f51\u4e2d\u6bcf\u4e2a\u4eba\u56fa\u5b9a\u4f7f\u7528\u4e00\u4e2a IP \u5730\u5740&#xff0c;IP \u5730\u5740\u5229\u7528\u7387\u4f4e&#xff0c;\u6709\u4e9b\u5730\u5740\u53ef\u80fd\u957f\u671f\u5904\u4e8e\u672a\u4f7f\u7528\u72b6\u6001\u3002<\/li>\n<\/ul>\n<p>\u7075\u6d3b\u6027\u5dee<\/p>\n<ul>\n<li>WLAN&#xff08;Wireless Local Area Network&#xff0c;\u65e0\u7ebf\u5c40\u57df\u7f51&#xff09;\u7684\u51fa\u73b0\u4f7f\u7ec8\u7aef\u4f4d\u7f6e\u4e0d\u518d\u56fa\u5b9a&#xff0c;\u5f53\u65e0\u7ebf\u7ec8\u7aef\u79fb\u52a8\u5230\u53e6\u5916\u4e00\u4e2a\u65e0\u7ebf\u8986\u76d6\u533a\u57df\u65f6&#xff0c;\u53ef\u80fd\u9700\u8981\u518d\u6b21\u914d\u7f6e IP \u5730\u5740\u3002<\/li>\n<\/ul>\n<h3>DHCP \u57fa\u672c\u6982\u5ff5<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc560e7a5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u4e3a\u89e3\u51b3\u4f20\u7edf\u7684\u9759\u6001\u624b\u5de5\u914d\u7f6e\u65b9\u5f0f\u7684\u4e0d\u8db3&#xff0c;DHCP&#xff08;Dynamic Host Configuration Protocol&#xff0c;\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u534f\u8bae&#xff09;\u5e94\u8fd0\u800c\u751f&#xff0c;\u5176\u53ef\u4ee5\u5b9e\u73b0\u7f51\u7edc\u52a8\u6001\u5408\u7406\u5730\u5206\u914d IP \u5730\u5740\u7ed9\u4e3b\u673a\u4f7f\u7528\u3002<\/li>\n<li>DHCP \u91c7\u7528 C\/S \u67b6\u6784&#xff0c;\u4e3b\u673a\u65e0\u9700\u914d\u7f6e&#xff0c;\u4ece\u670d\u52a1\u5668\u7aef\u83b7\u53d6\u5730\u5740&#xff0c;\u53ef\u5b9e\u73b0\u63a5\u5165\u7f51\u7edc\u540e\u5373\u63d2\u5373\u7528\u3002<\/li>\n<\/ul>\n<h3>DHCP \u4f18\u70b9<\/h3>\n<p>\u7edf\u4e00\u7ba1\u7406<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc5620828.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>IP \u5730\u5740\u7531\u4ece\u670d\u52a1\u5668\u7aef\u7684\u5730\u5740\u6c60\u4e2d\u83b7\u53d6&#xff0c;\u670d\u52a1\u5668\u7aef\u4f1a\u8bb0\u5f55\u7ef4\u62a4 IP \u5730\u5740\u7684\u4f7f\u7528\u72b6\u6001&#xff0c;\u505a\u5230 IP \u5730\u5740\u7edf\u4e00\u5206\u914d\u3001\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<p>\u5730\u5740\u79df\u671f<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56312a0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>DHCP \u63d0\u51fa\u4e86\u79df\u671f\u7684\u6982\u5ff5&#xff0c;\u53ef\u6709\u6548\u63d0\u9ad8\u5730\u5740\u5229\u7528\u7387\u3002<\/li>\n<\/ul>\n<h3>DHCP \u5de5\u4f5c\u539f\u7406<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc5641604.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u5ba2\u6237\u7aef\u4f7f\u7528 DHCPv4 \u914d\u7f6e\u7f51\u7edc\u63a5\u53e3\u65f6&#xff0c;\u7f51\u5361\u5c06 DHCP DISCOVER \u6570\u636e\u5305\u53d1\u9001\u5230 255.255.255.255 \u5e7f\u64ad\u76ee\u6807\u3002\u56e0\u4e3a\u8def\u7531\u5668\u901a\u5e38\u4e0d\u8f6c\u53d1\u8be5\u5e7f\u64ad\u5730\u5740&#xff0c;\u6240\u4ee5\u5fc5\u987b\u5c06 DHCP \u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u5b89\u88c5\u5728\u540c\u4e00\u7269\u7406\u7f51\u7edc\u4e0a&#xff0c;\u4ee5\u4fbf\u5b83\u53ef\u4ee5\u63a5\u6536 DHCP DISCOVER \u6570\u636e\u5305\u3002\u60a8\u4e5f\u53ef\u4ee5\u5c06\u8def\u7531\u5668\u914d\u7f6e\u4e3a DHCP \u4e2d\u7ee7\u4ee3\u7406&#xff0c;\u8f6c\u53d1 DHCP \u6d88\u606f\u5230\u5176\u4ed6\u7f51\u7edc\u3002<\/li>\n<li>DHCP \u670d\u52a1\u5668\u6536\u5230 DHCP DISCOVER \u6570\u636e\u5305\u540e&#xff0c;\u54cd\u5e94 DHCP OFFER \u6570\u636e\u5305&#xff0c;\u8be5\u6570\u636e\u5305\u5305\u542b\u5176\u81ea\u5df1\u7684 IP \u5730\u5740\u548c\u5ba2\u6237\u7aef\u5e94\u4f7f\u7528\u7684 IP \u5730\u5740\u3002\u8be5\u6570\u636e\u5305\u8fd8\u5305\u62ec\u4e00\u4e2a\u79df\u7528\u671f\u9650&#xff0c;\u4ee5\u6307\u793a\u6240\u63d0\u4f9b\u7684 IP \u5730\u5740\u6709\u6548\u7684\u65f6\u95f4&#xff0c;\u4ee5\u53ca\u5176\u4ed6\u7f51\u7edc\u53c2\u6570&#xff0c;\u4f8b\u5982\u9ed8\u8ba4\u7f51\u5173\u548c DNS \u670d\u52a1\u5668\u3002<\/li>\n<li>\u5ba2\u6237\u7aef\u6536\u5230 DHCP \u670d\u52a1\u5668 DHCP OFFER \u6570\u636e\u5305\u540e&#xff0c;\u53d1\u9001 DHCP REQUEST \u5e7f\u64ad\u6570\u636e\u5305&#xff0c;\u8bf7\u6c42 DHCP \u670d\u52a1\u5668\u63d0\u4f9b\u7684 IP \u5730\u5740\u3002\u8fd9\u4f3c\u4e4e\u5f88\u591a\u4f59&#xff0c;\u4f46\u662f\u7f51\u7edc\u4e0a\u53ef\u80fd\u6709\u591a\u4e2a DHCP \u670d\u52a1\u5668&#xff0c;\u6216\u8005\u8def\u7531\u5668\u53ef\u80fd\u4f1a\u5c06 DHCP OFFER \u8f6c\u53d1\u5230\u591a\u4e2a\u7f51\u7edc\u3002\u56e0\u6b64&#xff0c;\u5ba2\u6237\u7aef\u53ef\u80fd\u4f1a\u4ece\u4e0d\u540c\u7684 DHCP \u670d\u52a1\u5668\u6536\u5230\u54cd\u5e94\u3002\u5ba2\u6237\u7aef\u7684DHCP REQUEST \u6570\u636e\u5305\u5305\u62ec\u63a5\u53d7\u8bf7\u6c42\u7684 DHCP \u670d\u52a1\u5668\u7684 IP \u5730\u5740\u3002<\/li>\n<li>DHCP \u670d\u52a1\u5668\u6536\u5230 DHCP REQUEST \u6570\u636e\u5305\u540e&#xff0c;\u4f1a\u53d1\u9001 DHCP ACK \u6570\u636e\u5305&#xff0c;\u786e\u8ba4\u5ba2\u6237\u7aef\u5bf9\u5ba2\u6237\u7aef IP \u5730\u5740\u5177\u6709\u72ec\u5360\u6743\u9650&#xff0c;\u76f4\u5230\u79df\u7ea6\u5230\u671f\u4e3a\u6b62\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc5652c0a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u601d\u8003&#xff1a;\u4e3a\u4ec0\u4e48 DHCP \u5ba2\u6237\u7aef\u6536\u5230 Offer \u4e4b\u540e\u4e0d\u76f4\u63a5\u4f7f\u7528\u8be5 IP \u5730\u5740&#xff0c;\u8fd8\u9700\u8981\u53d1\u9001\u4e00\u4e2a Request \u544a\u77e5\u670d\u52a1\u5668\u7aef&#xff1f;<\/p>\n<p>\u5e7f\u64ad\u7684 Request \u62a5\u6587\u8ba9\u7f51\u7edc\u4e2d\u5176\u4ed6 DHCP \u670d\u52a1\u5668\u7aef\u5f97\u77e5\u5ba2\u6237\u7aef\u5df2\u9009\u62e9\u4e86\u67d0\u4e2a\u670d\u52a1\u5668\u7aef\u5206\u914d\u7684 IP \u5730\u5740&#xff0c;\u4fdd\u8bc1\u5176\u4ed6\u670d\u52a1\u5668\u7aef\u53ef\u4ee5\u91ca\u653e\u901a\u8fc7\u5355\u64ad Offer \u5206\u914d\u7ed9\u8be5\u5ba2\u6237\u7aef\u7684 IP \u5730\u5740\u3002<\/p>\n<h3>DHCP \u79df\u671f\u66f4\u65b0<\/h3>\n<ul>\n<li>\u5982\u679c\u5728 50% \u79df\u671f\u65f6\u5ba2\u6237\u7aef\u672a\u5f97\u5230\u539f\u670d\u52a1\u5668\u7aef\u7684\u56de\u5e94&#xff0c;\u5219\u5ba2\u6237\u7aef\u5728 87.5% \u79df\u671f\u65f6\u4f1a\u5e7f\u64ad\u53d1\u9001 DHCP Request&#xff0c;\u4efb\u610f\u4e00\u53f0 DHCP \u670d\u52a1\u5668\u7aef\u90fd\u53ef\u56de\u5e94&#xff0c;\u8be5\u8fc7\u7a0b\u79f0\u4e3a\u91cd\u7ed1\u5b9a\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc565cc8c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u79df\u7ea6\u5230\u671f\u540e&#xff0c;\u91cd\u65b0\u5411 DHCP \u670d\u52a1\u5668\u7eed\u7ea6\u3002<\/li>\n<li>DHCP \u670d\u52a1\u5668&#xff0c;\u540c\u610f\u5ba2\u6237\u7aef\u7eed\u7ea6\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc566b749.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u601d\u8003&#xff1a;\u79df\u671f\u65f6\u957f\u957f\u8fd8\u662f\u77ed\u597d<\/p>\n<p>\u5206\u573a\u666f&#xff1a;\u6d41\u52a8\u6027\u5927\u7684\u573a\u666f (\u706b\u8f66\u7ad9&#xff0c;KTV&#xff0c;\u9152\u5427&#xff0c;\u8d85\u5e02\u79df\u671f\u8bbe\u7f6e\u77ed&#xff0c;\u6d41\u52a8\u6027\u5c0f\u7684\u573a\u666f (\u529e\u516c\u5ba4&#xff0c;\u5bb6\u5ead) \u8bbe\u7f6e\u957f\u79df\u671f<\/p>\n<p>\u5728 DHCP \u670d\u52a1\u5668\u4e0a&#xff0c;\u53ef\u4ee5\u4f7f\u7528 journalctl &#8211;unit&#061;dhcpd.service \u547d\u4ee4\u6765\u8bbf\u95ee\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u901a\u4fe1\u6d88\u606f\u3002\u4ee5\u4e0b\u6458\u5f55\u663e\u793a\u4e86\u5ba2\u6237\u7aef\u901a\u8fc7 DHCP \u8bf7\u6c42 IP \u5730\u5740\u3002<\/p>\n<p>[root&#064;dhcp-server ~]# journalctl &#8211;unit&#061;dhcpd.service<br \/>\nAug 01 15:49:43 dhcp-server dhcpd[1239]: DHCPDISCOVER from 00:0c:29:07:ec:8b via ens33<br \/>\nAug 01 15:49:44 dhcp-server dhcpd[1239]: DHCPOFFER on 10.1.8.102 to 00:0c:29:07:ec:8b (dhcp-client) via ens33<br \/>\nAug 01 15:49:44 dhcp-server dhcpd[1239]: DHCPREQUEST for 10.1.8.102 (10.1.8.10) from 00:0c:29:07:ec:8b (dhcp-client1) via ens33<br \/>\nAug 01 15:49:44 dhcp-server dhcpd[1239]: DHCPACK on 10.1.8.102 to 00:0c:29:07:ec:8b (dhcp-client1) via ens33<br \/>\nAug 01 15:49:45 dhcp-server dhcpd[1239]: DHCPDISCOVER from 00:0c:29:02:49:2a via ens33<br \/>\nAug 01 15:49:45 dhcp-server dhcpd[1239]: DHCPOFFER on 10.1.8.88 to 00:0c:29:02:49:2a via ens33<br \/>\nAug 01 15:49:45 dhcp-server dhcpd[1239]: DHCPREQUEST for 10.1.8.88 (10.1.8.10) from 00:0c:29:02:49:2a via ens33<br \/>\nAug 01 15:49:45 dhcp-server dhcpd[1239]: DHCPACK on 10.1.8.88 to 00:0c:29:02:49:2a via ens33<\/p>\n<h4>\u591a DHCP \u670d\u52a1\u5668\u573a\u666f<\/h4>\n<p>\u5c3d\u7ba1 DHCP \u652f\u6301\u5728\u7269\u7406\u7f51\u7edc\u4e0a\u8fd0\u884c\u591a\u4e2a DHCP \u670d\u52a1\u5668&#xff0c;\u4f46\u4e0d\u5efa\u8bae\u8fd9\u4e48\u505a\u3002\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff0c;\u540c\u4e00\u4e2a\u7269\u7406\u7f51\u7edc\u4e2d\u53ea\u9700\u8981\u4e00\u53f0 DHCP \u670d\u52a1\u5668\u5e94\u56de\u7b54\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u5373\u53ef\u3002<\/p>\n<p>\u5728\u540c\u4e00\u7f51\u7edc\u4e0a\u8fd0\u884c\u591a\u4e2a\u670d\u52a1\u5668\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5f53\u65b0\u5ba2\u6237\u7aef\u53d1\u9001 DHCP DISCOVER \u6570\u636e\u5305\u4ee5\u83b7\u53d6\u5730\u5740\u65f6&#xff0c;\u5b83\u53ef\u80fd\u4f1a\u6536\u5230\u591a\u4e2a DHCP OFFER \u6570\u636e\u5305\u3002\u5ba2\u6237\u7aef\u4ec5\u63a5\u53d7\u5176\u4e2d\u4e00\u53f0\u670d\u52a1\u5668\u63d0\u4f9b\u7684 IP \u5730\u5740\u3002\u6253\u5305\u8be5\u670d\u52a1\u5668\u3002\u4f46\u662f&#xff0c;\u5f53\u5ba2\u6237\u7aef\u4f7f\u7528 DHCP REQUEST \u6570\u636e\u5305\u66f4\u65b0\u5176 IP \u5730\u5740\u65f6&#xff0c;\u670d\u52a1\u5668\u884c\u4e3a\u53d6\u51b3\u4e8e\u670d\u52a1\u5668\u662f\u5426\u5177\u6709\u6743\u5a01\u6027\u3002**\u975e\u6743\u5a01\u7684 DHCP \u670d\u52a1\u5668\u4f1a\u5ffd\u7565 DHCP REQUEST \u6570\u636e\u5305\u4e2d\u4e0d\u77e5\u9053\u7684\u5730\u5740\u3002**\u5f53\u5ba2\u6237\u7aef\u53d1\u9001\u7684 IP \u5730\u5740\u5728\u6743\u5a01\u6570\u636e\u5e93\u4e2d&#xff0c;\u670d\u52a1\u5668\u7406\u89e3\u6b64 IP \u5730\u5740&#xff0c;\u4f46\u662f\u670d\u52a1\u5668\u4ee5\u524d\u4e0d\u77e5\u9053\u8be5 IP \u65f6&#xff0c;\u5b83\u5c06\u62d2\u7edd\u8be5\u8bf7\u6c42\u5e76\u53d1\u9001 DHCP NAK \u6570\u636e\u5305\u3002\u8fd9\u53ef\u80fd\u610f\u5473\u7740\u5ba2\u6237\u7aef\u6700\u521d\u662f\u4ece\u7f51\u7edc\u4e0a\u7684\u53e6\u4e00\u53f0\u975e\u6743\u5a01 DHCP \u670d\u52a1\u5668\u83b7\u5f97\u5176\u5730\u5740\u7684\u3002\u4efb\u4f55\u6536\u5230 DHCP NAK \u6570\u636e\u5305\u7684\u5ba2\u6237\u7aef\u90fd\u4e0d\u80fd\u518d\u4f7f\u7528\u8be5\u5730\u5740&#xff0c;\u800c\u5fc5\u987b\u8bf7\u6c42\u4e00\u4e2a\u65b0\u7684\u5730\u5740\u3002<\/p>\n<p>\u4f7f\u7528\u9ed8\u8ba4\u914d\u7f6e\u542f\u52a8 DHCP \u670d\u52a1\u5668\u65f6&#xff0c;\u670d\u52a1\u5668\u4e0d\u662f\u6743\u5a01\u670d\u52a1\u5668&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u9632\u6b62\u975e\u6743\u5a01 DHCP \u670d\u52a1\u5668\u63a5\u7ba1\u6743\u5a01\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u5730\u5740\u3002<\/p>\n<h4>DHCP \u670d\u52a1\u5668\u642d\u5efa\u573a\u666f<\/h4>\n<p>1.\u8def\u7531\u5668\u3001\u4ea4\u6362\u673a<\/p>\n<p>2.linux\u3001windows server<\/p>\n<p>3.tplink&#xff0c;\u5c0f\u7c73\u8def\u7531\u5668<\/p>\n<p>\u5bb6\u5ead\u573a\u666f&#xff1a;tp-link<\/p>\n<p>\u5c0f\u516c\u53f8 (10 \u4eba): tp-link \u8def\u7531\u5668<\/p>\n<p>\u4e2d\u516c\u53f8&#xff08;100-500 \u4eba&#xff09;&#xff1a;\u8def\u7531\u5668&#xff0c;\u4ea4\u6362\u673a<\/p>\n<p>\u5927\u516c\u53f8&#xff08;1000&#043;&#xff09;:linux \u670d\u52a1\u5668<\/p>\n<h3>\u8def\u7531\u5668\u90e8\u7f72DHCP\u670d\u52a1<\/h3>\n<h4>\u63a5\u53e3\u5730\u5740\u6c60<\/h4>\n<p>\u8def\u7531\u5668\u63a5\u53e3\u5730\u5740\u6c60192.168.1.1\/24\u5c5e\u4e8e192.168.1.0\u7f51\u6bb5&#xff0c;\u8be5\u7f51\u6bb5\u6210\u4e3a\u80fd\u591f\u5206\u914d\u7684\u5730\u5740\u6c60&#xff0c;\u63a5\u53e3\u5730\u5740\u81ea\u52a8\u6210\u4e3a\u5206\u914d\u7684\u7f51\u5173\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc5674998.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>\u7b2c\u4e00\u6b65&#xff1a;\u57fa\u7840\u914d\u7f6e<\/h5>\n<p>R1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view                      <span class=\"token comment\">#\u7528\u6237\u89c6\u56fe\u5207\u6362\u5230\u7cfb\u7edf\u89c6\u56fe<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info-center <span class=\"token builtin class-name\">enable<\/span>          <span class=\"token comment\">#\u5173\u95ed\u6d88\u606f\u63d0\u793a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname r1                       <span class=\"token comment\">#\u8bbe\u7f6e\u4e3b\u673a\u540dr1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0                           <span class=\"token comment\">#\u8fdb\u5165e0\/0\/0\u63a5\u53e3<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.1 <span class=\"token number\">24<\/span>  <span class=\"token comment\">#\u914d\u7f6eIP\u5730\u5740192.168.1.1\/24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>quit                   <span class=\"token comment\">#\u8fd4\u56de\u7cfb\u7edf\u89c6\u56fe<\/span><\/p>\n<p>sw1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>ststem-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname sw1<br \/>\n<span class=\"token punctuation\">[<\/span>sw1<span class=\"token punctuation\">]<\/span>stp disable                        <span class=\"token comment\">#\u5173\u95ed\u751f\u6210\u6811<\/span><br \/>\nWarning: The global STP state will be changed. Continue? <span class=\"token punctuation\">[<\/span>Y\/N<span class=\"token punctuation\">]<\/span>y   <span class=\"token comment\">#\u56de\u7b54y<\/span><\/p>\n<h5>\u7b2c\u4e8c\u6b65&#xff1a;\u914d\u7f6e\u8def\u7531\u5668DHCP<\/h5>\n<p>R1&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token builtin class-name\">enable<\/span>                               <span class=\"token comment\">#\u5168\u5c40\u4f7f\u80fddhcp\u529f\u80fd<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token keyword\">select<\/span> interface      <span class=\"token comment\">#\u63a5\u53e3dhcp<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp server lease day <span class=\"token number\">3<\/span>    <span class=\"token comment\">#dhcp\u79df\u671f3\u5929<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp server dns-list <span class=\"token number\">223.5<\/span>.5.5 <span class=\"token comment\">#dns\u5206\u914d223.5.5.5&#xff08;\u963f\u91cc\u4e91\u516c\u5171DNS\u5730\u5740&#xff09;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp server excluded-ip-address <span class=\"token number\">192.168<\/span>.1.4 <span class=\"token comment\">#\u5730\u5740\u6c60\u6392\u9664192.168.1.4<\/span><\/p>\n<h5>\u7b2c\u4e09\u6b65&#xff1a;pc\u81ea\u52a8\u83b7\u53d6\u5730\u5740<\/h5>\n<p>pc1&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc5684a3f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u901a\u8fc7DHCP\u83b7\u53d6\u5730\u5740<\/p>\n<h5>\u7b2c\u56db\u6b65&#xff1a;\u6293\u5305\u89c2\u5bdfDHCP\u5de5\u4f5c\u539f\u7406<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56965db.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>pc2&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56a70a4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56b8ce3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u770b\u6293\u5305\u8fc7\u7a0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56cabf9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u52a8\u6001\u7684\u7ed9pc3\u5206\u914d 192.168.1.88<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56de2cf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8bb0\u5f55pc3 MAC\u5730\u5740&#xff0c;\u7ed1\u5b9a<\/p>\n<p>\u901a\u8fc7display mac-address \u67e5\u770b<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc56ef23f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>R1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>r<span class=\"token operator\"><span class=\"token file-descriptor important\">1<\/span>&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp server static-bind ip-address <span class=\"token number\">192.168<\/span>.1.88 mac-address <span class=\"token number\">5489<\/span>-98f3-5b43  <span class=\"token comment\">#\u5c06192.168.1.88\u7ed1\u5b9a\u5230PC3 MAC<\/span><\/p>\n<p>\u89c2\u5bdf\u73b0\u8c61&#xff1a;<\/p>\n<p>pc3:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112615-6a71cc570cc64.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112615-6a71cc571e919.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5168\u5c40\u5730\u5740\u6c60<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112615-6a71cc5730bbc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>\u7b2c\u4e00\u6b65&#xff1a;\u57fa\u7840\u914d\u7f6e<\/h5>\n<p>R1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view                      <span class=\"token comment\">#\u7528\u6237\u89c6\u56fe\u5207\u6362\u5230\u7cfb\u7edf\u89c6\u56fe<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info-center <span class=\"token builtin class-name\">enable<\/span>          <span class=\"token comment\">#\u5173\u95ed\u6d88\u606f\u63d0\u793a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname r1                       <span class=\"token comment\">#\u8bbe\u7f6e\u4e3b\u673a\u540dr1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0                           <span class=\"token comment\">#\u8fdb\u5165e0\/0\/0\u63a5\u53e3<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.1 <span class=\"token number\">24<\/span>  <span class=\"token comment\">#\u914d\u7f6eIP\u5730\u5740192.168.1.1\/24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>quit                   <span class=\"token comment\">#\u8fd4\u56de\u7cfb\u7edf\u89c6\u56fe<\/span><\/p>\n<p>sw1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>ststem-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname sw1<br \/>\n<span class=\"token punctuation\">[<\/span>sw1<span class=\"token punctuation\">]<\/span>stp disable                        <span class=\"token comment\">#\u5173\u95ed\u751f\u6210\u6811<\/span><br \/>\nWarning: The global STP state will be changed. Continue? <span class=\"token punctuation\">[<\/span>Y\/N<span class=\"token punctuation\">]<\/span>y   <span class=\"token comment\">#\u56de\u7b54y<\/span><\/p>\n<h5>\u7b2c\u4e8c\u6b65&#xff1a;\u914d\u7f6e\u8def\u7531\u5668DHCP<\/h5>\n<p>R1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info-center <span class=\"token builtin class-name\">enable<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname r1<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>ip address <span class=\"token number\">192.168<\/span>.1.1 <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>quit<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>ip pool net1                        <span class=\"token comment\">#\u521b\u5efa\u5730\u5740\u6c60<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>network <span class=\"token number\">192.168<\/span>.1.0 mask <span class=\"token number\">24<\/span>   <span class=\"token comment\">#\u8bbe\u7f6e\u5730\u5740\u6c60\u8303\u56f4<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>gateway-list <span class=\"token number\">192.168<\/span>.1.1      <span class=\"token comment\">#\u6307\u5b9a\u7f51\u5173\u5730\u5740<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>dns-list <span class=\"token number\">223.5<\/span>.5.5<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>lease day <span class=\"token number\">3<\/span> hour <span class=\"token number\">12<\/span> minute <span class=\"token number\">30<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>excluded-ip-address <span class=\"token number\">192.168<\/span>.1.4<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>excluded-ip-address <span class=\"token number\">192.168<\/span>.1.44<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>static-bind ip-address <span class=\"token number\">192.168<\/span>.1.88 mac-address <span class=\"token number\">5489<\/span>-98f3-5b43<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>quit<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token builtin class-name\">enable<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token keyword\">select<\/span> global      <span class=\"token comment\">#\u8c03\u7528\u5168\u5c40\u5730\u5740\u6c60<\/span><\/p>\n<h5>\u7b2c\u4e09\u6b65&#xff1a;PC\u81ea\u52a8\u83b7\u53d6\u5730\u5740<\/h5>\n<p>PC1&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112615-6a71cc5749bca.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112615-6a71cc575d092.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>PC3&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2026-08-04empdjht4nrw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>DHCP\u4e2d\u7ee7<\/h4>\n<p>B\u697c\u7684PC\u83b7\u53d6\u5730\u5740&#xff0c;\u8981\u5c06dhcp discover\u62a5\u6587\u53d1\u9001\u5230A\u697c\u7684R1&#xff0c;\u8de8\u8def\u7531\u5668&#xff0c;\u7531\u4e8edhcp discover\u62a5\u6587\u662f\u5e7f \u64ad&#xff0c;\u6240\u4ee5\u53d1\u9001\u4e0d\u8fc7\u53bb&#xff0c;\u65e0\u6cd5\u83b7\u53d6\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"2026-08-04il3ypgko5v3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u914d\u7f6edhcp \u4e2d\u7ee7&#xff0c;R2\u5c06\u63a5\u6536\u5230\u7684\u5e7f\u64ad\u62a5\u6587dhcp discover\u8f6c\u6210\u5355\u64ad\u53d1\u9001\u7ed9dhcp\u670d\u52a1\u5668R1&#xff0c;\u4ece\u800c\u83b7\u53d6\u5730\u5740<br \/>\n<img decoding=\"async\" src=\"2026-08-04owzigiywnlh.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>\u7b2c\u4e00\u6b65&#xff1a;\u57fa\u7840\u914d\u7f6e<\/h5>\n<p>R1:<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info en<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sysname r1<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.1.1 <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>int e0\/0\/1<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/1<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">12.1<\/span>.1.1 <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/1<span class=\"token punctuation\">]<\/span>quit<br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>ip route-static <span class=\"token number\">192.168<\/span>.2.0 <span class=\"token number\">24<\/span> <span class=\"token number\">12.1<\/span>.1.2<\/p>\n<p>R2:<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info en<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sys r2<br \/>\n<span class=\"token punctuation\">[<\/span>r2<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">192.168<\/span>.2.1 <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>int e0\/0\/1<br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/1<span class=\"token punctuation\">]<\/span>ip <span class=\"token function\">add<\/span> <span class=\"token number\">12.1<\/span>.1.2 <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/1<span class=\"token punctuation\">]<\/span>quit<br \/>\n<span class=\"token punctuation\">[<\/span>r2<span class=\"token punctuation\">]<\/span>ip route-static <span class=\"token number\">192.168<\/span>.1.0 <span class=\"token number\">24<\/span> <span class=\"token number\">12.1<\/span>.1.1<\/p>\n<p>sw1&#xff1a;<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info en<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sys sw1<br \/>\n<span class=\"token punctuation\">[<\/span>sw1<span class=\"token punctuation\">]<\/span>stp disable<br \/>\nWarning: The global STP state will be changed. Continue? <span class=\"token punctuation\">[<\/span>Y\/N<span class=\"token punctuation\">]<\/span>y<\/p>\n<p>sw2:<\/p>\n<p><span class=\"token operator\">&lt;<\/span>Huawei<span class=\"token operator\">&gt;<\/span>system-view<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>undo info en<br \/>\n<span class=\"token punctuation\">[<\/span>Huawei<span class=\"token punctuation\">]<\/span>sys sw2<br \/>\n<span class=\"token punctuation\">[<\/span>sw1<span class=\"token punctuation\">]<\/span>stp disable<br \/>\nWarning: The global STP state will be changed. Continue? <span class=\"token punctuation\">[<\/span>Y\/N<span class=\"token punctuation\">]<\/span>y<\/p>\n<h5>\u7b2c\u4e8c\u6b65&#xff1a;\u914d\u7f6e\u8def\u7531\u5668DHCP<\/h5>\n<p>R1:<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5730\u5740\u6c601<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>ip pool net1<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>network <span class=\"token number\">192.168<\/span>.1.0 mask <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>gateway-list <span class=\"token number\">192.168<\/span>.1.1<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>dns-list <span class=\"token number\">8.8<\/span>.8.8<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net1<span class=\"token punctuation\">]<\/span>quit<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5730\u5740\u6c602<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>ip pool net2<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net2<span class=\"token punctuation\">]<\/span>network <span class=\"token number\">192.168<\/span>.2.0 mask <span class=\"token number\">24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net2<span class=\"token punctuation\">]<\/span>gateway-list <span class=\"token number\">192.168<\/span>.2.1<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net2<span class=\"token punctuation\">]<\/span>dns-list <span class=\"token number\">114.114<\/span>.114.114<br \/>\n<span class=\"token punctuation\">[<\/span>r1-ip-pool-net2<span class=\"token punctuation\">]<\/span>quit<\/p>\n<p><span class=\"token comment\"># \u5168\u5c40\u4f7f\u80fddhcp\u529f\u80fd<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token builtin class-name\">enable<\/span><\/p>\n<p><span class=\"token comment\"># \u63a5\u53e3\u8c03\u7528\u5168\u5c40\u5730\u5740\u6c60<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r1<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token keyword\">select<\/span> global<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>int e0\/0\/1<br \/>\n<span class=\"token punctuation\">[<\/span>r1-Ethernet0\/0\/1<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token keyword\">select<\/span> global<\/p>\n<h5>\u7b2c\u4e09\u6b65&#xff1a;\u914d\u7f6eDHCP\u4e2d\u7ee7<\/h5>\n<p>R2:<\/p>\n<p><span class=\"token punctuation\">[<\/span>r2<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token builtin class-name\">enable<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r2<span class=\"token punctuation\">]<\/span>int e0\/0\/0<br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp <span class=\"token keyword\">select<\/span> relay   <span class=\"token comment\">#\u5f00\u542fdhcp\u4e2d\u7ee7          <\/span><br \/>\n<span class=\"token punctuation\">[<\/span>r2-Ethernet0\/0\/0<span class=\"token punctuation\">]<\/span>dhcp relay server-ip <span class=\"token number\">12.1<\/span>.1.1 <span class=\"token comment\">#\u4e2d\u7ee7\u7ed912.1.1.1&#xff08;r1 dhcp\u670d\u52a1\u5668&#xff09;<\/span><\/p>\n<h5>\u7b2c\u56db\u6b65&#xff1a;PC\u81ea\u52a8\u83b7\u53d6\u5730\u5740<\/h5>\n<p>\u6293\u5305R2 E0\/0\/0 E0\/0\/1 \u89c2\u5bdf\u6536\u5230\u5e7f\u64ad\u7684dhcp discover\u901a\u8fc7dhcp\u4e2d\u7ee7\u5355\u64ad\u53d1\u7ed9 R1<br \/>\n<img decoding=\"async\" src=\"2026-08-04xmn50w01mgf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-08-04zb5qungqtpa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u89c2\u5bdf\u83b7\u53d6\u7684\u5730\u5740<br \/>\n<img decoding=\"async\" src=\"2026-08-04szikixkqtbc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-08-04r0tf35unb12.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>Linux\u90e8\u7f72DHCP\u670d\u52a1<\/h3>\n<h4>\u73af\u5883\u51c6\u5907<\/h4>\n<p>\u7531\u4e8eworkstaion\u81ea\u5e26HDCP\u529f\u80fd&#xff0c;\u6240\u4ee5\u5148\u5c06\u5176\u5173\u95ed<br \/>\n<img decoding=\"async\" src=\"2026-08-04a5grv4jbjq1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-08-04tb1njmu0jxv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-08-04mfdtezqdg1g.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u8282\u70b9\u89c4\u5212<\/h4>\n<table>\n<tr>\u8282\u70b9\u540d\u79f0\u8282\u70b9IP\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>dhcp-server<\/td>\n<td>10.1.8.10\/24(\u670d\u52a1\u5668\u5fc5\u987b\u9759\u6001IP&#xff09;<\/td>\n<td>DHCP\u670d\u52a1\u5668<\/td>\n<\/tr>\n<tr>\n<td>dhcp-client1(\u666e\u901a\u5458\u5de5)<\/td>\n<td>\u4ecedhcp-server\u81ea\u52a8\u83b7\u53d6\u968f\u673aIP<\/td>\n<td>DHCP\u5ba2\u6237\u7aef<\/td>\n<\/tr>\n<tr>\n<td>dhcp-client2(\u7ecf\u7406)<\/td>\n<td>\u4ecedhcp-server\u81ea\u52a8\u83b7\u53d6\u56fa\u5b9aIP 10.1.8.88<\/td>\n<td>DHCP\u5ba2\u6237\u7aef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u57fa\u7840\u914d\u7f6e<\/h4>\n<p>\u670d\u52a1\u5668\u5fc5\u987b\u9759\u6001IP\u5730\u5740<\/p>\n<p>dhcp-server:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection modify ens33 ipv4.method manual ipv4.addresses 10.1.8.10\/24 ipv4.gateway 10.1.8.2 ipv4.dns 10.1.8.2 autoconnect yes<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-serve<\/span><\/p>\n<p>dhcp-client1:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-client1<\/span><\/p>\n<p>dhcp-client2:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-client2<\/span><\/p>\n<p>\u914d\u7f6eDHCPv4\u670d\u52a1\u5668&#xff0c;\u8bf7\u9996\u5148\u4f7f\u7528ip addr\u547d\u4ee4\u786e\u8ba4\u60a8\u7684\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e\u662f\u5426\u6307\u5b9a\u4e86BROADCAST\u5730\u5740\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ip addr | grep ens33<\/span><br \/>\n<span class=\"token number\">2<\/span>: ens33: <span class=\"token operator\">&lt;<\/span>BROADCAST,MULTICAST,UP,LOWER_UP<span class=\"token operator\">&gt;<\/span> mtu <span class=\"token number\">1500<\/span> qdisc pfifo_fast state UP<br \/>\ngroup default qlen <span class=\"token number\">1000<\/span><br \/>\ninet <span class=\"token number\">10.1<\/span>.8.10\/24 brd <span class=\"token number\">10.1<\/span>.8.255 scope global noprefixroute ens33<\/p>\n<p>\u670d\u52a1\u5668\u5fc5\u987b\u5177\u5907\u9759\u6001ip\u5730\u5740\u3002<\/p>\n<h4>\u5b89\u88c5DHCP\u8f6f\u4ef6<\/h4>\n<p><span class=\"token comment\"># \u5b89\u88c5\u8f6f\u4ef6\u5305<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum install -y dhcp<\/span><br \/>\n<span class=\"token comment\"># \u914d\u7f6e\u9632\u706b\u5899&#xff0c;\u653e\u884cdhcp\u670d\u52a1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># firewall-cmd &#8211;add-service&#061;dhcp<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># firewall-cmd &#8211;add-service&#061;dhcp &#8211;permanent<\/span><\/p>\n<h4>\u914d\u7f6eDHCP\u670d\u52a1\u5668<\/h4>\n<p>dhcpd\u670d\u52a1\u4f7f\u7528 \/etc\/dhcp\/dhcpd.conf \u914d\u7f6e\u6587\u4ef6\u3002 dhcp\u8f6f\u4ef6\u5305\u63d0\u4f9b\/usr\/share\/doc\/dhcp-*\/dhcpd.conf.example \u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\u3002<\/p>\n<p><span class=\"token comment\"># \u9996\u5148cat dhcp\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u53d1\u73b0\u63d0\u793a\u6211\u4eec\u53bb\u53c2\u8003\u8fd9\u4e2a\/usr\/share\/doc\/dhcp*\/dhcpd.conf.example<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/etc\/dhcp\/dhcpd.conf <\/span><br \/>\n<span class=\"token comment\">#<\/span><br \/>\n<span class=\"token comment\"># DHCP Server Configuration file.<\/span><br \/>\n<span class=\"token comment\">#   see \/usr\/share\/doc\/dhcp*\/dhcpd.conf.example<\/span><br \/>\n<span class=\"token comment\">#   see dhcpd.conf(5) man page<\/span><br \/>\n<span class=\"token comment\">#<\/span><\/p>\n<p><span class=\"token comment\"># \u7a97\u53e3A&#xff0c;\u53c2\u8003\/usr\/share\/doc\/dhcp-4.2.5\/dhcpd.conf.example\u4fee\u6539\/etc\/dhcp\/dhcpd.conf<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/usr\/share\/doc\/dhcp-4.2.5\/dhcpd.conf.example<\/span><\/p>\n<p><span class=\"token comment\"># \u7a97\u53e3B&#xff0c;\u5178\u578b\u7684DHCP\u914d\u7f6e\u793a\u4f8b&#xff0c;\u52a0\u5728\/etc\/dhcp\/dhcpd.conf\u672b\u5c3e<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/dhcp\/dhcpd.conf <\/span><br \/>\nsubnet <span class=\"token number\">10.1<\/span>.8.0 netmask <span class=\"token number\">255.255<\/span>.255.0 <span class=\"token punctuation\">{<\/span>    <span class=\"token comment\">#\u7ed910.1.8.0\/24\u8fd9\u4e2a\u7f51\u7edc\u6bb5\u8bbe\u5907\u5206\u914dIP           <\/span><br \/>\n  range <span class=\"token number\">10.1<\/span>.8.101 <span class=\"token number\">10.1<\/span>.8.130<span class=\"token punctuation\">;<\/span>             <span class=\"token comment\">#IP\u5206\u914d\u8303\u56f410.1.8.101-10.1.8.130<\/span><br \/>\noption domain-name-servers <span class=\"token number\">223.5<\/span>.5.5<span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">#\u5206\u914d\u7ed9dhcp\u5ba2\u6237\u7aefdns\u5730\u5740\u4e3a223.5.5.5(\u963f\u91cc\u4e91\u516c\u5171DNS&#xff09;<\/span><br \/>\noption domain-name <span class=\"token string\">&#034;xiaoma.cloud&#034;<\/span><span class=\"token punctuation\">;<\/span>     <span class=\"token comment\">#\u5c40\u57df\u7f51\u8bbe\u5907\u7684\u57df\u540d\u540e\u7f00 &#061; xiaoma.cloud<\/span><br \/>\noption routers <span class=\"token number\">10.1<\/span>.8.2<span class=\"token punctuation\">;<\/span>               <span class=\"token comment\">#\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\u7684\u989d\u7f51\u5173\u5730\u5740\u4e3a10.1.8.2<\/span><br \/>\noption broadcast-address <span class=\"token number\">10.1<\/span>.8.255<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">#\u5c40\u57df\u7f51\u5e7f\u64ad\u5730\u5740\u3002DHCP\u3001ARP\u4f9d\u8d56\u5b83<\/span><br \/>\ndefault-lease-time <span class=\"token number\">600<\/span><span class=\"token punctuation\">;<\/span>                <span class=\"token comment\">#\u9ed8\u8ba4\u79df\u671f600\u79d2<\/span><br \/>\nmax-lease-time <span class=\"token number\">7200<\/span><span class=\"token punctuation\">;<\/span>                   <span class=\"token comment\">#\u6700\u5927\u79df\u671f7200\u79d2<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u914d\u7f6e\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>authoritative&#xff0c;\u6307\u793a\u670d\u52a1\u5668\u5bf9\u5176\u6240\u7ba1\u7406\u7684\u5b50\u7f51\u5177\u6709\u6743\u5a01\u6027\u3002<\/li>\n<li>subnet&#xff0c;\u63d0\u4f9b\u7684\u5b50\u7f51\u8be6\u7ec6\u3002<\/li>\n<li>range&#xff0c;\u6307\u5b9a\u670d\u52a1\u5668\u5728\u8be5\u8303\u56f4\u5185\u5206\u914dIP\u5730\u5740\u3002<\/li>\n<li>option routers&#xff0c;\u6307\u5b9a\u670d\u52a1\u5668\u63d0\u4f9b\u9ed8\u8ba4\u7f51\u5173\u5730\u5740\u3002<\/li>\n<li>option domain-name-servers&#xff0c;\u6307\u5b9a\u670d\u52a1\u5668\u63d0\u4f9bDNS\u540d\u79f0\u670d\u52a1\u5668\u3002<\/li>\n<li>option domain-search&#xff0c;\u6307\u5b9a\u670d\u52a1\u5668\u63d0\u4f9bDNS\u57df\u641c\u7d22\u5217\u8868\u3002<\/li>\n<li>default-lease-time&#xff0c;\u63d0\u4f9b\u7f51\u7edc\u4fe1\u606f\u9ed8\u8ba4\u79df\u671f&#xff0c;\u5982\u679c\u5ba2\u6237\u7aef\u4e0d\u8981\u6c42\u4efb\u4f55\u7279\u5b9a\u7684\u79df\u671f\u3002\u5355\u4f4d\u79d2\u3002<\/li>\n<li>max-lease-time&#xff0c;\u6307\u793a\u670d\u52a1\u5668\u53ef\u4ee5\u4ece\u5ba2\u6237\u7aef\u8bf7\u6c42\u63a5\u53d7\u7684\u6700\u5927\u79df\u671f\u3002\u5355\u4f4d\u79d2\u3002<\/li>\n<\/ul>\n<p>\u5ba2\u6237\u7aef\u7cfb\u7edf\u4e0a\u7684NetworkManager\u4f7f\u7528domain-name-servers\u548cdomain-search\u66f4\u65b0resolv.conf\u6587 \u4ef6\u4e2d\u7684nameserver\u548csearch\u53c2\u6570\u3002<\/p>\n<h4>\u9a8c\u8bc1DHCP\u914d\u7f6e<\/h4>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># dhcpd -t<\/span><br \/>\nInternet Systems Consortium DHCP Server <span class=\"token number\">4.2<\/span>.5<br \/>\nCopyright <span class=\"token number\">2004<\/span>-2013 Internet Systems Consortium.<br \/>\nAll rights reserved.<br \/>\nFor info, please visit https:\/\/www.isc.org\/software\/dhcp\/<br \/>\nNot searching LDAP since ldap-server, ldap-port and ldap-base-dn were not<br \/>\nspecified <span class=\"token keyword\">in<\/span> the config fil<\/p>\n<h4>\u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<\/h4>\n<p><span class=\"token comment\"># \u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl enable dhcpd &#8211;now<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u670d\u52a1\u72b6\u6001<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl status dhcpd<\/span><\/p>\n<h4>\u914d\u7f6eDHCP\u5ba2\u6237\u7aef<\/h4>\n<p>dhcp-client1(\u666e\u901a\u5458\u5de5)<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u4e00\u4e2a\u81ea\u52a8\u83b7\u53d6ip\u8fde\u63a5&#xff0c;\u5047\u8bbe\u7f51\u5361\u8bbe\u5907\u540d\u4e3aens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client1 ~ <span class=\"token number\">11<\/span>:23:30<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection add con-name dynamic type ethernet ipv4.method auto ifname ens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client1 ~ <span class=\"token number\">12<\/span>:28:17<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up dynamic<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client1 ~ <span class=\"token number\">12<\/span>:28:36<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ip addr show ens33<\/span><br \/>\n<span class=\"token number\">2<\/span>: ens33: <span class=\"token operator\">&lt;<\/span>BROADCAST,MULTICAST,UP,LOWER_UP<span class=\"token operator\">&gt;<\/span> mtu <span class=\"token number\">1500<\/span> qdisc pfifo_fast state UP group default qlen <span class=\"token number\">1000<\/span><br \/>\n    link\/ether 00:0c:29:4d:17:91 brd ff:ff:ff:ff:ff:ff<br \/>\n    inet <span class=\"token number\">10.1<\/span>.8.101\/24 brd <span class=\"token number\">10.1<\/span>.8.255 scope global noprefixroute dynamic ens33<br \/>\n       valid_lft 590sec preferred_lft 590sec<br \/>\n    inet6 fe80::45d4:4eb4:c9bb:69b4\/64 scope <span class=\"token function\">link<\/span> noprefixroute<br \/>\n       valid_lft forever preferred_lft forever<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-client1 ~ <span class=\"token number\">12<\/span>:28:47<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/etc\/resolv.conf<\/span><br \/>\n<span class=\"token comment\"># Generated by NetworkManager<\/span><br \/>\nsearch xiaoma.cloud<br \/>\nnameserver <span class=\"token number\">223.5<\/span>.5.5<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-client1 ~ <span class=\"token number\">12<\/span>:29:10<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># route -n<\/span><br \/>\nKernel IP routing table<br \/>\nDestination     Gateway         Genmask         Flags Metric Ref    Use Iface<br \/>\n<span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">10.1<\/span>.8.2        <span class=\"token number\">0.0<\/span>.0.0         UG    <span class=\"token number\">100<\/span>    <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> ens33<br \/>\n<span class=\"token number\">10.1<\/span>.8.0        <span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">255.255<\/span>.255.0   U     <span class=\"token number\">100<\/span>    <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> ens33<br \/>\n<span class=\"token number\">192.168<\/span>.122.0   <span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">255.255<\/span>.255.0   U     <span class=\"token number\">0<\/span>      <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> virbr0<\/p>\n<h4>\u57fa\u4e8eMAC\u5730\u5740\u9884\u7559IP\u5730\u5740<\/h4>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d&#xff0c;host\u58f0\u660e\u53ef\u4ee5\u5c06MAC\u5730\u5740\u7ed1\u5b9a\u5230IP\u5730\u5740\u3002 \u6b64\u914d\u7f6e\u5bf9\u4e8e\u59cb\u7ec8\u4e3a\u7279\u5b9a\u7cfb\u7edf\u7684\u7f51\u7edc\u63a5\u53e3\u63d0\u4f9b\u76f8 \u540c\u7684IP\u5730\u5740\u7279\u522b\u6709\u7528&#xff0c;\u5c24\u5176\u662fWeb\u6216\u6570\u636e\u5e93\u7cfb\u7edf\u4e4b\u7c7b\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>dhcp-client2(\u7ecf\u7406MAC\u5730\u5740\u67e5\u770b<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ip link show ens33<\/span><br \/>\n<span class=\"token number\">2<\/span>: ens33: <span class=\"token operator\">&lt;<\/span>BROADCAST,MULTICAST,UP,LOWER_UP<span class=\"token operator\">&gt;<\/span> mtu <span class=\"token number\">1500<\/span> qdisc pfifo_fast state UP<br \/>\nmode DEFAULT group default qlen <span class=\"token number\">1000<\/span><br \/>\nlink\/ether <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>00:0c:29:9f:76:bb<span class=\"token variable\">&#096;<\/span><\/span> brd ff:ff:ff:ff:ff:ff<\/p>\n<p>\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d&#xff0c;\u670d\u52a1\u5668\u59cb\u7ec8\u4e3aMAC\u5730\u5740\u662f 00:0c:29:02:49:2a \u7684\u7cfb\u7edf\u5206\u914d10.1.8.88\u5730\u5740\u3002<\/p>\n<p><span class=\"token comment\"># \u5728\/etc\/dhcp\/dhcpd.conf\u6700\u540e\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9&#xff1a;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/dhcp\/dhcpd.conf<\/span><br \/>\n<span class=\"token function\">host<\/span> client.xiaoma.cloud <span class=\"token punctuation\">{<\/span><br \/>\nhardware ethernet 00:0c:29:9f:76:bb<span class=\"token punctuation\">;<\/span><br \/>\nfixed-address <span class=\"token number\">10.1<\/span>.8.88<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u91cd\u542f\u670d\u52a1<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl restart dhcpd<\/span><\/p>\n<p>\u5ba2\u6237\u7aef\u9a8c\u8bc1<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5e76\u6fc0\u6d3b\u8fde\u63a5<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~ <span class=\"token number\">13<\/span>:53:04<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection add con-name dynamic type ethernet ipv4.method auto ifname ens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~ <span class=\"token number\">13<\/span>:53:17<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up dynamic<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~ <span class=\"token number\">13<\/span>:53:24<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ip addr show ens33<\/span><br \/>\n<span class=\"token number\">2<\/span>: ens33: <span class=\"token operator\">&lt;<\/span>BROADCAST,MULTICAST,UP,LOWER_UP<span class=\"token operator\">&gt;<\/span> mtu <span class=\"token number\">1500<\/span> qdisc pfifo_fast state UP group default qlen <span class=\"token number\">1000<\/span><br \/>\n    link\/ether 00:0c:29:9f:76:bb brd ff:ff:ff:ff:ff:ff<br \/>\n    inet <span class=\"token number\">10.1<\/span>.8.88\/24 brd <span class=\"token number\">10.1<\/span>.8.255 scope global noprefixroute dynamic ens33<br \/>\n       valid_lft 597sec preferred_lft 597sec<br \/>\n    inet6 fe80::ff27:a4e6:2f07:d6fd\/64 scope <span class=\"token function\">link<\/span> noprefixroute<br \/>\n       valid_lft forever preferred_lft forever<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~ <span class=\"token number\">13<\/span>:53:28<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/etc\/resolv.conf<\/span><br \/>\n<span class=\"token comment\"># Generated by NetworkManager<\/span><br \/>\nsearch xiaoma.cloud<br \/>\nnameserver <span class=\"token number\">223.5<\/span>.5.5<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-client2 ~ <span class=\"token number\">13<\/span>:53:42<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># route -n<\/span><br \/>\nKernel IP routing table<br \/>\nDestination     Gateway         Genmask         Flags Metric Ref    Use Iface<br \/>\n<span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">10.1<\/span>.8.2        <span class=\"token number\">0.0<\/span>.0.0         UG    <span class=\"token number\">100<\/span>    <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> ens33<br \/>\n<span class=\"token number\">10.1<\/span>.8.0        <span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">255.255<\/span>.255.0   U     <span class=\"token number\">100<\/span>    <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> ens33<br \/>\n<span class=\"token number\">192.168<\/span>.122.0   <span class=\"token number\">0.0<\/span>.0.0         <span class=\"token number\">255.255<\/span>.255.0   U     <span class=\"token number\">0<\/span>      <span class=\"token number\">0<\/span>        <span class=\"token number\">0<\/span> virbr0<\/p>\n<h2>DHCP\u4e2d\u7ee7\u670d\u52a1\u5668<\/h2>\n<h3>DHCP \u4e2d\u7ee7\u4ecb\u7ecd<\/h3>\n<p>\u524d\u6587&#xff0c;\u6211\u4eec\u4ecb\u7ecd\u4e86DHCP\u5ba2\u6237\u7aef\u548cDHCP\u670d\u52a1\u5668\u5728\u540c\u4e00\u4e2a\u5e7f\u64ad\u57df\u4e2d\u65f6&#xff0c;DHCP\u7684\u5de5\u4f5c\u673a\u5236\u3002<\/p>\n<p>\u5982\u679cDHCP\u5ba2\u6237\u7aef\u4e0eDHCP\u670d\u52a1\u5668\u4e0d\u5904\u4e8e\u540c\u4e00\u4e2a\u5e7f\u64ad\u57df&#xff0c;\u90a3\u4e48DHCP\u5ba2\u6237\u7aef\u5e7f\u64ad\u7684DHCP Discover\u62a5\u6587&#xff0c; \u4f1a\u88ab\u7f51\u7edc\u4e2d\u7684\u4e09\u5c42\u8bbe\u5907\u4e22\u5f03&#xff0c;\u65e0\u6cd5\u88abDHCP\u670d\u52a1\u5668\u63a5\u6536&#xff0c;\u6b64\u65f6&#xff0c;\u5c31\u9700\u8981DHCP\u4e2d\u7ee7\u4ee3\u7406&#xff08;DHCP Relay  Agent&#xff09;\u3002<\/p>\n<p>DHCP\u4e2d\u7ee7\u53ef\u4ee5\u5b9e\u73b0\u5728\u4e0d\u540c\u5e7f\u64ad\u57df&#xff08;\u5982\u5b50\u7f51\u3001Vlan&#xff09;\u4e4b\u95f4\u5904\u7406\u548c\u8f6c\u53d1DHCP\u5de5\u4f5c\u65f6\u7684\u5e7f\u64ad\u62a5\u6587&#xff0c;\u4f7f\u5f97 DHCP\u5ba2\u6237\u7aef\u53ef\u4ee5\u8de8\u7f51\u6bb5\u83b7\u53d6IP\u5730\u5740\u53ca\u76f8\u5173\u53c2\u6570\u3002<\/p>\n<h3>DHCP \u4e2d\u7ee7\u5de5\u4f5c\u539f\u7406<\/h3>\n<p>\u6709DHCP\u4e2d\u7ee7\u7684\u573a\u666f\u4e2d&#xff0c;DHCP\u4e2d\u7ee7\u5728DHCP\u670d\u52a1\u5668\u548cDHCP\u5ba2\u6237\u7aef\u4e4b\u95f4\u8f6c\u53d1DHCP\u62a5\u6587&#xff0c;\u4ee5\u4fdd\u8bc1DHCP\u670d \u52a1\u5668\u548cDHCP\u5ba2\u6237\u7aef\u53ef\u4ee5\u6b63\u5e38\u4ea4\u4e92,\u4e0b\u56fe\u793a\u610f\u4e86\u4e2d\u7ee7\u60c5\u5f62\u4e0b&#xff0c;DHCP\u5ba2\u6237\u7aef\u4e0eDHCP\u670d\u52a1\u5668\u7684\u62a5\u6587\u4ea4\u4e92\u8fc7 \u7a0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-08-04jfgcz0fjayt.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5728\u6709\u4e2d\u7ee7\u7684\u60c5\u5f62\u4e0b&#xff0c;DHCP\u5ba2\u6237\u7aef\u7533\u8bf7IP\u5730\u5740\u4ecd\u7136\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5&#xff1a;\u53d1\u73b0\u3001\u63d0\u4f9b\u3001\u8bf7\u6c42\u548c\u786e\u8ba4&#xff08;\u5426\u8ba4&#xff09;\u3002\u53ea \u662f\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u62a5\u6587\u4f1a\u88ab\u540c\u5e7f\u64ad\u57df\u5185\u7684DHCP\u4e2d\u7ee7\u6536\u5230&#xff0c;\u7136\u540e\u7531DHCP\u4e2d\u7ee7\u5c06DHCP\u62a5\u6587\u4ee5\u5355\u64ad\u7684\u5f62\u5f0f\u8f6c \u53d1\u7ed9\u670d\u52a1\u5668\u3002\u540c\u6837&#xff0c;\u670d\u52a1\u5668\u54cd\u5e94\u7684DHCP\u62a5\u6587\u4ee5\u5355\u64ad\u5f62\u5f0f\u53d1\u7ed9DHCP\u4e2d\u7ee7&#xff0c;\u7136\u540e\u518d\u7531\u4e2d\u7ee7\u8f6c\u53d1\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<h3>DHCP \u4e2d\u7ee7\u5b9e\u8df5<\/h3>\n<h4>\u5b9e\u9a8c\u4e3b\u673a<\/h4>\n<table>\n<tr>\u4e3b\u673a\u540dIP\u5730\u5740\u865a\u62df\u7f51\u7edc<\/tr>\n<tbody>\n<tr>\n<td>dhcp-server<\/td>\n<td>10.1.8.10\/24<\/td>\n<td>vmnet8<\/td>\n<\/tr>\n<tr>\n<td>dhcp-relay<\/td>\n<td>10.1.8.20\/24<\/td>\n<td>vmnet8<\/td>\n<\/tr>\n<tr>\n<td>dhcp-relay<\/td>\n<td>10.1.1.20\/24<\/td>\n<td>vmnet1<\/td>\n<\/tr>\n<tr>\n<td>dhcp-client<\/td>\n<td>\u81ea\u52a8\u83b7\u53d6<\/td>\n<td>vmnet1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>vmnet1\u548cvmnet8\u5173\u95eddhcp\u529f\u80fd\u3002<\/p>\n<h4>\u5b9e\u9a8c\u62d3\u6251<\/h4>\n<p><img decoding=\"async\" src=\"2026-08-04tdate5tl52i.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5148\u5c06dhcp-client\u673a\u5668\u7684\u7f51\u5361\u6539\u4e3avmnet1<\/p>\n<p><img decoding=\"async\" src=\"2026-08-04zdshddughpf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-08-04rogzlv31i2o.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7ed9dhcp-relay\u6dfb\u52a0\u7b2c\u4e8c\u5757\u7f51\u5361(vmnet1)<\/p>\n<p><img decoding=\"async\" src=\"2026-08-04sjpfnxh5bmq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-08-04q0rxocqaegw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-08-04yjfipz550rg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-08-04vlhfcv0yisf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u914d\u7f6e3\u53f0\u670d\u52a1\u5668IP\u5730\u5740,\u4e3b\u673a\u540d<\/p>\n<p>dhcp-server:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-server<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection modify ens33 ipv4.method manual ipv4.addresses 10.1.8.10\/24 ipv4.gateway 10.1.8.2 ipv4.dns 10.1.8.2 autoconnect yes<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens33<\/span><\/p>\n<p>dhcp-relay:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-relay    <\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection modify ens33 ipv4.method manual ipv4.addresses 10.1.8.20\/24 ipv4.gateway 10.1.8.2 ipv4.dns 10.1.8.2 autoconnect yes<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection add ifname ens35 con-name ens35 type ethernet ipv4.method manual ipv4.addresses 10.1.1.20\/24<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens36<\/span><\/p>\n<p>dhcp-client:<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># hostnamectl set-hostname dhcp-client<\/span><\/p>\n<h4>\u914d\u7f6e dhcp-server<\/h4>\n<h5>\u914d\u7f6e dhcp<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5\u8f6f\u4ef6\u5305<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum install -y dhcp<\/span><\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e\u9632\u706b\u5899&#xff0c;\u653e\u884cdhcp\u670d\u52a1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># firewall-cmd &#8211;add-service&#061;dhcp<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># firewall-cmd &#8211;add-service&#061;dhcp &#8211;permanent<\/span><\/p>\n<p><span class=\"token comment\"># A\u7a97\u53e3<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/usr\/share\/doc\/dhcp-*\/dhcpd.conf.example<\/span><\/p>\n<p><span class=\"token comment\"># B\u7a97\u53e3&#xff0c;\u4eceA\u7a97\u53e3\u590d\u5236\u6848\u4f8b<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/dhcp\/dhcpd.conf<\/span><br \/>\nsubnet <span class=\"token number\">10.1<\/span>.8.0 netmask <span class=\"token number\">255.255<\/span>.255.0 <span class=\"token punctuation\">{<\/span><br \/>\n  range <span class=\"token number\">10.1<\/span>.8.100 <span class=\"token number\">10.1<\/span>.8.200<span class=\"token punctuation\">;<\/span><br \/>\n  option routers <span class=\"token number\">10.1<\/span>.8.20<span class=\"token punctuation\">;<\/span><br \/>\n  option broadcast-address <span class=\"token number\">10.1<\/span>.8.255<span class=\"token punctuation\">;<\/span><br \/>\n  option domain-name-servers <span class=\"token number\">223.5<\/span>.5.5<span class=\"token punctuation\">;<\/span><br \/>\n  option domain-search <span class=\"token string\">&#034;xiaoma.cloud&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  default-lease-time <span class=\"token number\">600<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  max-lease-time <span class=\"token number\">7200<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token comment\"># \u65b0\u589e\u4e00\u4e2a\u5730\u5740\u6c60<\/span><br \/>\nsubnet <span class=\"token number\">10.1<\/span>.1.0 netmask <span class=\"token number\">255.255<\/span>.255.0 <span class=\"token punctuation\">{<\/span><br \/>\n  range <span class=\"token number\">10.1<\/span>.1.100 <span class=\"token number\">10.1<\/span>.1.200<span class=\"token punctuation\">;<\/span><br \/>\n  option routers <span class=\"token number\">10.1<\/span>.1.20<span class=\"token punctuation\">;<\/span><br \/>\n  option broadcast-address <span class=\"token number\">10.1<\/span>.1.255<span class=\"token punctuation\">;<\/span><br \/>\n  option domain-name-servers <span class=\"token number\">223.5<\/span>.5.5<span class=\"token punctuation\">;<\/span><br \/>\n  option domain-search <span class=\"token string\">&#034;xiaoma.cloud&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  default-lease-time <span class=\"token number\">600<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  max-lease-time <span class=\"token number\">7200<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl enable dhcpd &#8211;now<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u670d\u52a1\u72b6\u6001<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl status dhcpd<\/span><\/p>\n<h5>\u914d\u7f6e\u8def\u7531<\/h5>\n<p>DHCP server\u5fc5\u987b\u914d\u7f6e\u4e00\u4e2a\u5230\u8fbe DHCP relay \u63a5\u6536 DHCP \u5e7f\u64ad\u7f51\u5361\u7684\u8def\u7531\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u914d\u7f6e\u8be5\u8def\u7531&#xff0c;dhcp server \u65e0\u6cd5\u5c06\u6570\u636e\u5305\u8fd4\u56de\u7ed9 10.1.1.20 \u670d\u52a1\u5668&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u65e0\u6cd5\u63d0\u4f9bdhcp\u7ed9  dhcp-client\u3002<\/p>\n<p><span class=\"token comment\"># \u5f53\u524d\u5b9e\u9a8c\u73af\u5883: DHCP relay\u7684\u7b2c\u4e8c\u4e2a\u7f51\u5361&#xff0c;\u5730\u5740\u662f&#xff1a;10.1.1.20\/24 \u3002<\/span><br \/>\n<span class=\"token comment\"># dhcp-server \u53bb\u5f80 10.1.1.20\/32 \u8def\u7531\u4e0b\u4e00\u8df3\u662f 10.1.8.20<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection modify ens33 ipv4.routes &#039;10.1.1.20\/32 10.1.8.20&#039;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens33<\/span><\/p>\n<h4>\u914d\u7f6e dhcp-relay<\/h4>\n<h5>\u914d\u7f6e dhcp relay<\/h5>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum install -y dhcp<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cp \/usr\/lib\/systemd\/system\/dhcrelay.service \/etc\/systemd\/system\/dhcrelay.service<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/systemd\/system\/dhcrelay.service<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>Unit<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">Description<\/span><span class=\"token operator\">&#061;<\/span>DHCP Relay Agent Daemon<br \/>\n<span class=\"token assign-left variable\">Documentation<\/span><span class=\"token operator\">&#061;<\/span>man:dhcrelay<span class=\"token punctuation\">(<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token assign-left variable\">Wants<\/span><span class=\"token operator\">&#061;<\/span>network-online.target<br \/>\n<span class=\"token assign-left variable\">After<\/span><span class=\"token operator\">&#061;<\/span>network-online.target<br \/>\n<span class=\"token punctuation\">[<\/span>Service<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">Type<\/span><span class=\"token operator\">&#061;<\/span>notify<br \/>\n<span class=\"token comment\"># \u5728 ExecStart \u53c2\u6570\u672b\u5c3e\u6dfb\u52a0 DHCP \u670d\u52a1\u5668 IP \u5730\u5740<\/span><br \/>\n<span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/sbin\/dhcrelay <span class=\"token parameter variable\">-d<\/span> &#8211;no-pid <span class=\"token number\">10.1<\/span>.8.10<br \/>\n<span class=\"token assign-left variable\">StandardError<\/span><span class=\"token operator\">&#061;<\/span>null<br \/>\n<span class=\"token punctuation\">[<\/span>Install<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">WantedBy<\/span><span class=\"token operator\">&#061;<\/span>multi-user.target<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl enable dhcrelay.service &#8211;now<\/span><\/p>\n<h5>\u914d\u7f6e\u8def\u7531\u8f6c\u53d1<\/h5>\n<p><span class=\"token comment\"># \u5f00\u542f\u8def\u7531\u8f6c\u53d1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># echo &#034;net.ipv4.ip_forward&#061;1&#034; &gt;&gt; \/etc\/sysctl.conf<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;dhcp-relay ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># sysctl -p \/etc\/sysctl.conf<\/span><br \/>\nnet.ipv4.ip_forward <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1<\/span><\/p>\n<h4>\u5ba2\u6237\u7aef\u6d4b\u8bd5<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection add con-name dynamic type ethernet ipv4.method auto ifname ens33<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up dynamic<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ip -br a<\/span><br \/>\nlo               UNKNOWN        <span class=\"token number\">127.0<\/span>.0.1\/8 ::1\/128<br \/>\nens33            UP             <span class=\"token number\">10.1<\/span>.1.131\/24 fe80::a614:3cb9:71d6:9829\/64  <span class=\"token comment\">#\u83b7\u53d6\u5230\u5730\u5740<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u786e\u5b9e\u662fdhcp-server\u5206\u914d\u7684<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/var\/lib\/dhcpd\/dhcpd.leases<\/span><br \/>\n<span class=\"token comment\"># The format of this file is documented in the dhcpd.leases(5) manual page.<\/span><br \/>\n<span class=\"token comment\"># This lease file was written by isc-dhcp-4.2.5<\/span><\/p>\n<p>server-duid <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\000\">\\\\000<\/span><span class=\"token entity\" title=\"\\\\001\">\\\\001<\/span><span class=\"token entity\" title=\"\\\\000\">\\\\000<\/span><span class=\"token entity\" title=\"\\\\001\">\\\\001<\/span>2<span class=\"token entity\" title=\"\\\\004\">\\\\004<\/span>a<span class=\"token entity\" title=\"\\\\323\">\\\\323<\/span><span class=\"token entity\" title=\"\\\\000\">\\\\000<\/span><span class=\"token entity\" title=\"\\\\014\">\\\\014<\/span>)<span class=\"token entity\" title=\"\\\\367\">\\\\367<\/span>5v&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>lease <span class=\"token number\">10.1<\/span>.1.131 <span class=\"token punctuation\">{<\/span><br \/>\n  starts <span class=\"token number\">2<\/span> <span class=\"token number\">2026<\/span>\/08\/04 08:44:57<span class=\"token punctuation\">;<\/span><br \/>\n  ends <span class=\"token number\">2<\/span> <span class=\"token number\">2026<\/span>\/08\/04 08:54:57<span class=\"token punctuation\">;<\/span><br \/>\n  cltt <span class=\"token number\">2<\/span> <span class=\"token number\">2026<\/span>\/08\/04 08:44:57<span class=\"token punctuation\">;<\/span><br \/>\n  binding state active<span class=\"token punctuation\">;<\/span><br \/>\n  next binding state <span class=\"token function\">free<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  rewind binding state <span class=\"token function\">free<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  hardware ethernet 00:0c:29:28:6d:5d<span class=\"token punctuation\">;<\/span><br \/>\n  client-hostname <span class=\"token string\">&#034;dhcp-client&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DHCP\u670d\u52a1\u5668<br \/>\n\u4f20\u7edf\u624b\u52a8\u914d\u7f6e\u53c2\u6570\u7684\u95ee\u9898<br \/>\n\u53c2\u6570\u591a\u3001\u7406\u89e3\u96be<br \/>\n\u666e\u901a\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u53c2\u6570\u4e0d\u4e86\u89e3&#xff0c;\u7ecf\u5e38\u914d\u7f6e\u9519\u8bef&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7f51\u7edc\u3002\u968f\u610f\u914d\u7f6e ip \u5730\u5740\u5bfc\u81f4\u5730\u5740\u51b2\u7a81\u66f4\u662f\u65f6\u5e38\u53d1\u751f\u3002<br \/>\n\u5de5\u4f5c\u91cf\u5927<br \/>\n\u4ea4\u7531\u7f51\u7edc\u7ba1\u7406\u5458\u7edf\u4e00\u914d\u7f6e&#xff0c;\u5de5\u4f5c\u91cf\u5de8\u5927&#xff0c;\u5c5e\u4e8e\u91cd\u590d\u6027\u52b3\u52a8\u3002\u7f51\u7edc\u7ba1\u7406\u5458\u9700\u8981\u63d0\u524d\u5bf9 ip \u5730\u5740\u8fdb\u884c\u89c4\u5212\u3001\u5206\u914d\u5230\u4e2a\u4eba\u3002<br \/>\n\u5229\u7528\u7387\u4f4e<br \/>\n\u4f01\u4e1a\u7f51\u4e2d\u6bcf\u4e2a\u4eba\u56fa\u5b9a\u4f7f\u7528\u4e00\u4e2a IP \u5730\u5740&#xff0c;IP \u5730\u5740\u5229\u7528\u7387\u4f4e&#xff0c;\u6709\u4e9b\u5730\u5740\u53ef\u80fd\u957f\u671f\u5904\u4e8e\u672a\u4f7f\u7528\u72b6\u6001\u3002<br \/>\n\u7075\u6d3b\u6027<\/p>\n","protected":false},"author":2,"featured_media":90149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,44],"topic":[],"class_list":["post-90169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DHCP\u670d\u52a1\u5668 - \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\/90169.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DHCP\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"DHCP\u670d\u52a1\u5668 \u4f20\u7edf\u624b\u52a8\u914d\u7f6e\u53c2\u6570\u7684\u95ee\u9898 \u53c2\u6570\u591a\u3001\u7406\u89e3\u96be \u666e\u901a\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u53c2\u6570\u4e0d\u4e86\u89e3&#xff0c;\u7ecf\u5e38\u914d\u7f6e\u9519\u8bef&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7f51\u7edc\u3002\u968f\u610f\u914d\u7f6e ip \u5730\u5740\u5bfc\u81f4\u5730\u5740\u51b2\u7a81\u66f4\u662f\u65f6\u5e38\u53d1\u751f\u3002 \u5de5\u4f5c\u91cf\u5927 \u4ea4\u7531\u7f51\u7edc\u7ba1\u7406\u5458\u7edf\u4e00\u914d\u7f6e&#xff0c;\u5de5\u4f5c\u91cf\u5de8\u5927&#xff0c;\u5c5e\u4e8e\u91cd\u590d\u6027\u52b3\u52a8\u3002\u7f51\u7edc\u7ba1\u7406\u5458\u9700\u8981\u63d0\u524d\u5bf9 ip \u5730\u5740\u8fdb\u884c\u89c4\u5212\u3001\u5206\u914d\u5230\u4e2a\u4eba\u3002 \u5229\u7528\u7387\u4f4e \u4f01\u4e1a\u7f51\u4e2d\u6bcf\u4e2a\u4eba\u56fa\u5b9a\u4f7f\u7528\u4e00\u4e2a IP \u5730\u5740&#xff0c;IP \u5730\u5740\u5229\u7528\u7387\u4f4e&#xff0c;\u6709\u4e9b\u5730\u5740\u53ef\u80fd\u957f\u671f\u5904\u4e8e\u672a\u4f7f\u7528\u72b6\u6001\u3002 \u7075\u6d3b\u6027\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90169.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T11:26:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc560e7a5.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=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90169.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90169.html\",\"name\":\"DHCP\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-04T11:26:16+00:00\",\"dateModified\":\"2026-08-04T11:26:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90169.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90169.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90169.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DHCP\u670d\u52a1\u5668\"}]},{\"@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":"DHCP\u670d\u52a1\u5668 - \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\/90169.html","og_locale":"zh_CN","og_type":"article","og_title":"DHCP\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"DHCP\u670d\u52a1\u5668 \u4f20\u7edf\u624b\u52a8\u914d\u7f6e\u53c2\u6570\u7684\u95ee\u9898 \u53c2\u6570\u591a\u3001\u7406\u89e3\u96be \u666e\u901a\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u53c2\u6570\u4e0d\u4e86\u89e3&#xff0c;\u7ecf\u5e38\u914d\u7f6e\u9519\u8bef&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u7f51\u7edc\u3002\u968f\u610f\u914d\u7f6e ip \u5730\u5740\u5bfc\u81f4\u5730\u5740\u51b2\u7a81\u66f4\u662f\u65f6\u5e38\u53d1\u751f\u3002 \u5de5\u4f5c\u91cf\u5927 \u4ea4\u7531\u7f51\u7edc\u7ba1\u7406\u5458\u7edf\u4e00\u914d\u7f6e&#xff0c;\u5de5\u4f5c\u91cf\u5de8\u5927&#xff0c;\u5c5e\u4e8e\u91cd\u590d\u6027\u52b3\u52a8\u3002\u7f51\u7edc\u7ba1\u7406\u5458\u9700\u8981\u63d0\u524d\u5bf9 ip \u5730\u5740\u8fdb\u884c\u89c4\u5212\u3001\u5206\u914d\u5230\u4e2a\u4eba\u3002 \u5229\u7528\u7387\u4f4e \u4f01\u4e1a\u7f51\u4e2d\u6bcf\u4e2a\u4eba\u56fa\u5b9a\u4f7f\u7528\u4e00\u4e2a IP \u5730\u5740&#xff0c;IP \u5730\u5740\u5229\u7528\u7387\u4f4e&#xff0c;\u6709\u4e9b\u5730\u5740\u53ef\u80fd\u957f\u671f\u5904\u4e8e\u672a\u4f7f\u7528\u72b6\u6001\u3002 \u7075\u6d3b\u6027","og_url":"https:\/\/www.wsisp.com\/helps\/90169.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-04T11:26:16+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804112614-6a71cc560e7a5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90169.html","url":"https:\/\/www.wsisp.com\/helps\/90169.html","name":"DHCP\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-04T11:26:16+00:00","dateModified":"2026-08-04T11:26:16+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90169.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90169.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90169.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DHCP\u670d\u52a1\u5668"}]},{"@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\/90169","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=90169"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90149"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90169"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}