H3C Technologies H3C S3100 Series Switches User Manual

Page 507

Advertising
background image

2-6

address, the DHCP server searches for the IP address corresponding to the MAC address of the DHCP

client and assigns the IP address to the DHCP client.

When some DHCP clients send DHCP-DISCOVER packets to the DHCP server to apply for IP

addresses, they construct client IDs and add them in the DHCP-DISCOVER packets. If the bindings of

client IDs and IP addresses are configured on the DHCP server, when such a client requests an IP

address, the DHCP server will find the corresponding IP address based on the client ID and assign it to

the DHCP client.

Currently, only one IP address in a global DHCP address pool can be statically bound to a MAC address

or a client ID.

Follow these steps to configure the static IP address allocation mode:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter DHCP address pool view

dhcp server ip-pool
pool-name

Configure an IP address to be statically
bound

static-bind ip-address
ip-address [ mask mask ]

Required

By default, no IP
address is statically
bound.

Configure the MAC
address to which the IP
address is to be
statically bound

static-bind mac-address
mac-address

Bind an IP
address to the
MAC address
of a DHCP
client or a
client ID
statically

Configure the client ID
to which the IP address
is to be statically bound

static-bind client-identifier
client-identifier

One of these two
options is required

By default, no MAC
address or client ID to
which an IP address is
to be statically bound is
configured.

z

The static-bind ip-address command and the static-bind mac-address command or the static-bind

client-identifier command must be coupled.

z

In the same global DHCP address pool, if you configure the static-bind client-identifier command

after configuring the static-bind mac-address command, the new configuration overwrites the

previous one, and vice versa.

z

In the same global DHCP address pool, if the static-bind ip-address command, the static-bind

mac-address command, or the static-bind client-identifier is executed repeatedly, the new

configuration overwrites the previous one.

z

The IP address to be statically bound cannot be an interface IP address of the DHCP server;

otherwise static binding does not take effect.

z

A client can permanently use the statically-bound IP address that it has obtained. The IP address is

not limited by the lease time of the IP addresses in the address pool.

Advertising