Difference between revisions of "Cisco IOS DHCP Server configuration"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
  
 
  .../...
 
  .../...
  [[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

Revision as of 05:33, 1 November 2020

Cisco IOS DHCP Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/


cisco_ios_sw(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.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


show running-config

.../...
ip dhcp pool YOUR_POOL_NAME
 import all
 network 10.10.10.0 255.255.255.0
 default-router 10.10.10.1 
 domain-name YOUR_DOMAIN.COM
 dns-server 10.10.10.1 8.8.8.8
 lease 2
.../...


Static IPs:

You cannot configure manual bindings within the same pool that is configured with the networkcommand in DHCP pool configuration mode. See the "Configuring DHCP Address Pools" section for information about DHCP address pools and the network command. [1]

.../...
ip dhcp pool STATIC_IP
host 192.168.184.183 255.255.255.0
hardware-address bce1.43d4.16b1
default-router 192.168.183.1
dns-server x.170.119.9 x.170.119.19 8.8.8.8 8.8.4.4
.../...


Commands

Activities

Related terms

  • client-identifier
  • Jun 6 14:50:40.456: %DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 10.10.xxx.xxx.

See also

  • https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-2sx/dhcp-12-2sx-book/config-dhcp-client.html#GUID-BCEB43D4-8C44-4C86-BBAA-6B977196D35C
  • https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book/ipaddr-l1.html#wp3986925401
  • Advertising: