Print

CR16010-F Static Address Allocation Failure Case

2020-03-04 发表

组网及说明

NULL

问题描述

There is a specific user who needs to be assigned a fixed static address(1.1.1.1). Under the DHCP address pool, we bind a fixed   address to the terminal of the MAC through this command “static bind ip address”. After configuration, we find that the user is online but get a random IP.

 

static-bind ip-address 1.1.1.1 mask 255.0.0.0 hardware-address aaaa-bbbb-cccc

过程分析

Instead of getting the specified 1.1.1.1 address, the terminal gets a 1.1.1.5 address.Check the corresponding address allocation of DHCP address pool on bras as follows.


[H3C]dis dhcp server ip-in-use ip 1.1.1.5

IP address: 1.1.1.5

Client identifier/Hardware address: 0061-6161-6162-6262-6263-6363-6363-XXXX-XXXX-XXXX-XXXX-XXXX

Lease expiration: Unlimited

Type: Auto(C)

Client access interface: Bas-interface32

Outer VLAN: 1000

Inner VLAN: 2000

PPP index: 7000


The corresponding terminal client id/hardware address for this IP is not a MAC address, but a string of ASCII code converted from the MAC address (the last few sections here are replaced by X).We also need to bind the string when binding the address under the DHCP address pool.



解决方法

When assigning a static address to a specific client in the DHCP address pool, replace the MAC address with the client ID string displayed by the dis DHCP server IP X.X.X.X to realize the assignment of fixed address.



static-bind ip-address 1.1.1.1 mask 255.255.192.0 client-identifier 0061-6161-6162-6262-6263-6363-6363-XXXX-XXXX-XXXX-XXXX-XXXX