Skip to content
Portfolio

Use a Cisco Router as a DHCP server

Instead of having a dedicated DHCP server in a small office, you can use a Cisco router not only as a router but as a DHCP server as well.

1.1 Exclude all IP addresses that you already have assigned or don’t want to be assigned via DHCP

Section titled “1.1 Exclude all IP addresses that you already have assigned or don’t want to be assigned via DHCP”
Router(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10
Router(config)# ip dhcp pool LAN_USERS
Router(dhcp-config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.1
Router(dhcp-config)# dns-server 8.8.8.8

By default, the time that a device can use an IP before it has to renew it is 1 day on a Cisco router. That can be changed with the command:

Router(dhcp-config)# lease 7 0 0
Router(dhcp-config)# exit