The static-bind command binds an IP address in a global address pool to a MAC address of a client.
The undo static-bind command unbinds the IP address in a global address pool from a MAC address.
By default, the IP address in a global address pool is not bound to any MAC address.
static-bind ip-address ip-address mac-address mac-address [ option-template template-name | description description ]
undo static-bind [ ip-address ip-address | mac-address mac-address ]
Parameter |
Description |
Value |
---|---|---|
ip-address ip-address |
Specifies the IP address to be bound. The IP address must be a valid IP address in the global address pool. |
The value is in dotted decimal notation. |
mac-address mac-address |
Specifies the user MAC address. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
option-template template-name |
Specifies the name of the DHCP Option template. To allocate network configuration parameters except IP addresses to static clients, specify the parameter. Before specifying the parameter, run the dhcp option template command to create a DHCP option template, and configure network parameters for static clients in the DHCP Option template view. |
The name is a string of 1 to 31 case-sensitive characters without spaces. |
description description |
Specifies the user description. |
The value is a string of 1 to 256 case-sensitive characters. It can contain spaces. |
Usage Scenario
The static-bind command applies to DHCP servers. When planning a network, you need to allocate fixed IP addresses to some important hosts to ensure reliability. In this case, you can bind IP addresses in the address pool to the MAC addresses of these hosts. After the preceding configuration is complete, if the host of the MAC address to which the IP address is bound request an IP address from the DHCP server, the DHCP server finds the bound IP address based on the host's MAC address and allocates this IP address to the host, ensuring that the IP address obtained by the host is fixed.
You can run the static-bind command to bind an IP address in a global address pool to a MAC address.
You can run the dhcp server static-bind command to bind an IP address in an interface address pool to a MAC address.
Prerequisites
Network segment addresses that can be assigned from the global address pool have been configured using the network (IP address pool view) command.
Precautions
# Configure a DHCP server to assign a fixed IP address 192.168.1.10 in the global address pool global1 to a host with the MAC address dcd2-fc96-e4c0.
<HUAWEI> system-view [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] network 192.168.1.10 mask 24 [HUAWEI-ip-pool-global1] static-bind ip-address 192.168.1.10 mac-address dcd2-fc96-e4c0