CN107508928A - A kind of DHCP obtains the implementation method of IP address automatically - Google Patents
A kind of DHCP obtains the implementation method of IP address automatically Download PDFInfo
- Publication number
- CN107508928A CN107508928A CN201710800318.1A CN201710800318A CN107508928A CN 107508928 A CN107508928 A CN 107508928A CN 201710800318 A CN201710800318 A CN 201710800318A CN 107508928 A CN107508928 A CN 107508928A
- Authority
- CN
- China
- Prior art keywords
- dhcp
- vlan
- range
- messages
- attribute
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5069—Address allocation for group communication, multicast communication or broadcast communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Abstract
A kind of DHCP for China Mobile's scene obtains the implementation method of IP address automatically, and IP address can be obtained automatically in the case of the VLAN that can solve not knowing the passage that main IPRAN networks provide currently.It is as follows including step:Step 1:The VLAN RANGE of interface are set;Step 2:The DHCP CLIENT attributes of interface are set;Step 3:Set the DHCP VLAN of interface to send attribute, continue multicast attribute and multicast turns unicast attribute;Step 4:Interface carries out the transmission of related DHCP DISCOVERY messages according to VLAN RANGE;Step 5:If multicast attribute, the VLAN in the range of DHCP DISCOVERY messages to all configuration RANGE is persistently sent;Step 6:If multicast turns unicast attribute, the VLAN in the range of DHCP DISCOVERY messages to all configuration RANGE is sent, after DHCP OFFER messages are received, stops sending DHCP DISCOVERY messages to other VLAN.The present invention can meet the scene demand of China Mobile, can carry out opening equipment according to the planning of client, realize the connection of customer network, so as to bring technological value and economic value to client.
Description
Technical field
The present invention relates to network communication technology field, and in particular to a kind of DHCP for China Mobile's scene is obtained automatically
The implementation method of IP address.
Background technology
Light DHCP (Dynamic Host Configuration Protocol, DHCP) is generally answered
In large-scale LAN environment, main function is management, the distribution IP address concentrated, and moves the main frame in network environment
The information such as the acquisition IP address of state, Gateway addresses, dns server address, and the utilization rate of address can be lifted.
DHCP protocol uses client/server model, and the dynamically distributes task of host address is driven by network host.When
When Dynamic Host Configuration Protocol server receives the information from network host applied address, related address configuration can be just sent to network host
Etc. information, to realize the dynamic configuration of Network Host address information
DHCP has three kinds of mechanism distribution IP address:
1) the automatic method of salary distribution (Automatic Allocation), Dynamic Host Configuration Protocol server are that specified one of main frame is permanent
IP address, after success is rented to IP address from Dynamic Host Configuration Protocol server end for the first time once dhcp client, it is possible to permanent to make
With the address.
2) dynamically distributes mode (Dynamic Allocation), Dynamic Host Configuration Protocol server specifies one to main frame has time limit
The IP address of system, the time is expired or main frame is explicitly indicated that when abandoning the address, and the address can be used by other main frames.
3) manual assignment mode (Manual Allocation), the IP address of client is specified by network manager,
Dynamic Host Configuration Protocol server simply tells specified IP address to client host.
In three kinds of address distributions, only the address that client no longer needs may be reused in dynamically distributes.
As shown in figure 1, traditional DHCP modes encounter following problem in Shanghai Mobile's usage scenario of China Mobile:When
Small-sized PTN device passes through the main IPRAN networks of Shanghai Mobile to DHCP SERVER acquisitions IP as DHCP CLIENT equipment
When location, because main IPRAN networks do not provide specific service VLAN, small-sized PTN is caused to be set due to not knowing how
VLAN and obtain less than IP address.
The content of the invention
A kind of DHCP for China Mobile's scene proposed by the present invention obtains the implementation method of IP address automatically, can solve
IP address can be obtained automatically in the case of the VLAN of the certainly current passage do not known main IPRAN networks and provided.
To achieve the above object, present invention employs following technical scheme:
A kind of DHCP for China Mobile's scene obtains the implementation method of IP address automatically, and DHCP module includes DHCP
CLIETN modules and VLAN RANGE modules, the VLAN RANGE modules instruct DHCP CLIENT modules to carry out DHCP
DISCOVERY messages are sent, including step is as follows:
Step 1:The VLAN RANGE of interface are set;
Step 2:The DHCP CLIENT attributes of interface are set;
Step 3:Set the DHCP VLAN of interface to send attribute, continue multicast attribute and multicast turns unicast attribute;
Step 4:Interface carries out the transmission of related DHCP DISCOVERY messages according to VLAN RANGE;
Step 5:If multicast attribute, persistently in the range of transmission DHCP DISCOVERY messages to all configuration RANGE
VLAN;Then DHCP OFFER messages are received, if receiving multiple, the OFFER messages of first reception of selection, completion
Other message interactions of DHCP, IP address is obtained, if DHCP is interrupted, repeat transmission DHCP DISCOVERY messages and match somebody with somebody to all
Put the VLAN in the range of RANGE.
Step 6:If multicast turns unicast attribute, DHCP DISCOVERY messages are sent to all configuration RANGE scopes
Interior VLAN, after DHCP OFFER messages are received, stop sending DHCP DISCOVERY messages to other VLAN.If DHCP
Interruption needs deallocation, and next time, VLAN directly up once was transmitted DHCP DISCOVERY messages, if received
OFFER messages to DHCP then stop;If not receiving DHCP OFFER messages, the beginning portion of this section of content is repeated to
Point;Untill receiving DHCP OFFER messages;Then DHCP OFFER messages are received, if receiving multiple, selection the
The OFFER messages of one reception, other message interactions of DHCP are completed, obtain IP address, if DHCP is interrupted, repeat to send
VLAN in the range of DHCP DISCOVERY messages to all configuration RANGE.
Compared with prior art, a kind of DHCP for China Mobile's scene of the present invention obtains the realization of IP address automatically
IP address can be obtained automatically in the case of the VLAN that method can solve not knowing the passage that main IPRAN networks provide currently.
It so as to meet the scene demand of China Mobile, otherwise can not meet, also just can not open equipment in the scene of client, also not
The idea of client can be realized.The present invention solves this problem in that, can carry out opening equipment according to the planning of client, realize client's net
The connection of network, so as to bring technological value and economic value to client.
Brief description of the drawings
Fig. 1 is the introduction of usage scenario in the present invention;
Fig. 2 is the work relationship of DHCP modules in the present invention;
Fig. 3 contains the flow of multicast attribute in the present invention.
Embodiment
The present invention will be further described below in conjunction with the accompanying drawings:
As shown in figure 1, branch 1 obtains IP address automatically by DHCP modes from Dynamic Host Configuration Protocol server, but due to the He of branch 1
2 layers of passage between Dynamic Host Configuration Protocol server do not provide specific VLAN, if so branch 1 do not know that VLAN situation is can not be total
Dynamic Host Configuration Protocol server gets IP address.
The DHCP for China Mobile's scene described in the present embodiment obtains the implementation method of IP address automatically, such as Fig. 2 institutes
Show, DHCP module includes in the present invention:
DHCP CLIETN modules;
VLAN RANGE modules;
VLAN RANGE modules instruct DHCP CLIENT modules to carry out the transmission of DHCP DISCOVERY messages;
As shown in figure 3, the flow of multicast attribute includes in the present invention:
Interface is configured with VLAN RANGE and DHCP CLIENT;
Judge DHCP CLIENT attributes whether multicast attribute;
If not multicast attribute, carry out multicast and turn unicast flow processing (default property is that multicast turns unicast)
If multicast attribute, DHCP DISCOVERY messages are sent to all VLAN in the range of the RANGE of configuration,
Until being sent;
DHCP OFFER messages are received, if receiving multiple, the OFFER messages of first reception of selection;
Other message interactions of DHCP are completed, obtain IP address;
If DHCP is interrupted, repeatedly said process;
As shown in figure 3, multicast turns the flow of unicast attribute and included in the present invention:
Interface is configured with VLAN RANGE and DHCP CLIENT;
Judge DHCP CLIENT attributes whether multicast attribute;
If multicast attribute, carry out multicast flow processing (default property is that multicast turns unicast)
If multicast turns unicast attribute, send DHCP's successively to all VLAN in the range of the RANGE of configuration
DISCOVERY messages, until receiving DHCP OFFER messages, stop sending;
DHCP OFFER messages are received, if receiving multiple, the OFFER messages of first reception of selection;
Other message interactions of DHCP are completed, obtain IP address;
If DHCP is interrupted, repeatedly said process.
The implementation method for obtaining IP address automatically to a kind of DHCP for China Mobile's scene of the present invention below is lifted
Example 1:
The implementation method for obtaining IP address automatically to a kind of DHCP for China Mobile's scene of the present invention below is lifted
Example 2:
The implementation method for obtaining IP address automatically to a kind of DHCP for China Mobile's scene of the present invention below is lifted
Example 3:
Embodiment described above is only that the preferred embodiment of the present invention is described, not to the model of the present invention
Enclose and be defined, on the premise of design spirit of the present invention is not departed from, technical side of the those of ordinary skill in the art to the present invention
The various modifications and improvement that case is made, all should fall within the scope of protection of the present invention.
Claims (2)
1. a kind of DHCP for China Mobile's scene obtains the implementation method of IP address automatically, DHCP module includes
DHCPCLIETN modules and VLAN RANGE modules, the VLAN RANGE modules instruct DHCP CLIENT modules to carry out
DHCPDISCOVERY messages are sent, it is characterised in that:
Comprise the following steps:
Step 1:The VLAN RANGE of interface are set;
Step 2:The DHCP CLIENT attributes of interface are set;
Step 3:Set the DHCP VLAN of interface to send attribute, continue multicast attribute and multicast turns unicast attribute;
Step 4:Interface carries out the transmission of related DHCP DISCOVERY messages according to VLAN RANGE;
Step 5:If multicast attribute, persistently in the range of transmission DHCP DISCOVERY messages to all configuration RANGE
VLAN, until being sent;Then receive DHCP OFFER messages, if receive it is multiple, select first reception
OFFER messages, other message interactions of DHCP are completed, obtain IP address, if DHCP is interrupted, repeat to send
VLAN in the range of DHCPDISCOVERY messages to all configuration RANGE.
Step 6:If multicast turns unicast attribute, DHCP DISCOVERY messages are sent in the range of all configuration RANGE
VLAN, after DHCP OFFER messages are received, stop sending DHCP DISCOVERY messages to other VLAN;Then receive
DHCP OFFER messages, if receiving multiple, the OFFER messages of first reception of selection, complete DHCP other messages friendships
Mutually, IP address is obtained, if DHCP is interrupted, repeatedly in the range of transmission DHCP DISCOVERY messages to all configuration RANGE
VLAN.
2. the DHCP according to claim 1 for China Mobile's scene obtains the implementation method of IP address automatically, it is special
Sign is:If the step 6, which also includes DHCP, which interrupts, needs deallocation, next time, VLAN directly up once was carried out
DHCP DISCOVERY messages are sent, are stopped if the OFFER messages for receiving DHCP;If DHCP OFFER is not received
Message, then repeat to be transmitted DHCP DISCOVERY messages to the VLAN of last time, until the OFFER messages for receiving DHCP are
Only.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800318.1A CN107508928A (en) | 2017-09-07 | 2017-09-07 | A kind of DHCP obtains the implementation method of IP address automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800318.1A CN107508928A (en) | 2017-09-07 | 2017-09-07 | A kind of DHCP obtains the implementation method of IP address automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107508928A true CN107508928A (en) | 2017-12-22 |
Family
ID=60696144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710800318.1A Pending CN107508928A (en) | 2017-09-07 | 2017-09-07 | A kind of DHCP obtains the implementation method of IP address automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107508928A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099138A (en) * | 2019-04-09 | 2019-08-06 | 烽火通信科技股份有限公司 | A kind of method and system handling the DHCP data with VLAN TAG |
CN113098797A (en) * | 2021-03-24 | 2021-07-09 | 深圳市乙辰科技股份有限公司 | Network connection method and device based on distributed networking system and computer equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2619092A1 (en) * | 2008-01-29 | 2009-07-29 | Solutioninc Limited | Method of and system for support of user devices roaming between routing realms by a single network server |
CN103096300A (en) * | 2013-01-16 | 2013-05-08 | 大唐移动通信设备有限公司 | Base station virtual local area network recognition number automatic acquiring method and system |
CN103501354A (en) * | 2013-09-03 | 2014-01-08 | 大唐移动通信设备有限公司 | Method and device for obtaining base station self-starting configuration parameters |
CN103636167A (en) * | 2013-02-07 | 2014-03-12 | 华为技术有限公司 | Station opening configuration method in base station, base station, and server |
CN104618942A (en) * | 2014-12-30 | 2015-05-13 | 大唐移动通信设备有限公司 | Base station and PTN (Packet Transport Network) networking based automatic startup method thereof and RNC (Radio Network Controller) |
CN105245388A (en) * | 2015-10-28 | 2016-01-13 | 北京众合德信技术有限公司 | Miniature access PTN device and configuration method and system thereof |
-
2017
- 2017-09-07 CN CN201710800318.1A patent/CN107508928A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2619092A1 (en) * | 2008-01-29 | 2009-07-29 | Solutioninc Limited | Method of and system for support of user devices roaming between routing realms by a single network server |
CN103096300A (en) * | 2013-01-16 | 2013-05-08 | 大唐移动通信设备有限公司 | Base station virtual local area network recognition number automatic acquiring method and system |
CN103636167A (en) * | 2013-02-07 | 2014-03-12 | 华为技术有限公司 | Station opening configuration method in base station, base station, and server |
CN103501354A (en) * | 2013-09-03 | 2014-01-08 | 大唐移动通信设备有限公司 | Method and device for obtaining base station self-starting configuration parameters |
CN104618942A (en) * | 2014-12-30 | 2015-05-13 | 大唐移动通信设备有限公司 | Base station and PTN (Packet Transport Network) networking based automatic startup method thereof and RNC (Radio Network Controller) |
CN105245388A (en) * | 2015-10-28 | 2016-01-13 | 北京众合德信技术有限公司 | Miniature access PTN device and configuration method and system thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099138A (en) * | 2019-04-09 | 2019-08-06 | 烽火通信科技股份有限公司 | A kind of method and system handling the DHCP data with VLAN TAG |
CN113098797A (en) * | 2021-03-24 | 2021-07-09 | 深圳市乙辰科技股份有限公司 | Network connection method and device based on distributed networking system and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297560B (en) | A kind of method and server of data flow classification | |
CN104158752B (en) | The treating method and apparatus of service traffics | |
US20040160945A1 (en) | Network communication system with a stand alone multi-media terminal adapter | |
CN204652411U (en) | A kind of coupling networking based on smart machine | |
CN103347302B (en) | Dynamic service bandwidth allocation methods in SCPC/DAMA satellite system | |
CN103237071B (en) | A kind of method of wireless EoC terminal centralized management | |
CN106937136A (en) | Data delay method and system based on statistical information between network direct broadcasting | |
CN101951325A (en) | Network terminal configuration system based on automatic discovery and configuration method thereof | |
CN106973010A (en) | A kind of method that home gateway single port merges two kinds of heterogeneous networks | |
CN1350385A (en) | Reliable message transmitting method of simple network management protocol | |
CN102202375A (en) | Method and system for controlling MTC (Machine Type Communication) equipment access and transceiving data | |
CN107508928A (en) | A kind of DHCP obtains the implementation method of IP address automatically | |
CN104660509B (en) | The method for processing forwarding of data message in a kind of access gateway | |
US7336604B2 (en) | Network access module for supporting a stand alone multi-media terminal adapter | |
CN109218782A (en) | Interactive television service activating method, device and system | |
CN105246129B (en) | The network-building method and device of a kind of intelligent terminal | |
CN101242339A (en) | IP data transmission method based on RRU | |
CN101616343A (en) | A kind of auto-negotiation method for service types and convergence device thereof | |
CN103095604A (en) | System and method for identifying specific application of home network | |
CN100479371C (en) | Method of broadcast transmitting message and an exchange equipment | |
CN101110690A (en) | System and method for multicast controlling in ordering business management system | |
CN105025247A (en) | Video conference forwarding system | |
CN101827036A (en) | Method and device for realizing multicast service configuration of home gateway | |
CN111917479A (en) | 5G network distributed edge system based on broadcast and television optical fiber network and control method | |
CN102238066A (en) | Real-time traffic reporting method, media endpoint 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171222 |
|
WD01 | Invention patent application deemed withdrawn after publication |