Users Guide

Table Of Contents
3. Enter the subnet from which the DHCP server may assign addresses in DHCP POOL mode. The network option specifies
the subnet address. The prefix-length option specifies the number of bits used for the network portion of the address,
from 18 to 31.
network network/prefix-length
4. Enter a range of IP addresses from the subnet specified above, which the DHCP server uses to assign addresses in DHCP
<POOL> mode.
range {ip-address1 [ip-address2]}
NOTE: Configure at least one interface to match one of the configured network pools. An interface matches a network
pool when its IP address is included in the subnet defined for that network pool. For example, an interface with IP
address 10.1.1.1/24 matches a pool configured with network 10.1.1.0/24.
DHCP server automatic address allocation
OS10(config)# ip dhcp server
OS10(config-dhcp)# pool Dell
OS10(config-dhcp-Dell)# default-router 20.1.1.1
OS10(config-dhcp-Dell)# network 20.1.1.0/24
OS10(config-dhcp-Dell)# range 20.1.1.2 20.1.1.8
Show running configuration
OS10(conf-dhcp-Dell)# do show running-configuration
...
!
ip dhcp server
!
pool Dell
network 20.1.1.0/24
default-router 20.1.1.1
range 20.1.1.2 20.1.1.8
Address lease time
Use the lease {days [hours] [minutes] | infinite} command to configure an address lease time. The default is
24 hours.
OS10(config)# ip dhcp server
OS10(conf-dhcp)# pool Dell
OS10(conf-dhcp-Dell)# lease 36
Default gateway
Ensure the IP address of the default router is on the same subnet as the client.
1. Enable DHCP server-assigned dynamic addresses on an interface in CONFIGURATION mode.
ip dhcp server
2. Create an IP address pool and provide a name in DHCP mode.
pool name
3. Enter the default gateway(s) for the clients on the subnet in order of preference in DHCP<POOL> mode.
default-router address
206
System management