3.8.3 DHCP Server Pool Configuration

Use this command to configure DHCP address pools.

Command Syntax:

ip dhcp pool <pool_name>
host <ip> <subnet_mask>
address <v_ipv4_addr> interface <port_type>
network <ip> <subnet_mask>
hardware-address <mac>
broadcast <ip>
reserved-only 
lease { <day> [ <hour> [ <min> ] ] | infinite }
domain-name <domain_name>
default-router <ip> [ <ip1> [ <ip2> [ <ip3> ] ] ]
dns-server <ip> [ <ip1> [ <ip2> [ <ip3> ] ] ]
ntp-server <ip> [ <ip1> [ <ip2> [ <ip3> ] ] ]
netbios-node-type { b-node | h-node | m-node | p-node }
netbios-scope <netbios_scope>
netbios-name-server <ip> [ <ip1> [ <ip2> [ <ip3> ] ] ]
nis-domain-name <domain_name>
nis-server <ip> [ <ip1> [ <ip2> [ <ip3> ] ] ]
client-identifier { { fqdn | name } <identifier> | mac-address <mac> }
vendor class-identifier <class_id> specific-info <hexval>
Table 3-35. Command Description

Argument

Description

Parameter

<pool_name>

Pool name in 32 characters

<ip>

Network number of the DHCP address pool.

<subnet_mask>

Subnet mask of the DHCP address pool.

<v_ipv4_addr>

Address to offer on interface.

<port_type>

Port type in GigabitEthernet

<mac>

Client MAC address

<day> <hour> <min>

days (0–365), hours (0–23), minutes (0–59)

<domain_name>

Domain name that client must use when resolving hostname through DNS.

<ip1> <ip2> <ip3>

List of IP addresses for Routers, DNS, NTP, NBNS, and NIS.

<netbios_scope>

NetBIOS over TCP/IP scope parameter for the client as specified in RFC 1001/1002.

<identifier>

Specify the client's unique identifier to be used when the pool is the type of host.

<host_name>

Specify the name of the client to be used when the pool is the type of host.

<class_id>

Class identifier in 64 characters

<hexval>

Hex values in 64 octets (0x…)

Default

N/A

Mode

DHCP Pool Configuration mode

Usage

Configure the DHCP Pool. To remove the parameters, use the ‘no’ form of the command.

Example

Example 1:

Create DHCP pool named testpool type host with IP 10.10.10.50.

# configure terminal
(config)# ip dhcp pool testpool
(config-dhcp-pool)# host 10.10.10.50 255.255.255.128