The static-bind command binds an IP address to a MAC address, which is static address assignment.
The undo static-bind command deletes the configuration.
By default, no binding between IP addresses and MAC addresses is configured for an address pool.
Parameter | Description | Value |
---|---|---|
ip-address ip-address |
Specifies an IP address to be statically assigned. It must be a valid IP address in the address pool. |
The value is in dotted decimal notation. |
mac-address mac-address |
Specifies the MAC address of a DHCP client. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
Usage Scenario
Fixed IP addresses need to be assigned to specified clients, such as the WWW server. In this case, you can bind an available IP address in an address pool with the MAC address of a client. When the DHCP server receives a request for the IP address of a specific client, run the static-bind command to bind the IP address with the MAC address of the client.
After the undo static-bind command is executed, the bound IP address restores to be available, and the IP address can be assigned to other clients.Prerequisites
Perform the following operations:
1.Run the ip pool command in the system view to create an address pool on the DHCP server. 2.Run the gateway command in the Server IP address pool view to configure a gateway address and subnet mask for the created address pool. 3.Run the section command in the Server IP address pool view to specify the address segment that can be assigned from the address pool.Precautions
<HUAWEI> system-view [~HUAWEI] ip pool huawei server [~HUAWEI-ip-pool-huawei] gateway 10.1.1.1 255.255.255.0 [*HUAWEI-ip-pool-huawei] section 0 10.1.1.2 10.1.1.253 [*HUAWEI-ip-pool-huawei] commit [~HUAWEI-ip-pool-huawei] static-bind ip-address 10.1.1.10 mac-address 00e0-fc12-3456