摘要 |
Disclosed is a lease file-based IP setting method. The method comprises: S1: determining whether a lease file corresponding to a hot spot MAC address is successfully opened; S2: when the lease file is successfully opened, sending DHCP request information to a corresponding DHCP server to obtain a lease IP; S3: after the DHCP server receives the DHCP request information, determining whether a previously allocated IP address is available, and if yes, enabling a DHCP client to use the previously allocated IP address, and replying DHCP ACK acknowledgement information to the DHCP client; S4: determining whether the DHCP client receives the DHCP ACK acknowledgement information; and S5: when it is determined that the DHCP client receives the DHCP ACK acknowledgement information, updating the lease file corresponding to the hot spot MAC address. Also disclosed is a lease file-based IP setting system. |