{"id":472,"date":"2025-10-22T09:58:36","date_gmt":"2025-10-22T01:58:36","guid":{"rendered":"https:\/\/www.youvii.site\/?p=472"},"modified":"2025-10-22T09:58:36","modified_gmt":"2025-10-22T01:58:36","slug":"71sikepeizhidhcpv4","status":"publish","type":"post","link":"https:\/\/www.youvii.site\/index.php\/archives\/71sikepeizhidhcpv4","title":{"rendered":"7.1\u601d\u79d1\u914d\u7f6eDHCPv4"},"content":{"rendered":"<h1>7.1 \u601d\u79d1\u914d\u7f6eDHCPv4<\/h1>\n<p><strong>\u601d\u79d1IOS DHCPv4\u670d\u52a1\u5668<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u601d\u79d1 IOS DHCPv4\u670d\u52a1\u5668\uff1b<\/p>\n<p><strong>1\u3001\u6392\u9664IPv4\u5730\u5740 \uff08**<\/strong><font style=\"color:#58585b;background-color:#ffffff;\">Exclude IPv4 Addresses<\/font><strong>**\uff09<\/strong><\/p>\n<p>\u9664\u975e\u914d\u7f6e\u6392\u9664\u7279\u5b9a\u5730\u5740\uff0c\u5426\u5219\u8def\u7531\u5668\u5c06\u5145\u5f53DHCPv4\u670d\u52a1\u5668\uff0c\u4e3a\u5ba2\u6237\u7aef\u5206\u914d\u5730\u5740\u6c60\u4e2d\u6240\u6709\u5730\u5740\u6c60\u3002\u901a\u5e38\u5c06\u5730\u5740\u6c60\u4e2d\u7684\u67d0\u4e9bIPv4\u5730\u5740\u5206\u914d\u7ed9\u9700\u8981\u9759\u6001\u5730\u5740\u5206\u914d\u7684\u7f51\u7edc\u8bbe\u5907\u3002\u56e0\u6b64\uff0c\u8fd9\u4e9bIPv4\u5730\u5740\u4e0d\u5e94\u5206\u914d\u7ed9\u5176\u4ed6\u8bbe\u5907\u3002<\/p>\n<p><font style=\"background-color:#ffff00;\">\u6392\u9664IPv4\u5730\u5740\u7684\u547d\u4ee4\uff1a<\/font><strong><font style=\"color:#ffffff;background-color:#414141;\">Router\uff08config\uff09# ip dhcp excluded-address <\/font><\/strong><em><font style=\"color:#ffffff;background-color:#414141;\">low-address [high-address]<\/font><\/em><\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u8303\u56f4\u5185\u7684\u4f4e\u4f4d\u5730\u5740\uff08low-address\uff09\u548c\u9ad8\u4f4d\u5730\u5740\uff08high-address\uff09\u6765\u6392\u9664\u67d0\u4e00\u4e2a\u5730\u5740\u6216\u67d0\u4e00\u4e2a\u8303\u56f4\u5185\u7684\u6240\u6709\u5730\u5740\u3002\u6392\u9664\u5730\u5740\u5e94\u5305\u62ec\u5206\u914d\u7ed9\u8def\u7531\u5668\u3001\u670d\u52a1\u5668\u3001\u6253\u5370\u673a\u548c\u5176\u4ed6\u5df2\u7ecf\u624b\u52a8\u914d\u7f6e\u6216\u5373\u5c06\u914d\u7f6e\u7684\u5730\u5740\u3002\u53ef\u4ee5\u591a\u6b21\u8f93\u5165\u6b64\u547d\u4ee4\u3002<\/p>\n<p><strong>2\u3001\u5b9a\u4e49\u4e00\u4e2aDHCPv4\u5730\u5740\u6c60\u7684\u540d\u79f0\u3002\uff08**<\/strong><font style=\"color:#58585b;background-color:#ffffff;\">Define a DHCPv4 Pool Name<\/font><strong>**\uff09<\/strong><\/p>\n<p>\u914d\u7f6eDHCPv4\u670d\u52a1\u5668\u7684\u5de5\u4f5c\u8fd8\u5305\u62ec\u5b9a\u4e49\u5f85\u5206\u914d\u7684\u5730\u5740\u6c60\u3002<\/p>\n<p><font style=\"background-color:#ffff00;\">\u5b9a\u4e49\u5730\u5740\u6c60\u7684\u547d\u4ee4: <\/font><strong><font style=\"color:#ffffff;background-color:#414141;\"> Router\uff08config\uff09# ip dhcp pool <\/font><\/strong><em><font style=\"color:#ffffff;background-color:#414141;\">pool-name <\/font><\/em><\/p>\n<pre class=\"prettyprint linenums\" ><code> **&lt;font style=\"color:#ffffff;background-color:#414141;\"&gt; Router\uff08dhcp-config\uff09# &lt;\/font&gt;**<\/code><\/pre>\n<p>\u793a\u4f8b\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u51fa\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u5730\u5740\u6c60\uff0c\u5e76\u4e14\u8ba9\u8def\u7531\u5668\u8fdb\u5165DHCPv4\u914d\u7f6e\u6a21\u5f0f\uff0c\u8fd9\u79cd\u6a21\u5f0f\u7684\u63d0\u793a\u7b26\u662fRouter\uff08dhcpp-config\uff09#<\/p>\n<p><strong>3\u3001\u914d\u7f6eDHCPv4\u5730\u5740\u6c60\u3002 \uff08**<\/strong><font style=\"color:#58585b;background-color:#ffffff;\">Configure the DHCPv4 Pool<\/font><strong>**\uff09<\/strong><\/p>\n<p><font style=\"background-color:#ffff00;\">\u5fc5\u987b\u914d\u7f6e\u5730\u5740\u6c60\u548c\u9ed8\u8ba4\u7f51\u5173\u8def\u7531\u5668<\/font>\u3002\u4f7f\u7528network\u8bed\u53e5\u6765\u5b9a\u4e49\u53ef\u7528\u5730\u5740\u8303\u56f4\u3002\u4f7f\u7528default-router\u547d\u4ee4\u6765\u5b9a\u4e49\u9ed8\u8ba4\u7f51\u5173\u8def\u7531\u5668\u3002\u901a\u5e38\uff0c\u7f51\u5173\u662f\u6700\u63a5\u8fd1\u5ba2\u6237\u7aef\u8bbe\u5907\u7684\u8def\u7531\u5668\u7684LAN\u63a5\u53e3\u3002\u867d\u7136\u53ea\u9700\u8981\u4e00\u4e2a\u7f51\u5173\uff0c\u4f46\u662f\u5982\u679c\u6709\u591a\u4e2a\u7f51\u5173\uff0c\u60a8\u6700\u591a\u53ef\u5217\u51fa\u516b\u4e2a\u5730\u5740\u3002<\/p>\n<p>\u5176\u4ed6DHCPv4\u6c60\u547d\u4ee4\u4e3a\u53ef\u9009\u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u4f7f\u7528dns-server\u547d\u4ee4\u6765\u914d\u7f6e\u53ef\u7528\u4e3aDHCPv4\u5ba2\u6237\u7aef\u63d0\u4f9b\u670d\u52a1\u7684DNS\u670d\u52a1\u5668IPv4\u5730\u5740\u3002domain-name\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5b9a\u4e49\u57df\u540d\u3002\u4f7f\u7528lease\u547d\u4ee4\u53ef\u4ee5\u66f4\u6539DHCPv4\u7684\u79df\u671f\u3002\u9ed8\u8ba4\u79df\u7528\u4e3a\u4e00\u5929\u3002netbios-name-server\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5b9a\u4e49NetBIOS WINS\u670d\u52a1\u5668\u3002<\/p>\n<div class=\"table-responsive\"><table class=\"table\" >\n<thead>\n<tr>\n<th><strong><font style=\"color:#58585b;background-color:#ffffff;\">\u4efb\u52a1<\/font><\/strong><\/th>\n<th><strong><font style=\"color:#58585b;background-color:#ffffff;\">IOS \u547d\u4ee4<\/font><\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49\u5730\u5740\u6c60\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">network<\/font><\/strong><em><font style=\"color:#58585b;background-color:#ffffff;\">network-number<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"> [<\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">mask<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"><\/td>\n<td>\/ <\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">prefix-length<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\">]<\/font><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<\/tr>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49\u9ed8\u8ba4\u8def\u7531\u5668\u6216\u7f51\u5173\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">default-router<\/font><\/strong><font style=\"color:#58585b;background-color:#ffffff;\"> address [ <\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">address2\u2026.address8<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\">]<\/font><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<\/tr>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49 DNS \u670d\u52a1\u5668\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">dns-server<\/font><\/strong><em><font style=\"color:#58585b;background-color:#ffffff;\">address<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"> [ <\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">address2\u2026address8<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\">]<\/font><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<\/tr>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49\u57df\u540d\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">domain-name<\/font><\/strong><em><font style=\"color:#58585b;background-color:#ffffff;\">domain<\/font><\/em><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<\/tr>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49 DHCP \u79df\u671f\u7684\u6301\u7eed\u65f6\u95f4\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">lease<\/font><\/strong><font style=\"color:#58585b;background-color:#ffffff;\"> {<\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">days<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"> [<\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">hours<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"> [ <\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">minutes<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\">]]<\/td>\n<td><\/font><strong><font style=\"color:#58585b;background-color:#ffffff;\">infinite<\/font><\/strong><font style=\"color:#58585b;background-color:#ffffff;\">}<\/font><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<\/tr>\n<tr>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u5b9a\u4e49 NetBIOS WINS \u670d\u52a1\u5668\u3002<\/font><\/td>\n<td><strong><font style=\"color:#58585b;background-color:#ffffff;\">netbios-name-server<\/font><\/strong><em><font style=\"color:#58585b;background-color:#ffffff;\">address<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\"> [ <\/font><em><font style=\"color:#58585b;background-color:#ffffff;\">address2\u2026address8<\/font><\/em><font style=\"color:#58585b;background-color:#ffffff;\">]<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>\u8fd9\u5f20\u8868\u5217\u51fa\u4e86\u5b8c\u6210DHCPv4\u5730\u5740\u6c60\u914d\u7f6e\u6240\u9700\u8981\u6267\u884c\u7684\u4efb\u52a1\u3002<\/p>\n<p><strong>\u914d\u7f6eDHCPv4\u793a\u4f8b<\/strong><\/p>\n<p><img loading="lazy" decoding="async" decoding=\"async\"  src=\"https:\/\/www.youvii.site\/wp-content\/themes\/lolimeow-lolimeowV13.13\/assets\/images\/loading.gif\" data-src=\"https:\/\/cdn.picui.cn\/vip\/2025\/10\/22\/68f835702be30.png\" class=\"lazy\" loading=\"lazy\" alt=\"1741671460378-9f6e17a7-2425-4ec6-8e3b-a09f48bca2a3.png\" \/><\/p>\n<p>\u6b64\u793a\u4f8b\u663e\u793a\u5982\u4f55\u628aR1\u914d\u7f6e\u6210\u4e3a192.168.10.0\/24 \u8fd9\u4e2a\u5c40\u57df\u7f51\u7684DHCPv4\u670d\u52a1\u5668\u3002<\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">ip dhcp excluded-address 192.168.10.1 192.168.10.9<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">ip dhcp excluded-address 192.168.10.254<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">ip dhcp pool LAN-POOL-1<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(dhcp-config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">network 192.168.10.0 255.255.255.0<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(dhcp-config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">default-router 192.168.10.1<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(dhcp-config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">dns-server 192.168.11.5<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(dhcp-config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">domain-name example.com<\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(dhcp-config)# <\/font><font style=\"color:#ffffff;background-color:#23241f;\">end<\/font><\/p>\n<p><font style=\"color:#ffffff;\"><br \/>\n<\/font><\/p>\n<p><strong>DHCPv4\u7684\u9a8c\u8bc1<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<div class=\"table-responsive\"><table class=\"table\" >\n<thead>\n<tr>\n<th><strong><font style=\"color:#58585b;\">\u547d\u4ee4<\/font><\/strong><\/th>\n<th><strong><font style=\"color:#58585b;\">\u63cf\u8ff0<\/font><\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>**<font style=\"color:#58585b;\">show running-config<\/td>\n<td>section dhcp<\/font>**<br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u663e\u793a\u8def\u7531\u5668\u4e0a\u914d\u7f6e\u7684 DHCPv4 \u547d\u4ee4\u3002<\/font><\/td>\n<\/tr>\n<tr>\n<td><strong><font style=\"color:#58585b;\">show ip dhcp binding<\/font><\/strong><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u663e\u793a\u6240\u6709\u7531DHCPv4\u670d\u52a1\u63d0\u4f9b\u7684 IPv4 \u5730\u5740\u4e0e MAC \u5730\u5740\u7ed1\u5b9a\u5173\u7cfb\u7684\u5217\u8868\u3002<\/font><\/td>\n<\/tr>\n<tr>\n<td><strong><font style=\"color:#58585b;\">show ip dhcp server statistics<\/font><\/strong><br \/><font style=\"color:#58585b;\">   <\/font><\/td>\n<td><font style=\"color:#58585b;background-color:#ffffff;\">\u663e\u793a\u5173\u4e8e\u5df2\u53d1\u9001\u548c\u63a5\u6536\u7684 DHCPv4 \u6d88\u606f \u7684\u6570\u91cf\u4fe1\u606f\u3002<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>\u9a8c\u8bc1DHCPv4\u7684\u914d\u7f6e<\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1# <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">show running-config | section dhcp             <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">ip dhcp excluded-address 192.168.10.1 192.168.10.9                <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">ip dhcp excluded-address 192.168.10.254                   <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">ip dhcp pool LAN-POOL-1                       <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">network 192.168.10.0 255.255.255.0                    <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">default-router 192.168.10.1                       <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">dns-server 192.168.11.5                       <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">domain-name example.com                       <\/font><\/p>\n<p>\u9a8c\u8bc1DHCPv4\u7ed1\u5b9a\u4fe1\u606f<\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1# <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">show ip dhcp binding                           <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Bindings from all pools not associated with VRF:                  <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">IP address Client-ID\/ Lease expiration Type State Interface               <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Hardware address\/                             <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">User name                                 <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">192.168.10.10 0100.5056.b3ed.d8 Sep 15 2019 8:42 AM Automatic Active GigabitEthernet0\/0\/0 <\/font><\/p>\n<p>\u9a8c\u8bc1DHCPv4\u7edf\u8ba1\u6570\u636e<\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1# <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">show ip dhcp server statistics <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Memory usage 19465    <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Address pools 1           <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Database agents 0         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Automatic bindings 2      <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Manual bindings 0         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Expired bindings 0            <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Malformed messages 0      <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Secure arp entries 0          <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Renew messages 0          <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Workspace timeouts 0      <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Static routes 0           <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Relay bindings 0          <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Relay bindings active 0       <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Relay bindings terminated 0       <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Relay bindings selecting 0        <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Message Received          <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">BOOTREQUEST 0         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCPDISCOVER 4            <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCPREQUEST 2         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCPDECLINE 0         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCPRELEASE 0         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCPINFORM 0          <\/font><\/p>\n<p>\u9a8c\u8bc1\u63a5\u6536\u5230\u4e86IPv4\u7f16\u5740\u4fe1\u606f\u7684DHCPv4\u5ba2\u6237\u7aef<\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">C:UsersStudent&gt; <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">ipconfig \/all                <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Windows IP Configuration                  <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Host Name . . . . . . . . . . . . : ciscolab              <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Primary Dns Suffix . . . . . . . :                    <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Node Type . . . . . . . . . . . . : Hybrid                <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">IP Routing Enabled. . . . . . . . : No                <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">WINS Proxy Enabled. . . . . . . . : No                <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Ethernet adapter Ethernet0:                   <\/font><\/p>\n<p><font style=\"color:#fbab18;background-color:#23241f;\">Connection-specific DNS Suffix . : example.com            <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller        <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Physical Address. . . . . . . . . : 00-05-9A-3C-7A-00         <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCP Enabled. . . . . . . . . . . : Yes               <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Autoconfiguration Enabled . . . . : Yes               <\/font><\/p>\n<p><font style=\"color:#fbab18;background-color:#23241f;\">IPv4 Address. . . . . . . . . . . : 192.168.10.10             <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Subnet Mask . . . . . . . . . . . : 255.255.255.0             <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Lease Obtained . . . . . . . . . : Saturday, September 14, 2019 8:42:22AM <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">Lease Expires . . . . . . . . . : Sunday, September 15, 2019 8:42:22AM    <\/font><\/p>\n<p><font style=\"color:#fbab18;background-color:#23241f;\">Default Gateway . . . . . . . . . : 192.168.10.1              <\/font><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">DHCP Server . . . . . . . .. . . : 192.168.10.1               <\/font><\/p>\n<p><font style=\"color:#fbab18;background-color:#23241f;\">DNS Servers . . . . . . . .. . . \uff1a192.168.11.5                <\/font><\/p>\n<p><font style=\"color:#fbab18;\"><br \/>\n<\/font><\/p>\n<p><strong>\u7981\u7528\u601d\u79d1IOS DHCPv4\u670d\u52a1\u5668<\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)# <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">no service dhcp                <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)# <\/font><strong><font style=\"color:#ffffff;background-color:#23241f;\">service dhcp               <\/font><\/strong><\/p>\n<p><font style=\"color:#dfdfdf;background-color:#23241f;\">R1(config)#                   <\/font><\/p>\n<p><strong>DHCPv4\u670d\u52a1\u9ed8\u8ba4\u662f\u542f\u7528\u7684\u3002\u8981\u7981\u7528\u8fd9\u9879\u670d\u52a1\uff0c\u5728\u5168\u5c40\u6a21\u5f0f\u4f7f\u7528no service dhcp\u547d\u4ee4<\/strong><\/p>\n<p><strong>\u4f7f\u7528 service dhcp\u547d\u4ee4\u53ef\u4ee5\u91cd\u65b0\u542f\u7528\u670d\u52a1\u3002\u5982\u679c\u6ca1\u6709\u914d\u7f6e\u53c2\u6570\uff0c\u542f\u7528\u670d\u52a1\u5c06\u4e0d\u4f1a\u6709\u6548\u679c\u3002<\/strong><\/p>\n<p><strong>\u6ce8\uff1a\u6e05\u9664DHCP\u7ed1\u5b9a\u6216\u8005\u7ec8\u6b62\u5e76\u91cd\u65b0\u542f\u52a8DHCP\u670d\u52a1\uff0c\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u4e0a\u4e34\u65f6\u51fa\u73b0\u5206\u914d\u91cd\u590d\u7684IP\u5730\u5740\u3002<\/strong><\/p>\n<blockquote>\n<p>\u66f4\u65b0: 2025-03-11 13:37:51<br \/>\n\u539f\u6587: <a href=\"https:\/\/www.yuque.com\/yuhui.net\/network\/gkebvsm6ro6fpoq7\">https:\/\/www.yuque.com\/yuhui.net\/network\/gkebvsm6ro6fpoq7<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>7.1 \u601d\u79d1\u914d\u7f6eDHCPv4 \u601d\u79d1IOS DHCPv4\u670d\u52a1\u5668 \u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u601d\u79d1 IOS DHCPv4\u670d\u52a1\u5668\uff1b 1\u3001\u6392\u9664IPv4\u5730\u5740 \uff08**Exclude IPv4 Addresses**\uff09 \u9664\u975e\u914d\u7f6e\u6392\u9664\u7279\u5b9a\u5730\u5740\uff0c\u5426\u5219\u8def\u7531\u5668\u5c06\u5145\u5f53DHCPv4\u670d\u52a1\u5668\uff0c\u4e3a\u5ba2\u6237\u7aef\u5206\u914d\u5730\u5740\u6c60\u4e2d\u6240\u6709\u5730\u5740\u6c60\u3002\u901a\u5e38\u5c06\u5730\u5740\u6c60\u4e2d\u7684\u67d0\u4e9bIPv4\u5730\u5740\u5206\u914d\u7ed9\u9700\u8981\u9759\u6001\u5730\u5740\u5206\u914d\u7684\u7f51\u7edc\u8bbe\u5907\u3002\u56e0\u6b64\uff0c\u8fd9\u4e9bIPv4\u5730\u5740\u4e0d\u5e94\u5206\u914d\u7ed9\u5176\u4ed6\u8bbe\u5907\u3002 \u6392\u9664I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,3],"tags":[79,85],"class_list":["post-472","post","type-post","status-publish","format-standard","hentry","category-ciscoluyouyujiaohuan","category-interface","tag-shiyan","tag-cisco"],"_links":{"self":[{"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":0,"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youvii.site\/index.php\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}