CN109831541A - Device address distribution method, system and relevant device - Google Patents

Device address distribution method, system and relevant device Download PDF

Info

Publication number
CN109831541A
CN109831541A CN201711179660.0A CN201711179660A CN109831541A CN 109831541 A CN109831541 A CN 109831541A CN 201711179660 A CN201711179660 A CN 201711179660A CN 109831541 A CN109831541 A CN 109831541A
Authority
CN
China
Prior art keywords
request
lan
response
address
upstream
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.)
Granted
Application number
CN201711179660.0A
Other languages
Chinese (zh)
Other versions
CN109831541B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201711179660.0A priority Critical patent/CN109831541B/en
Publication of CN109831541A publication Critical patent/CN109831541A/en
Application granted granted Critical
Publication of CN109831541B publication Critical patent/CN109831541B/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 discloses a kind of device address distribution method, system and relevant devices, are related to field of IP network technology.Device address distribution method includes: that forwarding device receives the first request that upstream device is sent;Forwarding device generates the first response of the LAN ID including dynamic host configuration protocol DHCP server in response to not having the LAN ID for meeting preset condition in the first request;Downstream equipment sends the first response to forwarding device, so that upstream device carries out LAN configuration according to LAN ID;Forwarding device receives the second request that upstream device is sent;Forwarding device is transmitted to Dynamic Host Configuration Protocol server in response to carrying LAN ID in the second request, by the second request, so that Dynamic Host Configuration Protocol server is that upstream device distributes IP address.Whole process from upstream device and forwarding device automatically with complete, improve allocative efficiency without upstream device and Dynamic Host Configuration Protocol server are pre-configured with the same local area network manually without manpower intervention, it is applied widely.

Description

Device address distribution method, system and relevant device
Technical field
The present invention relates to IP (Internet Protocol, network protocol) network technique field, in particular to a kind of equipment Address distribution method, system and relevant device.
Background technique
It automatically configures load function and mainly realizes the configuration file for obtaining storage from profile service device, set locally Standby upper load, preservation, to simplify the on-site maintenance of equipment, are improved with achieving the purpose that automatically to configure local device The efficiency of device configuration work.
It is usually in the market TFTP (Trivial File Transfer for the server of storage configuration file Protocol, Simple File Transfer Protocol) server.Local device is initially that sky is matched, and the IP with TFTP connection is usually to use DHCP mode obtains.Local server is resulted in this way and tftp server is unable to travelling across VLAN (Virtual Local Area Network, virtual LAN) intercommunication, but it can only be configured as same VLAN in advance, cause allocative efficiency low, in reality There are significant limitations in the application of border.
Summary of the invention
One technical problem to be solved by the embodiment of the invention is that: how to improve the allocative efficiency of equipment.
First aspect according to some embodiments of the invention provides a kind of device address distribution method, comprising: forwarding is set Standby the first request for receiving upstream device and sending, wherein upstream device does not obtain IP address;Forwarding device is in response to the first request In do not have the LAN ID for meeting preset condition, generate include dynamic host configuration protocol DHCP server local network mark The first response known;Downstream equipment sends the first response to forwarding device, so that upstream device is according to LAN ID carry out office Domain net configuration;Forwarding device receives the second request that upstream device is sent;Forwarding device is in response to carrying local in the second request Network mark is known, and the second request is transmitted to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server is that upstream device distributes IP address.
In some embodiments, forwarding device in response to first request in LAN ID be default LAN ID, Or first request in do not include LAN ID, generate include Dynamic Host Configuration Protocol server LAN ID first response.
In some embodiments, the first request and the second request are DHCP request, and the first response is dhcp response.
In some embodiments, the LAN ID of Dynamic Host Configuration Protocol server is added to preset invalid IP address by forwarding device Predeterminated position, and according to invalid IP address generate first response.
In some embodiments, device address distribution method further include: forwarding device receives the third that upstream device is sent Request, the destination address of third request are profile service device;Third request is sent to profile service by forwarding device Device, so that upstream device is automatically configured using the configuration file that profile service device is requested and sent in response to third.
The second aspect according to some embodiments of the invention provides a kind of device address distribution method, comprising: downstream is set Standby forwarding device upstream sends the first request, wherein upstream device does not obtain IP address, does not have in the first request and meets The LAN ID of preset condition;Upstream device receives the first response that forwarding device is sent;Upstream device extracts the first response In Dynamic Host Configuration Protocol server LAN ID;Upstream device carries out LAN configuration according to LAN ID;Upstream device to turn It sends out equipment and sends the second request, wherein LAN ID is carried in the second request, so that forwarding device is in response in the second request LAN ID is carried, the second request is transmitted to dynamic host configuration protocol DHCP server;Upstream device receives DHCP clothes Business device is the IP address of upstream device distribution.
In some embodiments, the LAN ID in the first request is default LAN ID, alternatively, in the first request It does not include LAN ID.
In some embodiments, the first request and the second request are DHCP request, and the first response and the second response are DHCP Response.
In some embodiments, upstream device is invalid IP address in response to the IP address in the first response, with extracting IP The LAN ID of Dynamic Host Configuration Protocol server on the predeterminated position of location.
In some embodiments, device address distribution method further include: upstream device sends third request, third request Destination address is profile service device;Upstream device receives the configuration that profile service device is requested in response to third and sent File;Upstream device is automatically configured according to configuration file.
In terms of third according to some embodiments of the invention, a kind of forwarding device is provided, comprising: the first request receives mould Block, for receiving the first request of upstream device transmission, wherein upstream device does not obtain IP address;First response generation module, For in response to not having the LAN ID for meeting preset condition in the first request, generating to include dynamic host configuration protocol First response of the LAN ID of Dynamic Host Configuration Protocol server;First response sending module sends the first response for downstream equipment, So that upstream device carries out LAN configuration according to LAN ID;Second request receiving module, for receiving upstream device hair The second request sent;Second request forwarding module, in response to carrying LAN ID in the second request, the second request to be turned Dynamic Host Configuration Protocol server is issued, so that Dynamic Host Configuration Protocol server is that upstream device distributes IP address.
In some embodiments, the first response generation module is further used in response to the LAN ID in the first request Not include LAN ID in default LAN ID or the first request, the local network mark including Dynamic Host Configuration Protocol server is generated The first response known.
In some embodiments, the first response generation module is further used for adding the LAN ID of Dynamic Host Configuration Protocol server The first response is generated to the predeterminated position of preset invalid IP address, and according to invalid IP address.
4th aspect according to an embodiment of the present invention, provides a kind of equipment, which is the upstream device of forwarding device, Include: the first request sending module, sends the first request for forwarding device upstream, wherein upstream device does not obtain IP Address, first request in do not have the LAN ID for meeting preset condition;First response receiving module, sets for receiving forwarding The first response that preparation is sent;LAN ID extraction module, for extracting the local network mark of the Dynamic Host Configuration Protocol server in the first response Know;LAN configuration module, for carrying out LAN configuration according to LAN ID;Second request sending module, for turn It sends out equipment and sends the second request, wherein LAN ID is carried in the second request, so that forwarding device is in response in the second request LAN ID is carried, the second request is transmitted to dynamic host configuration protocol DHCP server;IP address receiving module, is used for Receive the IP address that Dynamic Host Configuration Protocol server is upstream device distribution.
In some embodiments, the first request and the second request are DHCP request, and the first response is dhcp response.
In some embodiments, LAN ID extraction module be further used in response to first response in IP address be Invalid IP address extracts the LAN ID of the Dynamic Host Configuration Protocol server on the predeterminated position of IP address.
In some embodiments, equipment further include: third request sending module, for sending third request, third request Destination address be profile service device;Configuration file receiving module, for receiving profile service device in response to third The configuration file of request and transmission;Module is automatically configured, for being automatically configured according to configuration file.
5th aspect according to an embodiment of the present invention, provides a kind of device address distribution system, comprising: aforementioned any one Kind of forwarding device and it is aforementioned any one be located at the equipment in forwarding device downstream.
Some embodiments in foregoing invention have the following advantages that or the utility model has the advantages that the embodiment of the present invention can make downstream Equipment obtains the LAN ID of Dynamic Host Configuration Protocol server under conditions of zero configuration, by way of voluntarily learning, and automatically configures To be in the same local area network with Dynamic Host Configuration Protocol server, thus address of the available Dynamic Host Configuration Protocol server of upstream device for its distribution. Whole process from upstream device and forwarding device automatically with complete, be not necessarily to manpower intervention, without manually by upstream device and Dynamic Host Configuration Protocol server is pre-configured with the same local area network, improves allocative efficiency, applied widely.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its Advantage will become apparent.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the flow chart according to the device address distribution method of some embodiments of the invention.
Fig. 2 is the flow chart according to the device address distribution method of some embodiments of the invention.
Fig. 3 is the flow chart according to the embodiment of the device address distribution method of some embodiments of the invention.
Fig. 4 is the structure chart according to the device address distribution system of some embodiments of the invention.
Fig. 5 is the structure chart according to the forwarding device of some embodiments of the invention.
Fig. 6 is the structure chart according to the upstream device of the forwarding device of some embodiments of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the present invention and its application or make Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
Fig. 1 is the flow chart according to the device address distribution method of some embodiments of the invention.As shown in Figure 1, the implementation The device address distribution method of example includes step S102~S110.
In step s 102, upstream device sends the first request to forwarding device, wherein upstream device is with not obtaining IP Location.
Forwarding device can be interchanger, router, be also possible to a kind of new equipment independently of existing equipment;Downstream is set The standby downstream for being located at forwarding device, upstream device can be terminal device, be also possible to the network equipments such as interchanger.Upstream device Still in the state being not configured, therefore do not have IP address, it is difficult to be communicated with external device.
When upstream device is communicated with forwarding device, the information type that can be able to use at this time using upstream device. For example, upstream device can send DHCP request.
In step S104, forwarding device in response to first request in do not have the LAN ID for meeting preset condition, Generate the first response of the LAN ID including Dynamic Host Configuration Protocol server.
In some embodiments, the LAN ID in the first request is that default LAN ID or described first are asked It does not include LAN ID in asking.LAN ID can for example identify for VLAN.In some cases, default LAN ID It will not be used as LAN ID when normal use, therefore can be used for identifying whether equipment is configured with LAN Information.
Upstream device not yet configures, therefore upstream device does not have LAN Information yet or only has default setting Default LAN Information.Due to existing in several equipment of access forwarding device, the equipment being not configured, there is also configured to set It is standby, therefore whether forwarding device can close rule, whether normally to determine whether setting to these according to the request that these equipment are sent The request that preparation is sent carries out special processing.
If not having the LAN ID for meeting preset condition in the first request, upstream device knows that needs are The upstream device distributes LAN ID, so as to directly intercept and capture first request without continuing to forward.Then, will The LAN ID of Dynamic Host Configuration Protocol server informs upstream device.
In step s 106, downstream equipment sends the first response to forwarding device.
In some embodiments, first response can be dhcp response, so as to so that upstream device in the shape being not configured Also the response received can be normally parsed under state.As needed, which is also possible to other that upstream device can parse The message of type.
In step S108, upstream device carries out LAN configuration according to LAN ID.After carrying out LAN configuration, Upstream device and Dynamic Host Configuration Protocol server LAN ID having the same, belong to same local area network.To which upstream device can be with Dynamic Host Configuration Protocol server is communicated.
In step s 110, upstream device sends the second request to forwarding device.Since upstream device has been provided at this time Normal LAN ID, therefore forwarding device can normally be forwarded the second request.
In step S112, forwarding device is asked in response to carrying the LAN ID in the second request by described second It asks and is transmitted to dynamic host configuration protocol DHCP server.
In step S114, upstream device receives the IP address that Dynamic Host Configuration Protocol server is upstream device distribution.For example, DHCP takes Business device downstream equipment can feed back dhcp response, be the IP address of upstream device distribution including Dynamic Host Configuration Protocol server.
Method through the foregoing embodiment can make upstream device under conditions of zero configuration by way of voluntarily learning It obtains the LAN ID of Dynamic Host Configuration Protocol server and is automatically configured to be in the same local area network with Dynamic Host Configuration Protocol server, thus downstream The address that the available Dynamic Host Configuration Protocol server of equipment distributes for it.Whole process from upstream device and forwarding device automatically with it is complete At being improved without upstream device and Dynamic Host Configuration Protocol server are pre-configured with the same local area network manually without manpower intervention Allocative efficiency, it is applied widely.
In some embodiments, upstream device can be set before obtaining IP address by the forwarding of DHCP protocol and upstream It is standby to interact.LAN Information can be added in the downstream IP address of the dhcp response of equipment feedback by forwarding device. The embodiment of present device address distribution method is described below with reference to Fig. 2.
Fig. 2 is the flow chart according to the device address distribution method of some embodiments of the invention.As shown in Fig. 2, the implementation The device address distribution method of example includes step S202~S218.
In step S202, upstream device sends the first DHCP request to forwarding device, wherein upstream device does not obtain IP Address.
First DHCP request for example can be DHCP DISCOVERY message.
In step S204, forwarding device in response to first request in do not have the LAN ID for meeting preset condition, The LAN ID of the Dynamic Host Configuration Protocol server is added to the predeterminated position of preset invalid IP address, and according to the invalid IP Address generates the first dhcp response.
The IP address for including in first dhcp response is invalid address, thus what upstream device can be received by identification Whether dhcp response effectively judges whether the address is Dynamic Host Configuration Protocol server for the address of its distribution.For example, Dynamic Host Configuration Protocol server VLAN is identified as 25, then VLAN can be identified last number being added in four numbers of composition IP address by forwarding device Word generates the first dhcp response including IP address 0.0.0.25.
In step S206, downstream equipment sends the first dhcp response to forwarding device.
First dhcp response for example can be DHCP OFFER message.
In step S208, upstream device is invalid IP address in response to the IP address in first response, extracts institute State the LAN ID of the Dynamic Host Configuration Protocol server on the predeterminated position of IP address.
For example, upstream device extracts IP address 0.0.0.25 from the first dhcp response received, and find that the IP is Invalid address.To which, upstream device will not be using the IP address as itself real IP address, but from preset 4th number VLAN mark 25 is extracted in word, and configures 25 for the VLAN of itself.
In step S210, upstream device carries out LAN configuration according to LAN ID.After carrying out LAN configuration, Upstream device and Dynamic Host Configuration Protocol server belong to same local area network.
In step S212, upstream device sends the second DHCP request to forwarding device.At this time due to upstream device Has normal LAN ID, therefore forwarding device can normally be forwarded the second DHCP request.
In step S214, forwarding device turns the second request in response to carrying LAN ID in the second DHCP request Issue Dynamic Host Configuration Protocol server.
In step S216, upstream device receives the second dhcp response that Dynamic Host Configuration Protocol server is sent back to.
In step S218, upstream device extract the second dhcp response in IP address go forward side by side row address configuration.
Since the second dhcp response is DHCP in order to which for upstream device distributes IP address and sends, the 2nd DHCP is rung IP address in answering is valid ip address.Upstream device in response to the IP address be it is effective, carry out the address configuration of itself, and The processing of step S208 is not will do it.
Method through the foregoing embodiment, forwarding device can use dhcp response by the local network mark of Dynamic Host Configuration Protocol server Know and inform upstream device, so that upstream device can carry out office by identifying the LAN Information for including in invalid IP address Domain net configuration.
The embodiment of the present invention can be adapted for plurality of application scenes.Upstream device is illustratively introduced below to carry out automatically Configure the process of load.
Fig. 3 is the flow chart according to the embodiment of the device address distribution method of some embodiments of the invention.Such as Fig. 3 institute Show, the device address distribution method of the embodiment includes step S302~S322.
In step s 302, upstream device sends the first request to forwarding device, wherein upstream device is with not obtaining IP Location.
In step s 304, forwarding device in response to first request in do not have the LAN ID for meeting preset condition, Generate the first response of the LAN ID including Dynamic Host Configuration Protocol server.
In step S306, downstream equipment sends the first response to forwarding device.
In step S308, upstream device carries out LAN configuration according to LAN ID.
In step s310, upstream device sends the second request to forwarding device.
In step S312, forwarding device is asked in response to carrying the LAN ID in the second request by described second It asks and is transmitted to Dynamic Host Configuration Protocol server.
In step S314, upstream device receives the IP address that Dynamic Host Configuration Protocol server is upstream device distribution.
In step S316, upstream device sends third request, and the destination address of third request is profile service device.
Profile service device for example can be tftp server.It is stored with needed for upstream device in profile service Configuration file, such as secure configuration file, port profile, account configuration file etc..
In step S318, third request is sent to the profile service device by forwarding device.
Since upstream device at this time has normal LAN ID, also has effective IP address, forwarding is set Standby these information by carrying in third request could be aware that upstream device has been provided with the ability with communicating with external device, because Third can be requested normally to be forwarded by this.
In step s 320, upstream device receives the configuration that profile service device is requested in response to the third and sent File.
In step S322, upstream device is automatically configured according to the configuration file.
Method through the foregoing embodiment, upstream device can complete self-service network configuration to have an IP address, then to Profile service device requests configuration file to complete other configurations.Whole process under conditions of zero configuration by downstream being set Standby and forwarding device carries out cooperation completion automatically, improves allocative efficiency, applied widely.
The embodiment of present device address allocation system is described below with reference to Fig. 4.
Fig. 4 is the structure chart according to the device address distribution system of some embodiments of the invention.As shown in figure 4, the implementation The device address distribution system of example includes forwarding device 50 and the equipment 60 positioned at 50 downstream of forwarding device.
The embodiment of forwarding device of the present invention is described below with reference to Fig. 5.
Fig. 5 is the structure chart according to the forwarding device of some embodiments of the invention.As shown in figure 5, the forwarding of the embodiment Equipment 50 includes: the first request receiving module 510, for receiving the first request of upstream device transmission, wherein upstream device is not Obtain IP address;First response generation module 520, in response to not having the local area network for meeting preset condition in the first request Mark generates the first response of the LAN ID including dynamic host configuration protocol DHCP server;First response sends mould Block 530 sends the first response for downstream equipment, so that upstream device carries out LAN configuration according to LAN ID;The Two request receiving modules 540, for receiving the second request of upstream device transmission;Second request forwarding module 550, for responding LAN ID is carried in the second request, the second request is transmitted to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server sets for downstream Back-up matches IP address.
In some embodiments, the first response generation module 520 can be further used in response to the office in the first request It does not include LAN ID that domain net, which is identified as in default LAN ID or the first request, and generating includes Dynamic Host Configuration Protocol server First response of LAN ID.
In some embodiments, the first response generation module 520 can be further used for the local area network of Dynamic Host Configuration Protocol server Mark is added to the predeterminated position of preset invalid IP address, and generates the first response according to invalid IP address.
The embodiment of the upstream device of forwarding device of the present invention is described below with reference to Fig. 6.
Fig. 6 is the structure chart according to the upstream device of the forwarding device of some embodiments of the invention.As shown in fig. 6, the reality The upstream device 60 for applying the forwarding device of example includes: the first request sending module 610, sends for forwarding device upstream One request, wherein upstream device does not obtain IP address, does not have the LAN ID for meeting preset condition in the first request;The One response receiving module 620, for receiving the first response of forwarding device transmission;LAN ID extraction module 630, for mentioning Take the LAN ID of the Dynamic Host Configuration Protocol server in the first response;LAN configuration module 640, for being carried out according to LAN ID LAN configuration;Second request sending module 650, for sending the second request to forwarding device, wherein carried in the second request It is main to be transmitted to dynamic so that forwarding device is in response to carrying LAN ID in the second request by LAN ID for second request Machine configuration protocol DHCP server;IP address receiving module 660, for receiving the IP that Dynamic Host Configuration Protocol server is upstream device distribution Location.
In some embodiments, the first request and the second request are DHCP request, and the first response is dhcp response.
In some embodiments, LAN ID extraction module 630 is further used in response to the IP in the first response Location is invalid IP address, extracts the LAN ID of the Dynamic Host Configuration Protocol server on the predeterminated position of IP address.
In some embodiments, equipment 60 further include: third request sending module 670, for sending third request, third The destination address of request is profile service device;Configuration file receiving module 680, for receiving the response of profile service device In the configuration file that third is requested and is sent;Module 690 is automatically configured, for being automatically configured according to configuration file.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, special Sign is that the program realizes any one aforementioned device address distribution method when being executed by processor.
Those skilled in the art should be understood that the embodiment of the present invention can provide as method, system or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more, Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of calculation machine program product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It is interpreted as to be realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (18)

1. a kind of device address distribution method, comprising:
Forwarding device receives the first request that upstream device is sent, wherein the upstream device does not obtain IP address;
For forwarding device in response to not having the LAN ID for meeting preset condition in first request, generating includes that dynamic is main First response of the LAN ID of machine configuration protocol DHCP server;
Forwarding device sends the first response to the upstream device, so that the upstream device is carried out according to the LAN ID LAN configuration;
Forwarding device receives the second request that upstream device is sent;
Forwarding device is transmitted to DHCP clothes in response to carrying the LAN ID in second request, by second request Business device, so that Dynamic Host Configuration Protocol server is that the upstream device distributes IP address.
2. device address distribution method according to claim 1, wherein forwarding device is in response in first request It does not include LAN ID that LAN ID, which is in default LAN ID or first request, and it includes described for generating First response of the LAN ID of Dynamic Host Configuration Protocol server.
3. device address distribution method according to claim 1 or 2, wherein first request and the second request are DHCP request, first response is dhcp response.
4. device address distribution method according to claim 3, wherein the forwarding device is by the Dynamic Host Configuration Protocol server LAN ID is added to the predeterminated position of preset invalid IP address, and generates the first response according to the invalid IP address.
5. device address distribution method according to claim 1, further includes:
Forwarding device receives the third request that upstream device is sent, and the destination address of the third request is profile service Device;
Third request is sent to the profile service device by forwarding device, so that the upstream device is using configuration text The configuration file that part server is requested and sent in response to the third is automatically configured.
6. a kind of device address distribution method, comprising:
Upstream device forwarding device upstream sends the first request, wherein and the upstream device does not obtain IP address, and described the Do not have the LAN ID for meeting preset condition in one request;
Upstream device receives the first response that forwarding device is sent;
Upstream device extracts the LAN ID of the Dynamic Host Configuration Protocol server in first response;
Upstream device carries out LAN configuration according to the LAN ID;
Upstream device sends the second request to forwarding device, wherein the LAN ID is carried in second request, so as to Second request is transmitted to DynamicHost and matched by forwarding device in response to carrying the LAN ID in second request Set protocol DHCP server;
Upstream device receives the IP address that Dynamic Host Configuration Protocol server is upstream device distribution.
7. device address distribution method according to claim 6, wherein the LAN ID in first request is silent LAN ID is recognized, alternatively, not including LAN ID in first request.
8. device address distribution method according to claim 6 or 7, wherein first request and the second request are DHCP request, first response and the second response are dhcp response.
9. device address distribution method according to claim 8, wherein upstream device is in response in first response IP address is invalid IP address, extracts the LAN ID of the Dynamic Host Configuration Protocol server on the predeterminated position of the IP address.
10. device address distribution method according to claim 6, further includes:
Upstream device sends third request, and the destination address of the third request is profile service device;
Upstream device receives the configuration file that profile service device is requested in response to the third and sent;
Upstream device is automatically configured according to the configuration file.
11. a kind of forwarding device, comprising:
First request receiving module, for receiving the first request of upstream device transmission, wherein the upstream device does not obtain IP Address;
First response generation module, in response to it is described first request in do not have the LAN ID for meeting preset condition, Generate the first response of the LAN ID including dynamic host configuration protocol DHCP server;
First response sending module, for sending the first response to the upstream device, so that the upstream device is according to LAN ID carries out LAN configuration;
Second request receiving module, for receiving the second request of upstream device transmission;
Second request forwarding module, in response to carrying the LAN ID in second request, described second to be asked It asks and is transmitted to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server is that the upstream device distributes IP address.
12. forwarding device according to claim 11, wherein it is described first response generation module be further used in response to It does not include local network mark that LAN ID in first request, which is in default LAN ID or first request, Know, generates the first response of the LAN ID including the Dynamic Host Configuration Protocol server.
13. forwarding device according to claim 11 or 12, wherein it is described first response generation module be further used for by The LAN ID of the Dynamic Host Configuration Protocol server is added to the predeterminated position of preset invalid IP address, and according to the invalid IP Location generates the first response.
14. a kind of equipment, the equipment is the upstream device of forwarding device, comprising:
First request sending module sends the first request for forwarding device upstream, wherein the upstream device does not obtain IP address, it is described first request in do not have the LAN ID for meeting preset condition;
First response receiving module, for receiving the first response of forwarding device transmission;
LAN ID extraction module, for extracting the LAN ID of the Dynamic Host Configuration Protocol server in first response;
LAN configuration module, for carrying out LAN configuration according to the LAN ID;
Second request sending module, for sending the second request to forwarding device, wherein carry the office in second request Domain network mark is known, so that forwarding device is in response to carrying the LAN ID in second request, second request is turned Issue dynamic host configuration protocol DHCP server;
IP address receiving module, for receiving the IP address that Dynamic Host Configuration Protocol server is upstream device distribution.
15. equipment according to claim 14, wherein first request and the second request are DHCP request, described the One response is dhcp response.
16. equipment according to claim 15, wherein the LAN ID extraction module is further used in response to institute The IP address stated in the first response is invalid IP address, extracts the Dynamic Host Configuration Protocol server on the predeterminated position of the IP address LAN ID.
17. equipment according to claim 14, further includes:
Third request sending module, for sending third request, the destination address of the third request is profile service device;
Configuration file receiving module, the configuration text requested and sent in response to the third for receiving profile service device Part;
Module is automatically configured, for being automatically configured according to the configuration file.
18. a kind of device address distribution system, comprising:
Forwarding device described in any one of claim 11~13, and
It is located at the equipment in the forwarding device downstream described in any one of claim 14~17.
CN201711179660.0A 2017-11-23 2017-11-23 Equipment address allocation method, system and related equipment Active CN109831541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711179660.0A CN109831541B (en) 2017-11-23 2017-11-23 Equipment address allocation method, system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711179660.0A CN109831541B (en) 2017-11-23 2017-11-23 Equipment address allocation method, system and related equipment

Publications (2)

Publication Number Publication Date
CN109831541A true CN109831541A (en) 2019-05-31
CN109831541B CN109831541B (en) 2022-02-22

Family

ID=66858368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711179660.0A Active CN109831541B (en) 2017-11-23 2017-11-23 Equipment address allocation method, system and related equipment

Country Status (1)

Country Link
CN (1) CN109831541B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416239A (en) * 2001-10-31 2003-05-07 华为技术有限公司 Method for switching in virtual local area network of the access network with mixed optical fiber and coaxial line
CN101883158A (en) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN102257772A (en) * 2010-06-07 2011-11-23 华为技术有限公司 Method, device and system for service configuration
CN102594936A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment
US8291111B1 (en) * 2006-11-13 2012-10-16 Cisco Technology, Inc. Responding to a DHCPLEASEQUERY message
CN104753697A (en) * 2013-12-26 2015-07-01 华为技术有限公司 Method, equipment and system for controlling provisioning of network equipment
CN106302861A (en) * 2016-09-27 2017-01-04 杭州华三通信技术有限公司 A kind of address distribution method and device
CN106878479A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of address distribution method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416239A (en) * 2001-10-31 2003-05-07 华为技术有限公司 Method for switching in virtual local area network of the access network with mixed optical fiber and coaxial line
US8291111B1 (en) * 2006-11-13 2012-10-16 Cisco Technology, Inc. Responding to a DHCPLEASEQUERY message
CN102257772A (en) * 2010-06-07 2011-11-23 华为技术有限公司 Method, device and system for service configuration
CN101883158A (en) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN102594936A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment
CN104753697A (en) * 2013-12-26 2015-07-01 华为技术有限公司 Method, equipment and system for controlling provisioning of network equipment
CN106302861A (en) * 2016-09-27 2017-01-04 杭州华三通信技术有限公司 A kind of address distribution method and device
CN106878479A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of address distribution method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王小荣: "DHCP服务在多VLAN中的应用", 《甘肃科技》 *
王常林: "如何使用动态地址分配进行办公网络管理", 《中国金融电脑》 *

Also Published As

Publication number Publication date
CN109831541B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN107733799B (en) Message transmission method and device
CN102318291B (en) Business flow processing method, device and system
CN103607308A (en) Virtual machine multi-network management system and method in cloud computing environment
CN106603550B (en) A kind of Network Isolation method and device
CN105162702B (en) A kind of AC drainage method and device
CN102413044B (en) Method, device, equipment and system for generating DHCP (Dynamic Host Configuration Protocol) Snooping binding table
CN105939267B (en) Outband management method and device
CN103916274B (en) A kind of parallel network element cut-in method of many examples and system
CN103581274A (en) Message forwarding method and device in stacking system
EP3054401A1 (en) Data label carrier information application and processing system and method
CN104243360B (en) The collocation method and device of a kind of conversion link
CN108965131A (en) A kind of method and device of message forwarding
CN103503413A (en) Method and device for transmitting network information
CN107579988A (en) The method and apparatus for configuring security strategy
CN105791176A (en) Method and device for determining IT (Information Technology) equipment port
CN105429867A (en) Fused type home gateway and access method of application service thereof
CN109831541A (en) Device address distribution method, system and relevant device
CN102907037A (en) Inter-machine business backup method, device and system
CN107241207A (en) device management method and device
CN105939242B (en) Realize the method and device of virtual system
CN103916278A (en) Method and device for unified management based on LAN and SAN
CN103997411A (en) Power line system and information interaction method thereof, and power line WiFi terminal and local side
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN106105060B (en) The methods, devices and systems of data communication
CN104052670B (en) A kind of communication means and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant