Configuring DHCP Server Settings 887Configuring a Dynamic Address PoolBeginning in Privileged EXEC mode, use the following commands to createan address pool with network information that is dynamically assigned tohosts with DHCP clients that request the information.Command Purposeconfigure Enter Global Configuration mode.ip dhcp poolname Create a DHCP address pool and enters DHCP poolconfiguration mode.networknetwork-ip[mask |prefixlength]Configure the subnet number and mask for a DHCPaddress pool. Clients requesting an IP address can beassigned any non-excluded IP address within this network.lease [duration] |infinite}]Specify the duration of the lease for an IP address that isassigned from a DHCP server to a DHCP client.•duration— Days the lease is valid. You can optionallyspecify the hours and minutes after specifying the days.• infinite — 60 day leasedefault-routeraddress1[address2....address8]Specify the list of default gateway IP addresses to beassigned to the DHCP client.dns-serveraddress1[address2....address8]Specify the list of DNS server IP addresses to be assignedto the DHCP client.domain-namedomain Specify the domain name for a DHCP client.optioncode {asciistring| hexstring1[string2...string8] | ipaddress1[address2...address8]}Manually configure DHCP options.CTRL + Z Exit to Privileged EXEC mode.show ip dhcp poolconfiguration {name |all}View the settings for the specified address pool or for allconfigured address pools.