static-bind (IP address pool view)

Function

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.

Format

static-bind ip-address ip-address mac-address mac-address

undo static-bind ip-address ip-address mac-address mac-address

Parameters

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.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

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

  • The IP address to be bound must be within the address segment configured using the section command in the Server IP address pool view.
  • The IP address to be bound must have never been used. Before the static-bind command is executed, run the excluded-ip-address command to prohibit the IP address to be bound from taking part in automatic address assignment.
  • After the binding, the lease of this IP address is not managed. After the bound client obtains the IP address, the configuration cannot be deleted using the undo static-bind command. The binding relationship can be removed only when the user proactively goes offline.
  • After the undo ip pool command is run, you can configure the binding relationship between IP addresses and MAC addresses.
  • You can repeat executing the static-bind command to assign IP addresses to multiple clients. An IP address or MAC address can be used only once.

Example

# Configure the binding between IP address 10.1.1.10 and MAC address 00e0-fc12-3456 for an address pool named huawei.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >