Method and gateway device for dynamically allocating access device address to multi-DHCP server network
A technology for dynamically assigning and accessing devices, applied in transmission systems, electrical components, etc., to solve problems such as inability to run functions, poor user experience, and inability to directly interconnect and interoperate, to avoid address conflicts and simplify user operations.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] The present invention provides a method for dynamically allocating access device addresses in a multi-DHCP server network, such as figure 1 shown, including the following steps:
[0030] 101: Each DHCP server sends an address pool request message.
[0031] The address pool request message is a newly added message in the DHCP protocol by the method of this embodiment. The address pool request message is a message that DHCP servers can send to each other, and includes the MAC address and address pool of the DHCP server that sent the address pool request message.
[0032] 102: Each DHCP server receives an address pool request message sent by other DHCP servers, and elects a master server according to the address pool request message, and the rest are slave servers.
[0033] Specifically, after each DHCP server receives the address pool request message, it obtains the MAC addresses and address pools of other DHCP servers through the address pool request message, and first...
Embodiment 2
[0042] like figure 2 Shown is a networking structure applying the method of the present invention, and a router is taken as an example to describe the gateway device of the present invention.
[0043] Connect multiple routers in the environment through Ethernet LAN ports or associate them through WIFI. The router has multiple Ethernet ports. WIFI supports AP and STA modes. WIFI AP can be used for wireless access for devices, and WIFI STA can allow routers to wirelessly access other APs.
[0044] Each router is configured with a DHCP server, such as Figure 4 As shown, the DHCP server includes the following modules:
[0045] The message sending module 1 is used for the DHCP server to send the address pool request message to the DHCP server of other gateway devices, or the master server to send the address pool notification message to the slave server; the address pool request message includes sending the address pool request message The MAC address and address pool of the D...
Embodiment 3
[0063] This embodiment provides a storage medium, where the storage medium stores at least one program, and the at least one program can be executed by at least one processor to implement figure 1 The steps of the method for dynamically allocating an access device address in a network with multiple DHCP servers include:
[0064] 101: Each DHCP server sends an address pool request message;
[0065] 102: Each DHCP server receives the address pool request message sent by other DHCP servers, and jointly elects a master server by comparing other DHCP servers with the number of addresses in its own address pool, and the rest are slave servers;
[0066] 103: The master server allocates its own address pool to each slave server according to the number of slave servers, and sends an address pool notification message;
[0067] 104: Receive the address pool notification message sent by the master server from the server, and set its own address pool according to the address pool allocate...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


