Editing Cisco IOS DHCP Server configuration

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 +
 
[[Cisco IOS]] [[Dynamic Host Configuration Protocol|DHCP]] Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/
 
[[Cisco IOS]] [[Dynamic Host Configuration Protocol|DHCP]] Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/
  
Global configuration, not local to dhcp pool.
+
<pre>
cisco_ios_sw(config)#[[ip dhcp excluded-address]] 192.168.0.1 192.168.0.47
+
cisco_ios_sw(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.47
cisco_ios_sw(config)#[[ip dhcp excluded-address]] 192.168.5.47
+
cisco_ios_sw(config)#ip dhcp pool YOUR_DHCP_POOLNAME
 +
cisco_ios_sw(dhcp-config)#network 192.168.0.0 255.255.255.0
 +
cisco_ios_sw(dhcp-config)#default-router 192.168.0.1
 +
cisco_ios_sw(dhcp-config)#dns-server 192.168.0.1
 +
</pre>
  
cisco_ios_sw(config)#ip dhcp pool YOUR_DHCP_POOLNAME
 
cisco_ios_sw(dhcp-config)#network 192.168.0.0 255.255.255.0
 
cisco_ios_sw(dhcp-config)#default-router 192.168.0.1
 
cisco_ios_sw(dhcp-config)#dns-server 192.168.0.1
 
  
 +
<code>[[show running-config]]</code>
  
[[show running-config]]
 
 
  .../...
 
  .../...
  [[ip dhcp]] pool YOUR_POOL_NAME
+
  ip dhcp pool YOUR_POOL_NAME
   [[import]] all
+
   import all
   [[network]] 10.10.10.0 255.255.255.0
+
   network 10.10.10.0 255.255.255.0
 
   default-router 10.10.10.1  
 
   default-router 10.10.10.1  
 
   domain-name YOUR_DOMAIN.COM
 
   domain-name YOUR_DOMAIN.COM
   dns-server 10.10.10.1 [[8.8.8.8]]
+
   dns-server 10.10.10.1  
   [[lease]] 2
+
   lease 2
 
  .../...
 
  .../...
  
  
== [[Cisco IOS: Static IPs in DHCP]] ==
+
 
  
 
== Commands ==
 
== Commands ==
Line 30: Line 31:
 
* <code>[[show ip dhcp server statistics]]</code>
 
* <code>[[show ip dhcp server statistics]]</code>
 
* <code>[[show dhcp server]]</code>
 
* <code>[[show dhcp server]]</code>
* <code>[[show ip dhcp conflict]]</code>
+
* <code>[[lease]]</code>
* <code>[[lease]]</code> (duration of the lease in days <ref>https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book/ipaddr-l1.html#wp3986925401</ref>)
 
 
* <code>[[lease infinite]]</code>
 
* <code>[[lease infinite]]</code>
* <code> [[nbtstat]]</code>
 
* <code>[[debug ip]] [[dhcp]] server packet</code>
 
* <code>[[debug ip dhcp server]]</code>
 
  
 
== Activities ==
 
== Activities ==
 
* Read verify and troubleshooting DHCP configuration: https://www.ciscopress.com/articles/article.asp?p=1574301&seqNum=6
 
* Read verify and troubleshooting DHCP configuration: https://www.ciscopress.com/articles/article.asp?p=1574301&seqNum=6
* Read https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/xe-3se/3850/dhcp-xe-3se-3850-book/config-dhcp-server.html#GUID-0EF9A43F-98F1-4FD4-B232-151508AD397C
 
 
== Related terms ==
 
* <code>[[client-identifier]]</code>
 
* <code>Jun  6 14:50:40.456: %DHCPD-4-PING_CONFLICT: '''DHCP address conflict''':  server pinged 10.10.xxx.xxx.</code>
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page:

Advertising: