Creating A Dhcp Address Pool; Specifying Ip Address Ranges For A Dhcp Address Pool - H3C SR8800-F Configuration Manual

Comware 7 user access
Hide thumbs Also See for SR8800-F:
Table of Contents

Advertisement

Creating a DHCP address pool

Step
1.
Enter system view.
2.
Create a DHCP address pool
and enter its view.

Specifying IP address ranges for a DHCP address pool

You can configure both static and dynamic address allocation mechanisms in a DHCP address pool.
For dynamic address allocation, you can specify either a primary subnet with multiple address
ranges or a primary subnet with multiple secondary subnets for a DHCP address pool. You cannot
configure both.
Specifying a primary subnet and multiple address ranges for a DHCP address pool
Some scenarios need to classify DHCP clients on the same subnet into different address groups. To
meet this need, you can configure DHCP user classes and specify different address ranges for the
classes. The clients matching a user class can then get the IP addresses of an address range. In
addition, you can specify a common address range for the clients that do not match any user class. If
no common address range is specified, such clients fail to obtain IP addresses.
If there is no need to classify clients, you do not need to configure DHCP user classes or their
address ranges.
Follow these restrictions and guidelines when you specify a primary subnet and multiple address
ranges for a DHCP address pool:
If you execute the network or address range command multiple times for the same address
pool, the most recent configuration takes effect.
If you execute the forbidden-ip command multiple times, you exclude multiple address ranges
from dynamic allocation.
IP addresses specified by the forbidden-ip command are not assignable in the current address
pool, but are assignable in other address pools. IP addresses specified by the dhcp server
forbidden-ip command are not assignable in any address pool.
You can use class range to modify an existing address range, and the new address range can
include IP addresses that are being used by clients. Upon receiving a lease extension request
for such an IP address, the DHCP server allocates a new IP address to the requesting client.
But the original lease continues aging in the address pool, and will be released when the lease
duration is reached. To release such lease without waiting for its timeout, execute the reset
dhcp server ip-in-use command.
To specify a primary subnet and multiple address ranges for a DHCP address pool:
Step
1.
Enter system view.
2.
Enter DHCP address pool
view.
3.
Specify the primary subnet for
the address pool.
4.
(Optional.) Specify the
common address range.
Command
system-view
dhcp server ip-pool pool-name
Command
system-view
dhcp server ip-pool pool-name
network network-address
[ mask-length | mask mask ]
address range start-ip-address
[ end-ip-address ] [ vpn-instance
vpn-instance-name ]
99
Remarks
N/A
By default, no DHCP address
pool exists.
Remarks
N/A
By default, no DHCP address
pool exists.
By default, no primary subnet
is specified.
By default, no IP address
range is specified.

Advertisement

Table of Contents
loading

Table of Contents