Configuration manual
VLAN configuration 29
Configuration — Command Line Interface
Configuring DHCP pool settings
Complete this procedure to configure DHCP pool settings.
Procedure steps
Step Action
1 Enter global configuration mode:
configure terminal
2 Enable the DHCP server:
service dhcp-server
3 Enter DHCP configuration mode:
ip dhcp pool <dhcp-pool-number>
4 Set the pool addresses:
network <network-ip-addr> <subnet-mask>
<end-of-pool-ip-addr>
5 Set the DNS server address that will be passed to the DHCP clients:
dns-server <ip-addr-of-dns-server-for-pool>
6 Set the default router that will be passed to the DHCP clients:
default-router <ip-addr-of-router>
7 Exit all levels of configuration mode:
end
End
Variable definitions
The following table describes the variables and values to configure DHCP settings.
Variable Value
dhcp-pool-numb
er
The pool ID for the DHCP pool.
network-ip-add
r
The subnet of the IP address in the pool.
subnet-mask
The subnet mask of the IP address in the pool.
end-of-pool-ip
-addr
The last IP address in the pool.
ip-addr-of-dns
-server-for-po
ol
The IP address of the DNS server that will be passed to the DHCP clients.
ip-addr-of-rou
ter
The IP address of the default router that will be passed to the DHCP clients.