# CISCO - Setting up DHCP Server

# Setting up DHCP server

First command is to exclude addresses.

```
conf t
ip dhcp excluded-address 192.168.10.1 192.168.10.20

```

Create the DHCP Pool

```
ip dhcp pool LAN_POOL
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.1
 dns-server 8.8.8.8 1.1.1.1
 domain-name lab.local
 lease 7

```

Verify its working.

```
show ip dhcp pool
show ip dhcp binding
show ip dhcp server statistics

```