To create a subnet pool that defines a network IP subnet address for the corresponding DHCP address pool and contains IP addresses to be assigned to the DHCP client, use the command network in DHCP Pool Configuration Mode. The no form of the command deletes the created subnet pool.
Parameter | Type | Description |
---|---|---|
<start-IP> |
Enter a value for the IP subnet address for the DHCP pool. The addresses within the specified network subnet are assigned to the DHCP client, if no restriction is applied. For example, the value is configured as 20.0.0.0, then any one of the address within the range from 20.0.0.1 to 20.255.255.254 can be assigned to the DHCP client if no other limitations such as end IP address are set. This value should be unique (that is, one subnet address can be assigned only for one DHCP address pool). | |
<mask> |
Enter a value for the subnet mask for the network IP address. This is a 32-bit number which is used to divide the IP address into network address and host address. This value is used to automatically calculate the end IP address for the pool. For example: The value 254.0.0.0 represents that the end IP address is 21.255.255.254, if the network subnet is set as 20.0.0.0 | |
<prefix-length (1-31)> |
Enter a number of high-order bits in the IP address. These bits are common among all hosts within a network. This value should be preceded by a slash (/) with space before and after the slash. This value is used to automatically calculate the end IP address for the pool and set the mask for the subnet. For example: value 20.0.0.0 / 6 represents that the end IP address is 23.255.255.254 and the mask is 252.0.0.0. | |
<end ip> |
Enter a value for the end IP address for the network IP subnet set for the DHCP address pool. This value restricts the IP addresses that can be assigned to the DHCP client. This value is used to manually set the end IP address. This value overrides the end IP address calculated automatically using the mask or prefix-length. |
DHCP Pool Configuration Mode
iS5comm(config)# ip dhcp pool 1 pool1
iS5comm(dhcp-config)# network 20.0.0.0 255.0.0.0 20.0.0.50