CN102143247B - Method for allocating and configuring address, address allocation server and host machine - Google Patents

Method for allocating and configuring address, address allocation server and host machine Download PDF

Info

Publication number
CN102143247B
CN102143247B CN201010624687.8A CN201010624687A CN102143247B CN 102143247 B CN102143247 B CN 102143247B CN 201010624687 A CN201010624687 A CN 201010624687A CN 102143247 B CN102143247 B CN 102143247B
Authority
CN
China
Prior art keywords
address
main frame
network segment
described main
relay device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010624687.8A
Other languages
Chinese (zh)
Other versions
CN102143247A (en
Inventor
蓝海青
常志泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010624687.8A priority Critical patent/CN102143247B/en
Publication of CN102143247A publication Critical patent/CN102143247A/en
Application granted granted Critical
Publication of CN102143247B publication Critical patent/CN102143247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method for allocating and configuring an address, an address allocation server and a host machine. In the method, the address allocation server receives an internet protocol (IP) address request message sent by the host machine, wherein the IP address request message carries information for reflecting the physical address of the host machine, and the physical address of the host machine is network segment information and/or virtual local area network (LAN) identification which is allocated to the host machine for independent use by an IP load-carrying network; the address allocation server queries the IP address request message so as to acquire the physical address of the host machine; the address allocation server determines an IP address which is allocated to the host machine in accordance with a correspondence between an IP address maintained by the address allocation server and the physical address of the host machine; and the address allocation server allocates the determined IP address to the host machine. According to the embodiment of the invention, the problem that the physical address is configured by a person can be avoided, thereby ensuring that the IP address is allocated successfully based on the physical address.

Description

Method, address allocation server and the main frame of address assignment and configuration
Technical field
The present invention relates to the communication technology, relate in particular to method, address allocation server and the main frame of a kind of address assignment and configuration.
Background technology
In communication system, physical address is the root of marking equipment node, and any technology that other identifies this device node is all derived from physical address.For example, in ethernet communication, medium access control (Media Access Control, MAC) address is the physical address of device node, can be for Ethernet local communication; IP address is logical address, is obtained, for internet communication by MAC Address mapping.Can be using electronics string number (Electronic Serial Number, ESN) as physical address in prior art, or, using MAC Address as physical address.No matter be ESN or MAC Address, equipment vendors are fixedly recorded in these physical addresss on communication equipment.User in use, can adopt manual type to obtain physical address in scene from these communication equipments.
Inventor finds that in prior art, at least there are the following problems: physical address is read at the scene on communication equipment of need to arriving; While manually obtaining physical address, may read and make mistakes, and then cause follow-up physical address Maintenance Difficulty to carry out or to make mistakes, and then cause the distribution of the IP address based on physical address to be difficult to carry out or make mistakes.
Summary of the invention
The embodiment of the present invention is to provide method, address allocation server and the main frame of a kind of address assignment and configuration, obtains in order to solve the physical address obtaining based on artificial on-the-spot obtain manner existing in prior art the problem that IP address exists.
On the one hand, the embodiment of the present invention provides a kind of method of address assignment, comprising:
Address allocation server receives from the IP of main frame address request, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame;
Described address allocation server, according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment;
Described address allocation server, gives described main frame by described definite IP address assignment.
On the other hand, the embodiment of the present invention provides a kind of method of address configuration, comprising:
Main frame sends IP address request to address allocation server, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Described main frame receives the IP address that described address allocation server is described host assignment, and described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server;
Described main frame carries out IP address configuration according to the described IP address receiving.
On the one hand, the embodiment of the present invention provides a kind of address allocation server, comprising:
Receiver module, for receiving the address request from the IP of main frame, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Physical address acquisition module, for inquiring about described IP address request, obtains the physical address of described main frame;
IP address acquisition module, for according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment;
Distribution module, for giving described main frame by described definite IP address assignment.
On the other hand, the embodiment of the present invention provides a kind of main frame, comprising:
Sending module, for sending IP address request to address allocation server, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Receiver module, for receiving the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server;
Configuration module, for carrying out IP address configuration according to the described IP address receiving.
As shown from the above technical solution, the embodiment of the present invention is by being host assignment physical address by IP bearer network, can realize the remote auto configuration of physical address, avoid human configuration and obtain the problem causing, ensure the correct configuration of physical address, and then ensure correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow schematic diagram of first embodiment of the invention;
Fig. 2 is the method flow schematic diagram of second embodiment of the invention;
Fig. 3 is system configuration schematic diagram corresponding to second embodiment of the invention;
Fig. 4 is the method flow schematic diagram of third embodiment of the invention;
Fig. 5 is system configuration schematic diagram corresponding to third embodiment of the invention;
Fig. 6 is the method flow schematic diagram of fourth embodiment of the invention;
Fig. 7 is system configuration schematic diagram corresponding to fourth embodiment of the invention;
Fig. 8 is the structural representation of the address allocation server of fifth embodiment of the invention;
Fig. 9 is the structural representation of the main frame of sixth embodiment of the invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram of first embodiment of the invention, comprising:
Step 11: address allocation server receives from the IP of main frame address request, in this IP address request, carry the information of the physical address that embodies this main frame, wherein, the physical address of main frame is that IP bearer network is distributed to the network segment information that this main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that this main frame independently uses;
Step 12: address allocation server is inquired about this IP address request, obtains the physical address of main frame;
For example, address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to the network segment information that this main frame independently uses, this address allocation server receives from the IP of main frame address request, comprising: Dynamic Host Configuration Protocol server receives the IP address request of the main frame transmission that is positioned at the same network segment with it; This address allocation server is inquired about this IP address request, obtains the physical address of this main frame, comprising: the network segment of Dynamic Host Configuration Protocol server under this Dynamic Host Configuration Protocol server self is as the physical address of this main frame; Or, this address allocation server receives from the IP of main frame address request, comprise: Dynamic Host Configuration Protocol server receive DHCP relay device receive that this main frame sends for applying for after the message of IP address, the IP address request forwarding, the IP address of carrying this DHCP relay device in the IP address request that this DHCP relay device forwards, this DHCP relay device and this main frame are positioned at the same network segment; This address allocation server is inquired about this IP address request, obtain the physical address of this main frame, comprise: this Dynamic Host Configuration Protocol server, according to the corresponding relation between the IP address of this DHCP relay device and network segment information, is defined as network segment information corresponding the IP address of this DHCP relay device the physical address of this main frame.
Again for example, address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to the VLAN ID that this main frame independently uses, this address allocation server receives from the IP of main frame address request, comprise: the IP address request that Dynamic Host Configuration Protocol server Receiving Host sends, in this IP address request, carry this VLAN ID; This address allocation server is inquired about this IP address request, obtains the physical address of this main frame, comprising: this Dynamic Host Configuration Protocol server obtains this VLAN ID from this IP address request.
Again for example, this address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to network segment information that this main frame independently uses and VLAN ID, this address allocation server receives from the IP of main frame address request, comprise: Dynamic Host Configuration Protocol server receives this main frame by being positioned at the IP address request that the DHCP relay device of the same network segment sends, the IP address of carrying this VLAN ID and this DHCP relay device in this IP address request with this main frame; This address allocation server is inquired about this IP address request, obtain the physical address of this main frame, comprise: this Dynamic Host Configuration Protocol server is according to the corresponding relation between the IP address of this DHCP relay device and network segment information, obtain the network segment information corresponding with the IP address of this DHCP relay device, by the VLAN ID carrying in the network segment information corresponding with the IP address of this DHCP relay device and this IP address request, be defined as the physical address of this main frame.
Step 13: address allocation server, according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of host assignment;
Step 14: address allocation server, by definite IP address assignment to main frame.
Wherein, in the time of carrying planning, IP bearer network can be the physical address that each host assignment is different according to the address location of each main frame, and afterwards, IP bearer network is kept at the physical address of distributing to each main frame in address allocation server.Address allocation server can send to corresponding main frame by the physical address of preservation by IP detection packet.
Particularly, for network segment information, IP bearer network can be the network segment that each host assignment is different according to the geographical position of main frame, afterwards when main frame is after server request physical address, can by dhcp process, the network segment of preservation be sent to main frame by server, make the independently network segment of each main frame correspondence.
Address allocation server can be determined the network segment information of main frame in the following way: address allocation server is Dynamic Host Configuration Protocol server, when physical address is that IP bearer network is while distributing to the network segment information that main frame independently uses, if Dynamic Host Configuration Protocol server and main frame are positioned at the same network segment, Dynamic Host Configuration Protocol server receive that this main frame sends for applying for the message of physical address, Dynamic Host Configuration Protocol server is defined as the network segment information of self network segment information of main frame; Or, if Dynamic Host Configuration Protocol server is positioned at the different network segments from main frame, Dynamic Host Configuration Protocol server reception is receiving after the physical address request message of main frame transmission with the DHCP relay device that main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises DHCP relay device in the physical address request message that DHCP relay device forwards, Dynamic Host Configuration Protocol server is defined as network segment information corresponding the IP address of DHCP relay device the network segment information of main frame.
For VLAN ID (Virtual Local Area Network Identity, VID), IP bearer network can, according to the geographical position of main frame, be also the different VID of different host assignment in the same network segment, makes independently VID of each main frame correspondence.
For the network segment and VID (network segment+VID), first IP bearer network can be the same network segments of multiple host assignment, afterwards, is the different VID of different host assignment in the same network segment, makes the independently network segment+VID of each main frame correspondence.
Correspondingly, can carry out following flow process at host computer side: main frame sends IP address request to address allocation server, in IP address request, carry the information of the physical address that embodies main frame, wherein, the physical address of main frame is that IP bearer network is distributed to the network segment information that main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that main frame independently uses; The IP address that main frame receiver address distribution server is host assignment, IP address is that address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of IP address request and address allocation server maintenance; Main frame carries out IP address configuration according to the IP address receiving.
Can also comprise: when this physical address is that IP bearer network is while distributing to the network segment information that this main frame independently uses, the method also comprises: if address allocation server and main frame are positioned at the same network segment, main frame sends the message for applying for physical address to this address server, and address allocation server is defined as the network segment information of self network segment information of main frame; Or, if address allocation server is positioned at the different network segments from main frame, main frame sends for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with main frame, the IP address for applying for that the message of physical address comprises DHCP relay device that this DHCP relay device sends, this address allocation server is for being defined as network segment information corresponding the IP address of this DHCP relay device the network segment information of this main frame.
Particularly, in the time that this physical address is network segment information, main frame sends IP address request to address allocation server, comprising: main frame sends IP address request to the Dynamic Host Configuration Protocol server that is positioned at the same network segment with main frame; Or main frame sends IP address request to the DHCP relay device that is positioned at the same network segment with main frame.
In the time that this physical address is VLAN ID, main frame sends IP address request to address allocation server, comprising: main frame sends IP address request to address allocation server, in this IP address request, carries this VLAN ID.
In the time that this physical address is VLAN ID and network segment information, main frame sends IP address request to address allocation server, comprising: main frame sends the IP address request of carrying this VLAN ID to the DHCP relay device that is positioned at the same network segment with this main frame.
The present embodiment is host assignment physical address by IP bearer network, can realize the remote auto configuration of physical address, avoid human configuration and obtain the problem causing, ensure the correct configuration of physical address, and then ensure correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
Main frame obtains after physical address, can be based on this physical address configuration of IP address.
Be understandable that, the technical scheme that the embodiment of the present invention provides, on the one hand, can realize the remote auto configuration of physical address, and the prior art of comparing, has reduced the probability of makeing mistakes, and has also reduced equipment cost; Further, the technical scheme that the embodiment of the present invention provides, both can carry out IP address configuration as basis taking the network segment information as host-physical address, also can carry out taking the VLAN ID as host-physical address as basis IP address configuration, can also carry out IP address configuration as basis taking the VLAN ID as host-physical address and network segment information, the above-mentioned multiple implementation providing, all can realize the flexible configuration of IP address, saves network operation cost.
Fig. 2 is the method flow schematic diagram of second embodiment of the invention, and the present embodiment is taking the network information as network segment information is as example.Referring to Fig. 2, the present embodiment comprises:
Step 21: main frame receives the message that comprises network segment information that Dynamic Host Configuration Protocol server sends, the network segment that different main frames are corresponding different.
Particularly, can preserve the independently network segment that is each host assignment according to the geographical position of each main frame by IP bearer network by server, other main frames can not use, and only have the auxiliary equipment (for example DHCP relay device) of tri-layers of router of IP or IP address assignment to belong to a network segment with this main frame.Fig. 3 is system configuration schematic diagram corresponding to second embodiment of the invention, and referring to Fig. 3, IP bearer network is that the network segment that main frame~1 is distributed is the network segment~1, and the network segment distributing for main frame~2 is the network segment~2, and the network segment distributing for main frame~3 is the network segment~3.In addition, each main frame can be communicated by letter with Dynamic Host Configuration Protocol server by DHCP relay device, and the DHCP relay device that different main frames are corresponding can be arranged in the different port place of the router of Fig. 3.
Main frame, obtaining after the network segment of Dynamic Host Configuration Protocol server distribution, can be configured to physical address by this network segment, to carry out the configuration of other marks based on physical address, for example, can configuration of IP address.
Step 22: main frame sends for applying for the message of IP address to the DHCP relay device belonging in the same network segment with this main frame, and this message can be IP address request.
For example, main frame~1 sends IP address request to the DHCP relay device that belongs to the network segment~1.
This IP address request is transmitted to Dynamic Host Configuration Protocol server by step 23:DHCP repeater, wherein comprises the IP address of DHCP relay device.
Because different main frames is positioned at the different network segments, the network segment corresponding to IP address request that therefore different main frames send is different, and the IP address of DHCP relay device is also different.
Step 24:DHCP server is determined the network segment under DHCP relay device according to the IP address of DHCP relay device, according to the network segment under DHCP relay device and the pre-configured network segment and the one-to-one relationship of IP address, is host assignment IP address.
Wherein, can the pre-configured network segment in Dynamic Host Configuration Protocol server and the one-to-one relationship of IP address, when DHCP receives after the IP address request of DHCP relay device forwarding, can determine the network segment under DHCP relay device according to the IP address of the DHCP relay device carrying in this IP address request, it is the network segment under main frame, afterwards, according to the one-to-one relationship of the network segment and IP address, determine the IP address of main frame.
Step 25:DHCP server, by dhcp process, sends to main frame by the IP address of distribution.
The present embodiment taking main frame by DHCP relay device to Dynamic Host Configuration Protocol server application IP address as example.Be understandable that, also can be in the network segment under each main frame, to configure a Dynamic Host Configuration Protocol server, make main frame to the Dynamic Host Configuration Protocol server application IP address in the same network segment, now, Dynamic Host Configuration Protocol server, according to the network segment under self and the pre-configured network segment and the one-to-one relationship of IP address, is IP address corresponding to host assignment.
The present embodiment is the independently network segment of host assignment by IP bearer network, and the main frame independently network segment is configured to after physical address, can realize the IP address assignment based on the network segment.The present embodiment does not need artificial fixed configurations physical address, can change according to actual conditions the physical address of main frame, improves flexibility, and then ensures correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
Fig. 4 is the method flow schematic diagram of third embodiment of the invention, and the present embodiment is example taking the network information as VID, and referring to Fig. 4, the present embodiment comprises:
Step 41: main frame receives the message that comprises VID that Dynamic Host Configuration Protocol server sends, the VID that different main frames are corresponding different.
Wherein, can be independently VID of one of each host assignment according to the geographical position of each main frame by IP bearer network, afterwards the VID of this distribution is kept in server, send to main frame by server.For example, Fig. 5 is system configuration schematic diagram corresponding to third embodiment of the invention, and referring to Fig. 5, IP bearer network is that VID~1 is distributed in main frame~1, for distributing VID~2 in main frame~2, for distributing VID~3 in main frame~3.
Server can be surveyed IP bag by sending to main frame, in this detection IP bag, carries the VID into host assignment.For example, main frame adopts and communicates by letter with the mode of VLAN label with server, so that main frame obtains VID, server can send the mac frame that comprises VID to main frame, and main frame obtains VID from this mac frame.
Step 42: main frame sends the message for applying for IP address to Dynamic Host Configuration Protocol server, and for example this message is IP address request, the VID that comprises main frame in this IP application IP addresses message.
Step 43:DHCP server, according to the VID of main frame and pre-configured VID and the one-to-one relationship of IP address, is host assignment IP address.
Wherein, the one-to-one relationship of VID and IP address is one to one, and for each main frame, its VID is also separate, i.e. VID corresponding to different main frames, and therefore, the IP address of different main frames is also independently, avoids IP address conflict.
Step 44:DHCP server, by dhcp process, sends to main frame by the IP address of distribution.
The present embodiment is independently VID of host assignment by IP bearer network, and main frame independently VID is configured to after physical address, can realize the IP address assignment based on VID.The present embodiment does not need artificial fixed configurations physical address, can change according to actual conditions the physical address of main frame, improves flexibility, and then ensures correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
Fig. 6 is the method flow schematic diagram of fourth embodiment of the invention, and the present embodiment is example taking the network information as the network segment+VID, and referring to Fig. 6, the present embodiment comprises:
Step 61: main frame receives the message that comprises network segment information that Dynamic Host Configuration Protocol server sends, the network segment that different main frames are corresponding different.
Concrete content of distributing the network segment can be referring to step 21.
Step 62: main frame receives the VID that Dynamic Host Configuration Protocol server distributes by IP bearer network, VID corresponding to different main frames in the same network segment.
Concrete content of distributing VID can be referring to step 41.
Fig. 7 is system configuration schematic diagram corresponding to fourth embodiment of the invention, and referring to Fig. 7, IP bearer network is main frame~1, main frame~2, and the same network segment is distributed in main frame~3, as the network segment~1, is main frame~4, main frame~5, the same network segment is distributed in main frame~6, as the network segment~2.In the network segment~1, for distributing VID~1 in main frame~1, for distributing VID~2 in main frame~2, for distributing VID~3 in main frame~3.In the network segment~2, for distributing VID~1 in main frame~4, for distributing VID~2 in main frame~5, for distributing VID~3 in main frame~6.Certainly, the VID in the network segment needs separate, and the VID between the network segment can be the same or different.
Step 63: main frame sends for applying for the message of IP address to the DHCP relay device belonging in the same network segment with this main frame, and for example this message is IP address request, comprises the VID of main frame in this message.
For example, main frame~1 sends IP application IP addresses message to the DHCP relay device that belongs to the network segment~1, wherein comprises VID~1.
This IP address request is transmitted to Dynamic Host Configuration Protocol server by step 64:DHCP repeater, wherein comprises the IP address of VID and the DHCP relay device of main frame.
Step 65:DHCP server is determined the network segment under DHCP relay device according to the IP address of DHCP relay device, according to the network segment under DHCP relay device, the VID comprising in IP address request, and the one-to-one relationship of the pre-configured network segment+VID and IP address are host assignment IP address.
Step 66:DHCP server, by dhcp process, sends to main frame by the IP address of distribution.
The present embodiment is the independently network segment+VID of host assignment by IP bearer network, and the main frame independently network segment+VID is configured to after physical address, can realize the IP address assignment based on the network segment+VID.The present embodiment does not need artificial fixed configurations physical address, can change according to actual conditions the physical address of main frame, improves flexibility, and then ensures correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
In addition, the embodiment of the present invention can be configured to physical address by network segment information and/or VID, goes for different application scenarios, meets the needs of different scenes.
Fig. 8 is the structural representation of the address allocation server of fifth embodiment of the invention, comprises receiver module 81, physical address acquisition module 82, IP address acquisition module 83 and distribution module 84; Receiver module 81 is for receiving the address request from the IP of main frame, in this IP address request, carry the information of the physical address that embodies this main frame, wherein, the physical address of this main frame is that IP bearer network is distributed to the network segment information that this main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that this main frame independently uses; Physical address acquisition module 82, for inquiring about this IP address request, obtains the physical address of this main frame; IP address acquisition module 83, for according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of this host assignment; Distribution module 84 is for giving this main frame by definite IP address assignment.
This address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to the network segment information that main frame independently uses, Dynamic Host Configuration Protocol server also comprises: physical address determination module, if be positioned at the same network segment for this Dynamic Host Configuration Protocol server and this main frame, receive that this main frame sends for applying for the message of physical address, the network segment information of self is defined as to the network segment information of this main frame; Or, if this Dynamic Host Configuration Protocol server is positioned at the different network segments from this main frame, reception is receiving after the physical address request message of this main frame transmission with the DHCP relay device that this main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises this DHCP relay device in the physical address request message that this DHCP relay device forwards, is defined as network segment information corresponding the IP address of this DHCP relay device the network segment information of this main frame.
This address allocation server is Dynamic Host Configuration Protocol server, and when this physical address is IP bearer network while distributing to the network segment information that this main frame independently uses, this receiver module 81 is specifically for receiving the IP address request of the main frame transmission that is positioned at the same network segment with it; This physical address acquisition module 82 is the physical address as this main frame specifically for the network segment under this Dynamic Host Configuration Protocol server self; Or, this receiver module 81 specifically for receive DHCP relay device receive that this main frame sends for applying for after the message of IP address, the IP address request forwarding, the IP address of carrying this DHCP relay device in the IP address request that this DHCP relay device forwards, this DHCP relay device and this main frame are positioned at the same network segment; This physical address acquisition module 82, specifically for according to the corresponding relation between the IP address of this DHCP relay device and network segment information, is defined as network segment information corresponding the IP address of this DHCP relay device the physical address of this main frame.
This address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to the VLAN ID that this main frame independently uses, the IP address request that this receiver module 81 sends specifically for Receiving Host, carries this VLAN ID in this IP address request; This physical address acquisition module 82 specifically for obtaining this VLAN ID from this IP address request.
This address allocation server is Dynamic Host Configuration Protocol server, when this physical address is that IP bearer network is while distributing to network segment information that this main frame independently uses and VLAN ID, this receiver module 81 is specifically for receiving this main frame by being positioned at the IP address request that the DHCP relay device of the same network segment sends, the IP address of carrying VLAN ID and this DHCP relay device in this IP address request with this main frame; This physical address acquisition module 82 is specifically for according to the corresponding relation between the IP address of this DHCP relay device and network segment information, obtain the network segment information corresponding with the IP address of this DHCP relay device, by the VLAN ID carrying in the network segment information corresponding with the IP address of this DHCP relay device and this IP address request, be defined as the physical address of this main frame.
The present embodiment is independently physical address of host assignment by IP bearer network, address server based on this independently physical address can be implemented as host assignment IP address.The present embodiment does not need artificial fixed configurations physical address, can change according to actual conditions the physical address of main frame, improves flexibility, and then ensures correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
Fig. 9 is the structural representation of the main frame of sixth embodiment of the invention, comprises sending module 91, receiver module 92 and configuration module 93; Sending module 91 is for sending IP address request to address allocation server, in this IP address request, carry the information of the physical address that embodies this main frame, wherein, the physical address of this main frame is that IP bearer network is distributed to the network segment information that this main frame independently uses, and/or, for IP bearer network is distributed to the VLAN ID that this main frame independently uses; Receiver module 92 is for receiving the IP address that this address allocation server is this host assignment, and this IP address is that this address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of this IP address request and the maintenance of this address allocation server; Configuration module 93 is for carrying out IP address configuration according to the IP address receiving.
When this physical address is that IP bearer network is while distributing to the network segment information that this main frame independently uses, this main frame also comprises: physical address application module, if be positioned at the same network segment for this address allocation server and this main frame, send the message for applying for physical address to this address server, this address allocation server is defined as the network segment information of self network segment information of this main frame; Or, if this address allocation server is positioned at the different network segments from this main frame, send for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with this main frame, the IP address for applying for that the message of physical address comprises this DHCP relay device that this DHCP relay device sends, this address allocation server is for being defined as network segment information corresponding the IP address of this DHCP relay device the network segment information of this main frame.
In the time that this physical address is network segment information, this sending module 91 specifically for: send IP address request to the Dynamic Host Configuration Protocol server that is positioned at the same network segment with this main frame, this Dynamic Host Configuration Protocol server is for giving this main frame by the IP address assignment corresponding with the network segment information of self; Or, send IP address request to the DHCP relay device that is positioned at the same network segment with this main frame, this DHCP relay device sends IP address request to Dynamic Host Configuration Protocol server after receiving the IP address request that this main frame sends, in this IP address request, carry the IP address of this DHCP relay device, this Dynamic Host Configuration Protocol server is for determining the network segment under this DHCP relay device according to the IP address of this DHCP relay device, by with this DHCP relay device under IP address assignment corresponding to the network segment give this main frame.
In the time that this physical address is VLAN ID, this sending module 91 is specifically for sending IP address request to address allocation server, in this IP address request, carry VLAN ID, this Dynamic Host Configuration Protocol server is for giving this main frame by the IP address assignment corresponding with this VLAN ID.
In the time that this physical address is VLAN ID and network segment information, this sending module 91 is specifically for sending the IP address request of carrying VLAN ID to the DHCP relay device that is positioned at the same network segment with this main frame, this DHCP relay device sends IP address request to Dynamic Host Configuration Protocol server after receiving the IP address request that this main frame sends, in this IP address request, carry IP address and this VLAN ID of this DHCP relay device, this Dynamic Host Configuration Protocol server is for determining the network segment under this DHCP relay device according to the IP address of this DHCP relay device, by with this DHCP relay device under the network segment and IP address assignment corresponding to this VLAN ID give this main frame.
The present embodiment is host assignment physical address by IP bearer network, main frame can be realized the remote auto configuration of physical address, avoid human configuration and obtain the problem causing, and can realize based on this physical address the configuration of IP address, and then ensure correctly carrying out of IP address assignment that the physical address that is host assignment based on this IP bearer network carries out.
In addition, the embodiment of the present invention provides a kind of network system, and this network system comprises address allocation server and main frame, when this address allocation server is Dynamic Host Configuration Protocol server, and this Dynamic Host Configuration Protocol server and this main frame be not or not the time of the same network segment, and this system can also comprise DHCP relay device.The function of the each equipment in this system can be referring to described in above-described embodiment.
Be understandable that the reference mutually of the correlated characteristic in said method and equipment.In addition, " first ", " second " etc. in above-described embodiment are for distinguishing each embodiment, and do not represent the quality of each embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (24)

1. a method for address assignment, is characterized in that, comprising:
Address allocation server receives from the IP of main frame address request, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses;
Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame;
Described address allocation server, according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Described address allocation server, gives described main frame by described definite IP address assignment;
Wherein, when described address allocation server is Dynamic Host Configuration Protocol server, described address allocation server received before the IP of main frame address request, and described method also comprises:
If described Dynamic Host Configuration Protocol server and described main frame are positioned at the same network segment, described Dynamic Host Configuration Protocol server receive that described main frame sends for applying for the message of physical address, described Dynamic Host Configuration Protocol server is defined as the network segment information of self network segment information of described main frame; Or,
If described Dynamic Host Configuration Protocol server is positioned at the different network segments from described main frame, described Dynamic Host Configuration Protocol server reception is receiving after the physical address request message of described main frame transmission with the DHCP relay device that described main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises described DHCP relay device in the physical address request message that described DHCP relay device forwards, described Dynamic Host Configuration Protocol server is defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
2. method according to claim 1, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
Described address allocation server receives from the IP of main frame address request, comprising: Dynamic Host Configuration Protocol server receives the IP address request of the main frame transmission that is positioned at the same network segment with it; Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame, comprising: the network segment of Dynamic Host Configuration Protocol server under described Dynamic Host Configuration Protocol server self is as the physical address of described main frame;
Or,
Described address allocation server receives from the IP of main frame address request, comprise: Dynamic Host Configuration Protocol server receive DHCP relay device receive that described main frame sends for applying for after the message of IP address, the IP address request forwarding, the IP address of carrying described DHCP relay device in the IP address request that described DHCP relay device forwards, described DHCP relay device and described main frame are positioned at the same network segment; Described address allocation server is inquired about described IP address request, obtain the physical address of described main frame, comprise: described Dynamic Host Configuration Protocol server, according to the corresponding relation between the IP address of described DHCP relay device and network segment information, is defined as network segment information corresponding the IP address of described DHCP relay device the physical address of described main frame.
3. a method for address assignment, is characterized in that, comprising:
Address allocation server receives from the IP of main frame address request, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to network segment information and the IP bearer network that described main frame independently uses and distributed to the VLAN ID that described main frame independently uses;
Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame;
Described address allocation server, according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Described address allocation server, gives described main frame by described definite IP address assignment;
Wherein, described address allocation server is Dynamic Host Configuration Protocol server, and described address allocation server received before the IP of main frame address request, and described method also comprises:
If described Dynamic Host Configuration Protocol server and described main frame are positioned at the same network segment, described Dynamic Host Configuration Protocol server receive that described main frame sends for applying for the message of physical address, described Dynamic Host Configuration Protocol server is defined as the network segment information of self network segment information of described main frame; Or,
If described Dynamic Host Configuration Protocol server is positioned at the different network segments from described main frame, described Dynamic Host Configuration Protocol server reception is receiving after the physical address request message of described main frame transmission with the DHCP relay device that described main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises described DHCP relay device in the physical address request message that described DHCP relay device forwards, described Dynamic Host Configuration Protocol server is defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
4. method according to claim 3, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
Described address allocation server receives from the IP of main frame address request, comprising:
Dynamic Host Configuration Protocol server receive described main frame by with described main frame be positioned at the same network segment DHCP relay device send IP address request, the IP address of carrying described VLAN ID and described DHCP relay device in described IP address request;
Described address allocation server is inquired about described IP address request, obtain the physical address of described main frame, comprise: described Dynamic Host Configuration Protocol server is according to the corresponding relation between the IP address of described DHCP relay device and network segment information, obtain the network segment information corresponding with the IP address of described DHCP relay device, by the VLAN ID carrying in the network segment information corresponding with the IP address of described DHCP relay device and described IP address request, be defined as the physical address of described main frame.
5. a method for address assignment, is characterized in that, comprising:
Address allocation server receives from the IP of main frame address request, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame;
Described address allocation server, according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Described address allocation server, gives described main frame by described definite IP address assignment.
6. method according to claim 5, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
Described address allocation server receives from the IP of main frame address request, comprising: the IP address request that Dynamic Host Configuration Protocol server Receiving Host sends, in described IP address request, carry described VLAN ID;
Described address allocation server is inquired about described IP address request, obtains the physical address of described main frame, comprising: described Dynamic Host Configuration Protocol server obtains described VLAN ID from described IP address request.
7. a method for address configuration, is characterized in that, comprising:
Main frame sends IP address request to address allocation server, carries the information of the physical address that embodies described main frame in described IP address request, and wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses;
Described main frame receives the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Described main frame carries out IP address configuration according to the described IP address receiving;
Wherein, when described physical address is IP bearer network while distributing to the network segment information that described main frame independently uses, described method also comprises:
If described address allocation server and described main frame are positioned at the same network segment, described main frame sends the message for applying for physical address to described address server, and described address allocation server is defined as the network segment information of self network segment information of described main frame;
Or,
If described address allocation server is positioned at the different network segments from described main frame, described main frame sends for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with described main frame, the IP address for applying for that the message of physical address comprises described DHCP relay device that described DHCP relay device sends, described address allocation server is for being defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
8. method according to claim 7, is characterized in that, described main frame sends IP address request to address allocation server, comprising:
Described main frame sends IP address request to the Dynamic Host Configuration Protocol server that is positioned at the same network segment with described main frame;
Or,
Described main frame sends IP address request to the DHCP relay device that is positioned at the same network segment with described main frame.
9. a method for address configuration, is characterized in that, comprising:
Main frame sends IP address request to address allocation server, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to network segment information and the IP bearer network that described main frame independently uses and distributed to the VLAN ID that described main frame independently uses;
Described main frame receives the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Described main frame carries out IP address configuration according to the described IP address receiving;
Wherein, described method also comprises:
If described address allocation server and described main frame are positioned at the same network segment, described main frame sends the message for applying for physical address to described address server, and described address allocation server is defined as the network segment information of self network segment information of described main frame;
Or,
If described address allocation server is positioned at the different network segments from described main frame, described main frame sends for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with described main frame, the IP address for applying for that the message of physical address comprises described DHCP relay device that described DHCP relay device sends, described address allocation server is for being defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
10. method according to claim 9, is characterized in that, described main frame sends IP address request to address allocation server, comprising:
Described main frame sends the IP address request of carrying described VLAN ID to the DHCP relay device that is positioned at the same network segment with described main frame.
The method of 11. 1 kinds of address configuration, is characterized in that, comprising:
Main frame sends IP address request to address allocation server, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Described main frame receives the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Described main frame carries out IP address configuration according to the described IP address receiving.
12. methods according to claim 11, is characterized in that, described main frame sends IP address request to address allocation server, comprising:
Described main frame sends IP address request to address allocation server, in described IP address request, carries described VLAN ID.
13. 1 kinds of address allocation servers, is characterized in that, comprising:
Receiver module, for receiving the address request from the IP of main frame, the information of carrying the physical address that embodies described main frame in described IP address request, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses;
Physical address acquisition module, for inquiring about described IP address request, obtains the physical address of described main frame;
IP address acquisition module, for according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Distribution module, for giving described main frame by described definite IP address assignment;
Wherein, described address allocation server is Dynamic Host Configuration Protocol server, and described server also comprises:
Physical address determination module, if be positioned at the same network segment for described Dynamic Host Configuration Protocol server and described main frame, receive that described main frame sends for applying for the message of physical address, the network segment information of self is defined as to the network segment information of described main frame; Or, if described Dynamic Host Configuration Protocol server is positioned at the different network segments from described main frame, reception is receiving after the physical address request message of described main frame transmission with the DHCP relay device that described main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises described DHCP relay device in the physical address request message that described DHCP relay device forwards, is defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
14. servers according to claim 13, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
Described receiver module is specifically for receiving the IP address request of the main frame transmission that is positioned at the same network segment with it; Described physical address acquisition module is the physical address as described main frame specifically for the network segment under described Dynamic Host Configuration Protocol server self;
Or,
Described receiver module specifically for receive DHCP relay device receive that described main frame sends for applying for after the message of IP address, the IP address request forwarding, the IP address of carrying described DHCP relay device in the IP address request that described DHCP relay device forwards, described DHCP relay device and described main frame are positioned at the same network segment; Described physical address acquisition module, specifically for according to the corresponding relation between the IP address of described DHCP relay device and network segment information, is defined as network segment information corresponding the IP address of described DHCP relay device the physical address of described main frame.
15. 1 kinds of address allocation servers, is characterized in that, comprising:
Receiver module, for receiving the address request from the IP of main frame, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame is that IP bearer network is distributed to network segment information and the IP bearer network that described main frame independently uses and distributed to the VLAN ID that described main frame independently uses;
Physical address acquisition module, for inquiring about described IP address request, obtains the physical address of described main frame;
IP address acquisition module, for according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Distribution module, for giving described main frame by described definite IP address assignment;
Wherein, described address allocation server is Dynamic Host Configuration Protocol server, and described server also comprises:
Physical address determination module, if be positioned at the same network segment for described Dynamic Host Configuration Protocol server and described main frame, receive that described main frame sends for applying for the message of physical address, the network segment information of self is defined as to the network segment information of described main frame; Or, if described Dynamic Host Configuration Protocol server is positioned at the different network segments from described main frame, reception is receiving after the physical address request message of described main frame transmission with the DHCP relay device that described main frame is positioned at the same network segment, the physical address request message forwarding, the IP address that comprises described DHCP relay device in the physical address request message that described DHCP relay device forwards, is defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
16. servers according to claim 15, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
Described receiver module specifically for receive described main frame by with described main frame be positioned at the same network segment DHCP relay device send IP address request, the IP address of carrying described VLAN ID and described DHCP relay device in described IP address request;
Described physical address acquisition module is specifically for according to the corresponding relation between the IP address of described DHCP relay device and network segment information, obtain the network segment information corresponding with the IP address of described DHCP relay device, by the VLAN ID carrying in the network segment information corresponding with the IP address of described DHCP relay device and described IP address request, be defined as the physical address of described main frame.
17. 1 kinds of address allocation servers, is characterized in that, comprising:
Receiver module, for receiving the address request from the IP of main frame, the information of carrying the physical address that embodies described main frame in described IP address request, wherein, the physical address of described main frame is that IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Physical address acquisition module, for inquiring about described IP address request, obtains the physical address of described main frame;
IP address acquisition module, for according to the corresponding relation between the IP address of its maintenance and the physical address of main frame, is defined as the IP address of described host assignment, wherein, is relation one to one between described IP address and described physical address;
Distribution module, for giving described main frame by described definite IP address assignment.
18. servers according to claim 17, is characterized in that, when described address allocation server is Dynamic Host Configuration Protocol server,
The IP address request that described receiver module sends specifically for Receiving Host, carries described VLAN ID in described IP address request;
Described physical address acquisition module specifically for obtaining described VLAN ID from described IP address request.
19. 1 kinds of main frames, is characterized in that, comprising:
Sending module, for sending IP address request to address allocation server, the information of carrying the physical address that embodies described main frame in described IP address request, wherein, the physical address of described main frame is that IP bearer network is distributed to the network segment information that described main frame independently uses;
Receiver module, for receiving the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Configuration module, for carrying out IP address configuration according to the described IP address receiving;
Wherein said main frame also comprises:
Physical address application module, if be positioned at the same network segment for described address allocation server and described main frame, send the message for applying for physical address to described address server, described address allocation server is defined as the network segment information of self network segment information of described main frame; Or, if described address allocation server is positioned at the different network segments from described main frame, send for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with described main frame, the IP address for applying for that the message of physical address comprises described DHCP relay device that described DHCP relay device sends, described address allocation server is for being defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
20. main frames according to claim 19, is characterized in that, described sending module specifically for:
Send IP address request to the Dynamic Host Configuration Protocol server that is positioned at the same network segment with described main frame, corresponding, described Dynamic Host Configuration Protocol server is for giving described main frame by the IP address assignment corresponding with the network segment information of self;
Or,
Send IP address request to the DHCP relay device that is positioned at the same network segment with described main frame, accordingly, described DHCP relay device sends IP address request to Dynamic Host Configuration Protocol server after receiving the IP address request that described main frame sends, in described IP address request, carry the IP address of described DHCP relay device, described Dynamic Host Configuration Protocol server is for determining the network segment under described DHCP relay device according to the IP address of described DHCP relay device, by with described DHCP relay device under IP address assignment corresponding to the network segment give described main frame.
21. 1 kinds of main frames, is characterized in that, comprising:
Sending module, for sending IP address request to address allocation server, in described IP address request, carry the information of the physical address that embodies described main frame, wherein, the physical address of described main frame be IP bearer network distribute to network segment information that described main frame independently uses and and IP bearer network distribute to the VLAN ID that described main frame independently uses;
Receiver module, for receiving the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Configuration module, for carrying out IP address configuration according to the described IP address receiving;
Wherein, described main frame also comprises:
Physical address application module, if be positioned at the same network segment for described address allocation server and described main frame, send the message for applying for physical address to described address server, described address allocation server is defined as the network segment information of self network segment information of described main frame; Or, if described address allocation server is positioned at the different network segments from described main frame, send for applying for the message of physical address by the DHCP relay device that is positioned at the same network segment with described main frame, the IP address for applying for that the message of physical address comprises described DHCP relay device that described DHCP relay device sends, described address allocation server is for being defined as network segment information corresponding the IP address of described DHCP relay device the network segment information of described main frame.
22. main frames according to claim 21, it is characterized in that, described sending module is specifically for sending the IP address request of carrying VLAN ID to the DHCP relay device that is positioned at the same network segment with described main frame, accordingly, described DHCP relay device sends IP address request to Dynamic Host Configuration Protocol server after receiving the IP address request that described main frame sends, in described IP address request, carry IP address and the described VLAN ID of described DHCP relay device, described Dynamic Host Configuration Protocol server is for determining the network segment under described DHCP relay device according to the IP address of described DHCP relay device, by with described DHCP relay device under the network segment and IP address assignment corresponding to described VLAN ID give described main frame.
23. 1 kinds of main frames, is characterized in that, comprising:
Sending module, for sending IP address request to address allocation server, the information of carrying the physical address that embodies described main frame in described IP address request, wherein, the physical address of described main frame is that IP bearer network is distributed to the VLAN ID that described main frame independently uses;
Receiver module, for receiving the IP address that described address allocation server is described host assignment, described IP address is that described address allocation server is determined according to the corresponding relation between IP address and the physical address of main frame of described IP address request and the maintenance of described address allocation server, wherein, between described IP address and described physical address, be relation one to one;
Configuration module, for carrying out IP address configuration according to the described IP address receiving.
24. main frames according to claim 23, it is characterized in that, described sending module is specifically for sending IP address request to address allocation server, in described IP address request, carry VLAN ID, accordingly, Dynamic Host Configuration Protocol server is for giving described main frame by the IP address assignment corresponding with described VLAN ID.
CN201010624687.8A 2010-12-31 2010-12-31 Method for allocating and configuring address, address allocation server and host machine Active CN102143247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010624687.8A CN102143247B (en) 2010-12-31 2010-12-31 Method for allocating and configuring address, address allocation server and host machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010624687.8A CN102143247B (en) 2010-12-31 2010-12-31 Method for allocating and configuring address, address allocation server and host machine

Publications (2)

Publication Number Publication Date
CN102143247A CN102143247A (en) 2011-08-03
CN102143247B true CN102143247B (en) 2014-07-30

Family

ID=44410459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010624687.8A Active CN102143247B (en) 2010-12-31 2010-12-31 Method for allocating and configuring address, address allocation server and host machine

Country Status (1)

Country Link
CN (1) CN102143247B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904977B (en) * 2012-10-24 2015-07-08 华为技术有限公司 Network address allocation method, server and node
CN104378222A (en) * 2013-08-15 2015-02-25 海尔集团公司 Communication parameter configuration method, server and intelligent network system
CN104038570B (en) * 2014-06-27 2018-07-24 曙光信息产业(北京)有限公司 A kind of data processing method and device
CN104394242A (en) * 2014-11-21 2015-03-04 华为技术有限公司 IP (internet protocol) address allocation method and device
CN105208142A (en) * 2015-08-25 2015-12-30 江苏省电力公司镇江供电公司 Power grid information asset operation and maintenance IP address automatic allocation method
CN105245629B (en) * 2015-09-25 2018-10-16 互联网域名系统北京市工程研究中心有限公司 Host communication method based on DHCP and device
CN105610669A (en) * 2015-12-28 2016-05-25 湖南基石通信技术有限公司 Address distribution method and device for Supervlan flattened network
JP6728745B2 (en) * 2016-02-19 2020-07-22 ヤマハ株式会社 Server and system
CN106055403B (en) * 2016-05-13 2019-06-28 深圳市青葡萄科技有限公司 The method and system of terminal rapid configuration are carried out based on USB storage device
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107172229B (en) * 2017-06-27 2021-05-18 中国联合网络通信集团有限公司 Router configuration method and device
CN109274571B (en) * 2018-10-09 2021-08-20 杭州安恒信息技术股份有限公司 Method, device and equipment for tracing back equipment in virtual local area network
CN111107173B (en) * 2018-10-29 2023-04-07 中国移动通信集团浙江有限公司 IP address planning method and system of IP bearing network
CN112367416B (en) * 2021-01-15 2021-03-12 湖南高至科技有限公司 System, method and computer equipment for remotely setting equipment IP address
CN115297091B (en) * 2022-08-03 2024-03-12 国核自仪系统工程有限公司 IP address management method and IP address management system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101534329A (en) * 2009-04-16 2009-09-16 华为技术有限公司 IP address assignment method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101534329A (en) * 2009-04-16 2009-09-16 华为技术有限公司 IP address assignment method and system

Also Published As

Publication number Publication date
CN102143247A (en) 2011-08-03

Similar Documents

Publication Publication Date Title
CN102143247B (en) Method for allocating and configuring address, address allocation server and host machine
CN102148749B (en) Method and device for extending switch port
CN108777722B (en) Multi-system networking communication method and device, mobile terminal and storage medium
CN102801715B (en) Method for virtual machine migration in network, gateway and system
CN101534329B (en) IP address assignment method and system
CN105245629B (en) Host communication method based on DHCP and device
CN101577738B (en) Address distribution method and equipment thereof
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
CN103297353A (en) Access method and system of customer premise equipment and broadband network gateway
CN103685592A (en) Wireless bridge and method for realizing DHCP address application
CN105472048A (en) Address allocating method, information aggregation method and related equipment
CN103039059B (en) IP address allocation method, system and device
CN102868781B (en) A kind of wireless bridge and realize the method for DHCP safety
CN108259295B (en) MAC address synchronization method and device
CN106302861B (en) Address allocation method and device
CN110391961B (en) Tunnel binding method, device and system
CN102244689B (en) Method and equipment for obtaining remote IP address
CN107579988B (en) Method and device for configuring security policy
CN102859947B (en) Method, apparatus and system for neighbor discovery
CN104426759A (en) Host machine router acquiring method, host machine router acquiring device, and host machine router acquiring system
CN106878479B (en) Address allocation method and device
US20180123879A1 (en) Method for Configuring Forwarding Table for User Equipment, Apparatus, and System
CN113938353A (en) Multi-PDN implementation method between indoor unit and outdoor unit and storage medium
CN108259636B (en) Message processing method and device
CN106713287A (en) Method, apparatus and system for automatically registering wireless access point

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant