Cisco IOS DHCP Server configuration
Cisco IOS DHCP Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/
Global configuration, not local to dhcp pool.
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
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 .../...
Cisco IOS: Static IPs in DHCP[edit]
Commands[edit]
show ip dhcp pool
orshow ip dhcp pool <name>
show ip dhcp binding
show ip dhcp server statistics
show dhcp server
show ip dhcp conflict
lease
(duration of the lease in days [1])lease infinite
nbtstat
debug ip dhcp server packet
debug ip dhcp server
Activities[edit]
- 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[edit]
client-identifier
Jun 6 14:50:40.456: %DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 10.10.xxx.xxx.
See also[edit]
- DHCP: Cisco IOS DHCP Server,
isc-dhcp-server (dhcpd.conf)
,ip dhcp pool
show ip dhcp pool
,show ip dhcp binding
,show ip dhcp conflict
,show ip dhcp server statistics
, DHCP snooping,client-identifier
,hardware-address
,show ip dhcp
,ip link
,dhcpcd
,AWS::EC2::DHCPOptions, dhclient, systemd-networkd
- Configure a DHCP server for your network
Advertising: