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>Argument | Description | |
Parameter |
| Pool name in 32 characters |
| Network number of the DHCP address pool. | |
| Subnet mask of the DHCP address pool. | |
| Address to offer on interface. | |
| Port type in GigabitEthernet | |
| Client MAC address | |
| days (0–365), hours (0–23), minutes (0–59) | |
| Domain name that client must use when resolving hostname through DNS. | |
| List of IP addresses for Routers, DNS, NTP, NBNS, and NIS. | |
| NetBIOS over TCP/IP scope parameter for the client as specified in RFC 1001/1002. | |
| Specify the client's unique identifier to be used when the pool is the type of host. | |
| Specify the name of the client to be used when the pool is the type of host. | |
| Class identifier in 64 characters | |
| 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. | |
