How is static binding configured on an AR

3

Static DHCP binding allows the AR to allocate fixed IP addresses to user terminals with fixed MAC addresses. The AR needs to allocate the fixed IP address to the client with the MAC address of dcd2-fc96-e4c0. The configuration method is as follows:
- Based on the global address pool:
[Huawei] ip pool 1 //Address segments have been configured in the address pool.
[Huawei-ip-pool-1] static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0
- Based on the interface address pool:
[Huawei] interface vlanif 10 //An IP address has been assigned to the interface.
[Huawei-Vlanif10] dhcp server static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0
The configured IP address cannot be the IP address that has been assigned. If the system displays a message indicating that the IP address has been assigned, run the reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } command in the user view to manually reclaim IP addresses in the address pool.

Other related questions:
How do I configure static ARP binding on an AR
Static ARP entries are manually configured and maintained. They cannot be aged and overridden by dynamic ARP entries. If a static ARP entry is configured on an AR, the AR can communicate with the remote device using only the specified MAC address. Network attackers cannot modify the mapping between the IP and MAC addresses using ARP packets, ensuring communication between the two devices. The methods used to configure static ARP entries are as follows. - Command lines: For a Layer 3 physical interface and a Layer 3 Eth-Trunk, run the following command to configure a static ARP entry in which the IP address is 1.1.1.1 and the MAC address is 0000-1111-1111: [Huawei] arp static 1.1.1.1 0000-1111-1111 For a Dot1q termination sub-interface, run the following command to configure a static ARP entry in which the IP address is 2.1.1.1, MAC address is 0edc-15e5-f7e4, outbound interface is GE1/0/0.1, and VLAN ID is 20: [Huawei] interface gigabitethernet 1/0/0.1 [Huawei-GigabitEthernet1/0/0.1] control-vid 100 dot1q-termination //You do no run this command in V2R2C01 and later versions. [Huawei-GigabitEthernet1/0/0.1] dot1q termination vid 20 [Huawei-GigabitEthernet1/0/0.1] ip address 2.1.1.2 24[Huawei-GigabitEthernet1/0/0.1] quit [Huawei] arp static 2.1.1.1 0edc-15e5-f7e4 vid 20 interface gigabitethernet1/0/0.1 For a QinQ termination sub-interface, run the following command to configure a static ARP entry in which the IP address is 2.1.1.1, MAC address is 0edc-15e5-f7e4, outbound interface is GE1/0/0.1, and VLAN ID is 20: [Huawei] interface gigabitethernet 1/0/0.1 [Huawei-GigabitEthernet1/0/0.1] control-vid 100 qinq-termination //You do no run this command in V2R2C01 and later versions. [Huawei-GigabitEthernet1/0/0.1] qinq termination pe-vid 10 ce-vid 20 [Huawei-GigabitEthernet1/0/0.1] ip address 2.1.1.2 24[Huawei-GigabitEthernet1/0/0.1] quit [Huawei] arp static 2.1.1.1 0edc-15e5-f7e4 vid 10 cevid 20 interface gigabitethernet1/0/0.1

Static DHCP binding supported by the AR
All AR models of all versions can allocate fixed IP addresses to clients.

Method used to check static DHCP binding on the AR
On the AR, run the display ip pool { interface interface-pool-name | name ip-pool-name } used command to check the static DHCP binding that is configured on a device. For example, check the binding between IP addresses and MAC addresses in the global address pool test 1. [Huawei] display ip pool name test1 used Pool-name : test1 Pool-No : 0 Lease : 1 Days 0 Hours 0 Minutes Domain-name : - DNS-server0 : - NBNS-server0 : - IMPORT-DNS0 : - IMPORT-NBNS0 : - IMPORT-domain : - Netbios-type : - Position : Local Status : Unlocked Gateway-0 : 10.1.1.1 Mask : 255.255.255.0 VPN instance : -- ----- ----- ----- ----- ----- ----- ----- ----- ----- Start End Total Used Idle(Expired) Conflict Disable ----- ----- ----- ----- ----- ----- ----- ----- ----- 10.1.1.1 10.1.1.254 253 1 252 0 0 0 ----- ----- ----- ----- ----- ----- ----- ----- ----- Network section : ----- ----- ----- ----- ----- ----- ----- ----- ----- Index IP MAC Lease Status ----- ----- ----- ----- ----- ----- ----- ----- ----- 1 10.1.1.2 dcd2-fc96-e4c0-Static-bind ----- ----- ----- ----- ----- ----- ----- ----- -----In the preceding information, the value of Status is Static-bind. That is, IP addresses are bound to MAC addresses, and then DHCP allocates IP addresses to clients.

Method to configure static DHCP binding on S series switches
Static DHCP binding allows the switch to allocate fixed IP addresses to user terminals with fixed MAC addresses. Assume that an S series switch excluding the S1700 needs to allocate the fixed IP address of 10.10.10.10 to the client with the MAC address of dcd2-fc96-e4c0. The configuration method is as follows: - Based on the global address pool: [HUAWEI] ip pool 1 //Address segments have been configured in the address pool. [HUAWEI-ip-pool-1] static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0 - Based on the interface address pool: [HUAWEI] interface vlanif 10 //An IP address has been assigned to the interface. [HUAWEI-Vlanif10] dhcp server static-bind ip-address 10.10.10.10 mac-address dcd2-fc96-e4c0 Note: The configured IP address cannot be the IP address that has been assigned. If the system displays a message indicating that the IP address has been assigned, run the reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } command in the user view to manually reclaim IP addresses in the address pool.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top