CN105282263A - Address configuration method and device and equipment - Google Patents

Address configuration method and device and equipment Download PDF

Info

Publication number
CN105282263A
CN105282263A CN201410293544.1A CN201410293544A CN105282263A CN 105282263 A CN105282263 A CN 105282263A CN 201410293544 A CN201410293544 A CN 201410293544A CN 105282263 A CN105282263 A CN 105282263A
Authority
CN
China
Prior art keywords
address
equipment
mac address
conversion factor
field
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
Application number
CN201410293544.1A
Other languages
Chinese (zh)
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.)
SANYA ZHONGXING SOFTWARE Co Ltd
Original Assignee
SANYA ZHONGXING SOFTWARE 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 SANYA ZHONGXING SOFTWARE Co Ltd filed Critical SANYA ZHONGXING SOFTWARE Co Ltd
Priority to CN201410293544.1A priority Critical patent/CN105282263A/en
Priority to PCT/CN2014/091933 priority patent/WO2015196719A1/en
Publication of CN105282263A publication Critical patent/CN105282263A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides an address configuration method and device and equipment. The method comprises the following steps: obtaining position information of the equipment in a network, wherein the position information can uniquely determine the equipment; converting the position information into position information parameters; converting the position information parameters into IP address and MAC address of the equipment; and automatically allocating the IP address and MAC address to the equipment. The scheme can solve the problem of uncertain IP address and MAC address of the equipment and the risk of depending on an external server; and meanwhile, an equipment user can determine the IP and MAC addresses of other equipment without accessing the other equipment, thereby greatly facilitating inter-equipment message exchange.

Description

A kind of address configuration method, device and equipment
Technical field
The present invention relates to data communication field, refer to a kind of address configuration method, device and equipment especially.
Background technology
In the network system of a data communication, need to carry out data transmit-receive between each equipment in system, this data transmit-receive carries out in a network based on IP and MAC Address, so just need to adopt a kind of mode, determine and arrange IP address and the MAC Address of each equipment in system.In common solution, the IP address assignment of network system inside, adopts DHCP (DHCP) mode.
DHCP provides address and configuration parameter for the main frame in network, is the pattern based on client and server, and the process of its DHCP operation principle and request IP is as follows:
1. main frame sends DHCP and finds broadcast packet, and network finds Dynamic Host Configuration Protocol server;
After 2.DHCP server receives, send to main frame unicast packet, comprise IP address, MAC Address, domain-name information and address lease;
3. main frame sends DHCP request, formally distributes the IP address provided to server request;
4.DHCP server sends DHCP to main frame and confirms, confirms host request.
The advantage of Dynamic Host Configuration Protocol server configure host address is to reduce configuration and deployment facility time, reduces the possibility of generation configuration error, can centralized management host ip; But this occupation mode just, also there is following a few point defect in it:
IP address randomness: the IP address of user is Random assignment, has uncertainty, it is larger that user accesses main frame difficulty; If the IP address of main frame often changes, be also difficult to perform network management strategy according to network ip address;
Access rights change: if the access rights of user divide based on IP address, then access rights change with IP address difference.
If there is multiple Dynamic Host Configuration Protocol server in network, the conflict of IP address may be produced
If there is the main frame of non-DHCP in network, then Dynamic Host Configuration Protocol server can not find;
Because IP address assignment depends on the normal operation of outside Dynamic Host Configuration Protocol server, once Dynamic Host Configuration Protocol server operation exception, then directly can affect the IP address assignment of equipment in network, and then have influence on the business of user.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of address configuration method, device and equipment.By obtaining IP address and the MAC Address of this equipment according to the positional information of equipment, do not rely on IP address and MAC Address that outside Dynamic Host Configuration Protocol server obtains equipment, there is not random.It also avoid the IP address conflict that may cause and the problem obtained less than address.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of address configuration method, comprising:
Acquisition equipment positional information in a network, described positional information can uniquely determine described equipment;
Described positional information is converted to location information parameter;
Described location information parameter is converted into IP address and the MAC Address of equipment;
Described IP and MAC Address are distributed to described equipment automatically.
Wherein, described positional information comprises:
Equipment can determine one group of position data of its physical location in a network, described one group of position data can uniquely determine described equipment.
Wherein, the step described positional information being converted to location information parameter comprises:
By described one group of position data, be mapped as a location information parameter respectively, obtain one group of location information parameter.
Wherein, the step of the IP address and MAC Address that described location information parameter are converted into equipment comprises:
Using the conversion factor of described location information parameter as IP address field, the IP address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the IP address of equipment; And
Using the conversion factor of described location information parameter as MAC Address field, the MAC Address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the MAC Address of equipment.
Wherein, described using the conversion factor of described location information parameter as IP address field, the IP address conversion algorithm corresponding according to described conversion factor and each conversion factor, the step being converted into the IP address of equipment comprises:
Described location information parameter is divided into 4 conversion factors, a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
By each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, be converted to a field of IP address;
4 field combination are got up, obtains the IP address of equipment.
Wherein, 4 field combination are got up, also comprise after obtaining the IP address of equipment:
The subnet mask of this IP address is obtained according to the network number in described positional information.
Wherein, using the conversion factor of described location information parameter as MAC Address field, the MAC Address conversion algorithm corresponding according to described conversion factor and each conversion factor, the step being converted into the MAC Address of equipment comprises:
Described location information parameter is divided into 6 conversion factors, a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
By each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, be converted to a field of MAC Address;
6 field combination are got up, obtains the MAC Address of equipment.
Wherein, 6 field combination got up, the step obtaining the MAC Address of equipment comprises:
Front 2 fields of types value as MAC Address of this equipment will be represented;
Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
Embodiments of the invention also provide a kind of address configuration means, comprising:
Acquisition module, for obtaining equipment positional information in a network, described positional information can uniquely determine described equipment;
Modular converter, for being converted to location information parameter by described positional information;
Processing module, for being converted into IP address and the MAC Address of equipment by described location information parameter;
Configuration module, for automatically distributing to described equipment by described IP and MAC Address.
Wherein, described processing module comprises:
First process submodule, for using the conversion factor of described location information parameter as IP address field, according to described conversion factor and IP address conversion algorithm corresponding to each conversion factor, is converted into the IP address of equipment; And
Second process submodule, for using the conversion factor of described location information parameter as MAC Address field, according to described conversion factor and MAC Address conversion algorithm corresponding to each conversion factor, is converted into the MAC Address of equipment.
Wherein, described first process submodule comprises:
First divides submodule, for described location information parameter is divided into 4 conversion factors, and a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
First transform subblock, for by each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, be converted to a field of IP address;
First combination submodule, for 4 field combination being got up, obtains the IP address of equipment.
Wherein, said apparatus also comprises: obtain submodule, for obtaining the subnet mask of this IP address according to the network number in described positional information.
Wherein, described second process submodule comprises:
Second divides submodule, for described location information parameter is divided into 6 conversion factors, and a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
Second transform subblock, for by each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, be converted to a field of MAC Address;
Second combination submodule, for 6 field combination being got up, obtains the MAC Address of equipment.
Wherein, described second combination submodule is used for: will represent front 2 fields of types value as MAC Address of this equipment; Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
Embodiments of the invention also provide a kind of equipment, comprise processor, and described processor comprises address configuration means as above.
Wherein, described equipment also comprises interface, the described IP that the described processing module of described address configuration means obtains by described processor and MAC Address send to the switch in network by described interface, and by the IP address of equipment described in the devices exchange in described switch and other network and MAC Address.
The beneficial effect of technique scheme of the present invention is as follows:
In such scheme, by obtaining equipment positional information in a network, described positional information can uniquely determine described equipment; Described positional information is converted to location information parameter; Described location information parameter is converted into IP address and the MAC Address of equipment; Described IP and MAC Address are distributed to described equipment automatically.The method that the embodiment of the present invention adopts, do not rely on outside Dynamic Host Configuration Protocol server, the IP got and MAC Address determine to there is not random.It also avoid the IP address conflict that may cause and the problem obtained less than address.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of IP and the MAC Address generation method provided according to the embodiment of the present invention;
Fig. 2 is the structural representation of a kind of address configuration means provided according to the embodiment of the present invention.
Fig. 3 is the schematic diagram of multiple Equipments Setting IP and MAC Address in the single lan according to the embodiment of the present invention;
Fig. 4 is multiple Equipments Setting IP and MAC Address schematic diagram in the multiple local area network (LAN)s according to the embodiment of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, embodiments of the invention provide a kind of address configuration method, comprising:
Step 11, obtain equipment positional information in a network, described positional information can uniquely determine described equipment;
Step 12, is converted to location information parameter by described positional information;
Step 13, is converted into IP address and the MAC Address of equipment by described location information parameter;
Step 14, distributes to described equipment automatically by described IP and MAC Address.
This embodiment of the present invention is by acquisition equipment positional information in a network, and described positional information can uniquely determine described equipment; Described positional information is converted to location information parameter; Described location information parameter is converted into IP address and the MAC Address of equipment; Described IP and MAC Address are distributed to described equipment automatically.The method that the embodiment of the present invention adopts, do not rely on outside Dynamic Host Configuration Protocol server, the IP got and MAC Address determine to there is not random.It also avoid the IP address conflict that may cause and the problem obtained less than address.
Wherein, in a specific embodiment of the present invention, comprise on the basis of above-mentioned steps 11-14, wherein, described positional information specifically can be passed through the various ways such as configuration file, location, position and obtain; Described positional information can comprise: equipment can determine one group of position data of its physical location in a network, described one group of position data can uniquely determine described equipment.Certainly, this positional information is not limited to equipment physical location information in a network, all in a network can the information of indication equipment position, all can be used as the positional information of this equipment.Such as: for distributed apparatus machine frame, can be divided into office number, shelf number, frame number, slot number, No. CPU; For a region, such as can be divided into province, city, district, road (street), number; For one family, overlapping house as existed more, equipment etc. in family, room, room can be divided into.
Wherein, in another specific embodiment of the present invention, comprise on the basis of above-mentioned steps 11-14, above-mentioned steps 12 specifically can comprise: by described one group of position data, be mapped as a location information parameter respectively, obtain one group of location information parameter.Concrete, each field for positional information provides a number value, such as, for distributed apparatus machine frame, inherently has office number, shelf number, frame number, slot number, No. CPU value, can directly map as location information parameter; And for a region, such as No. X, D road, C district, B city of A province (street), just need to each province, city, district, road (street), No. X be numbered, map out one group of location information parameter value; For one family, family number, the numerical value such as room number, device number can be mapped as.For location information parameter, its parameter area is continuous print linear dimensions.For location information parameter, need the numbering that a preset parameter represents the local area network (LAN) at this place, IP address, i.e. network number.This network number can be used as input parameter with location information parameter is multiplexing, and the effect of network number is mainly distinguished and isolated each network.
Wherein, in another specific embodiment of the present invention, comprise on the basis of above-mentioned steps 11-14, above-mentioned steps 13 specifically can comprise:
Step 131, using the conversion factor of described location information parameter as IP address field, the IP address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the IP address of equipment; And
Step 132, using the conversion factor of described location information parameter as MAC Address field, the MAC Address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the MAC Address of equipment.
Wherein, step 131 comprises:
Step 1311, is divided into 4 conversion factors by described location information parameter, a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
Step 1312, by each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, is converted to a field of IP address;
4 field combination are got up by step 1313, obtain the IP address of equipment.
For IPv4, existing IP address is 32, and every 8 is a field, and the IP address of 32 is just made up of four field values.Four field values of IP address, the corresponding address conversion algorithm of every field values, using location information parameter as the input parameter of conversion algorithm, one or more input parameters are as the conversion factor of this algorithm, conversion obtains one section of IP address value, and four field values of IP address form the IP address of 32.Obviously, the address conversion algorithm that IP address every sector address numerical value is corresponding is a continuous print linear algorithm, and namely according to the conversion of input parameter, the numerical value obtained by conversion algorithm should be continuous print variation.
Consider that the 1st hop count value effective range of IPv4 is in the decimal system 1 to 126,128 to 223 scope, the 2nd, 3,4 hop count value effective ranges must between the decimal system 0 to 255.For each conversion factor, namely map the location information parameter obtained, its value scope is also in four sections of number ranges of IPv4.Its scope of numerical value that same conversion factor obtains through conversion algorithm is also in four sections of number ranges of IPv4.
Two parts can be divided into for the IP addresses of 32, the network address of front portion IP address for this reason, the host address of rear portion IP address for this reason, the network address and host address are divided by subnet mask, such as IP address A.B.C.D, subnet mask is 255.255.255.0, and its first three byte A.B.C is just its network address, and last byte D is just its host address.
Further, also comprise after above-mentioned steps 1313:
Step 1314, obtains the subnet mask of this IP address according to the network number in described positional information.
The present invention is for the division of the network address and host address, the namely setting of subnet mask determines according to the network number in positional information, such as, setting one family, the IP address that its conversion algorithm obtains is: family number. room number .1. device number, each room is a local area network (LAN), its network number and room number can be set to identical, then its subnet mask is just 255.255.0.0, family number is just its network address with room number, 1 and device number be just its host address, if there is multiple local area network (LAN) in its each room, the network number of each local area network (LAN) is as input parameter, the IP address that its conversion algorithm obtains is family number. room number. and network number. device number, then its subnet mask is 255.255.255.0.Here subnet mask sets according to its network range.
Wherein, in a specific embodiment of the present invention, above-mentioned steps 132 comprises:
Step 1321, is divided into 6 conversion factors by described location information parameter, a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
Step 1322, by each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, is converted to a field of MAC Address;
6 field combination are got up, are obtained the MAC Address of equipment by step 1323.
Wherein, step 1323 comprises: will represent front 2 fields of types value as MAC Address of this equipment, wherein, last bit value of the 1st field can not be 1; Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
For current MAC Address, MAC Address is 48, be divided into six fields, each field is a byte, 8, with hexadecimal representation, for 6 fields of MAC Address, the first two field represents the types value of this equipment in conversion algorithm, and its area requirement is last bit value of the 1st field 8 can not be 1, be generated as multicast mac address to get rid of this MAC, after four each field values of field consistent with four, IP address field value.
Here explanation is needed, location information parameter of the present invention converts as input parameter and obtains the algorithm of IP address and MAC Address and without restriction, as long as it is unique to obtain IP address and MAC Address value in present networks system by this algorithm, all at row of the present invention.
Set position information parameter value is unique in the network system of equipment, and its IP address obtained by converting as input parameter is also unique in the network system of equipment, can not with the IP address conflict of other equipment in present networks system.Equally, for MAC Address, also can not conflict with present networks other device mac address intrasystem.
In the above embodiment of the present invention, carrying out in IP address and MAC Address transfer process, such as, it is X, Y, Z, network number, device number that each equipment maps by positional information the location information parameter obtained, F1, F2, F3, F4 is used to represent four conversion algorithm of IP tetra-sector address, obtaining its IP address by conversion algorithm is F1 (X, Y) .F2 (Z) .F3 (network number) .F4 (device number), each field is the decimal system, its subnet mask is used for distinguishing different networks, and namely four fields of corresponding IP are 255.255.255.0; The MAC Address obtaining each equipment is 00:01:F1 (X, Y): F2 (Z): F3 (network number): F4 (device number), and each field is hexadecimal.
Adopt the technical scheme that the embodiment of the present invention provides, the IP address of equipment and MAC Address are that equipment configures automatically in this locality, and without the need to being distributed by external DHCP server, and prior art comparatively speaking, have IP address to fix, network service is not by advantages such as Dynamic Host Configuration Protocol server work influences.
As shown in Figure 2, embodiments of the invention also provide a kind of address configuration means, comprising:
Acquisition module 201, for obtaining equipment positional information in a network, described positional information can uniquely determine described equipment;
Modular converter 202, for being converted to location information parameter by described positional information;
Processing module 203, for being converted into IP address and the MAC Address of equipment by described location information parameter;
Configuration module 204, for automatically distributing to described equipment by described IP and MAC Address.
This device embodiment of the present invention is equally by acquisition equipment positional information in a network, and described positional information can uniquely determine described equipment; Described positional information is converted to location information parameter; Described location information parameter is converted into IP address and the MAC Address of equipment; Described IP and MAC Address are distributed to described equipment automatically.The scheme that the embodiment of the present invention adopts, do not rely on outside Dynamic Host Configuration Protocol server, the IP got and MAC Address determine to there is not random.It also avoid the IP address conflict that may cause and the problem obtained less than address.
Wherein, described processing module 203 comprises:
First process submodule, for using the conversion factor of described location information parameter as IP address field, according to described conversion factor and IP address conversion algorithm corresponding to each conversion factor, is converted into the IP address of equipment; And
Second process submodule, for using the conversion factor of described location information parameter as MAC Address field, according to described conversion factor and MAC Address conversion algorithm corresponding to each conversion factor, is converted into the MAC Address of equipment.
Wherein, described first process submodule comprises:
First divides submodule, for described location information parameter is divided into 4 conversion factors, and a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
First transform subblock, for by each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, be converted to a field of IP address;
First combination submodule, for 4 field combination being got up, obtains the IP address of equipment.
Wherein, said apparatus also comprises: obtain submodule, for obtaining the class subnet mask of this IP address, the top N of the host address part of described class subnet mask being put 1, drawing the subnet mask of this IP address subnet division.
Wherein, described second process submodule comprises:
Second divides submodule, for described location information parameter is divided into 6 conversion factors, and a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
Second transform subblock, for by each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, be converted to a field of MAC Address;
Second combination submodule, for 6 field combination being got up, obtains the MAC Address of equipment.
Wherein, described second combination submodule is used for: will represent front 2 fields of types value as MAC Address of this equipment, wherein, last bit value of the 1st field can not be 1; Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
It should be noted that, this device is the device corresponding with said method, and all implementations in said method embodiment are all applicable in the embodiment of this device, also can reach constructed effect.
Embodiments of the invention also provide a kind of equipment, comprise processor, and described processor comprises address configuration means as above.
Wherein, described equipment also comprises interface, the described IP that the described processing module of described address configuration means obtains by described processor and MAC Address send to the switch in network by described interface, and by the IP address of equipment described in the devices exchange in described switch and other network and MAC Address.
As shown in Figure 3, what the present embodiment described is a local area network (LAN) inside, and each equipment is by obtaining positional information, and convert the IP and MAC Address that obtain this equipment.
There is the situation of multiple equipment a network system inside, each equipment is connected with the network switching equipment (switch); Each equipment gets the positional information of equipment self, and wherein positional information comprises the network number of local area network (LAN), and the device number that each equipment is corresponding;
Such as, it is X, Y, Z, network number, device number that each equipment maps by positional information the location information parameter obtained, F1, F2, F3, F4 is used to represent four conversion algorithm of IP tetra-sector address, obtaining its IP address by conversion algorithm is F1 (X, Y) .F2 (Z) .F3 (network number) .F4 (device number), each field is the decimal system, its subnet mask is used for distinguishing different networks, and namely four fields of corresponding IP are 255.255.255.0; The MAC Address obtaining each equipment is 00:01:F1 (X, Y): F2 (Z): F3 (network number): F4 (device number), and each field is hexadecimal.
Conversion obtains IP and MAC Address, by the network switch can directly and other equipment carry out data transmit-receive and message intercommunication, this equipment wants other equipment in accesses network, and the positional information according to other equipment just can get its IP address, checks without the need to logging on its equipment again.
There is multiple local net network in Fig. 3, has the situation of multiple equipment in a distributed system in each network.
When multiple network, a parameter value is needed to represent network numbering information in location information parameter, there is device numbering in the multiple equipment in each network, this device numbering is unique in present networks, can number identical with other equipment in network, by input parameter convert obtain IP address and MAC Address, subnet mask according to network number institute convert field set, isolate different network systems.
In the embodiment of this equipment of the present invention, the IP address of equipment and MAC Address are that equipment configures automatically in this locality, and without the need to being distributed by external DHCP server, and prior art comparatively speaking, have IP address to fix, network service is not by advantages such as Dynamic Host Configuration Protocol server work influences.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. an address configuration method, is characterized in that, comprising:
Acquisition equipment positional information in a network, described positional information can uniquely determine described equipment;
Described positional information is converted to location information parameter;
Described location information parameter is converted into IP address and the MAC Address of equipment;
Described IP and MAC Address are distributed to described equipment automatically.
2. the address configuration method according to right 1, is characterized in that, described positional information comprises:
Equipment can determine one group of position data of its physical location in a network, described one group of position data can uniquely determine described equipment.
3. the address configuration method according to right 2, is characterized in that, the step that described positional information is converted to location information parameter is comprised:
By described one group of position data, be mapped as a location information parameter respectively, obtain one group of location information parameter.
4. the address configuration method according to right 1, is characterized in that, the step of the IP address and MAC Address that described location information parameter are converted into equipment comprises:
Using the conversion factor of described location information parameter as IP address field, the IP address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the IP address of equipment; And
Using the conversion factor of described location information parameter as MAC Address field, the MAC Address conversion algorithm corresponding according to described conversion factor and each conversion factor, is converted into the MAC Address of equipment.
5. address configuration method according to claim 4, it is characterized in that, described using the conversion factor of described location information parameter as IP address field, the IP address conversion algorithm corresponding according to described conversion factor and each conversion factor, the step being converted into the IP address of equipment comprises:
Described location information parameter is divided into 4 conversion factors, a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
By each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, be converted to a field of IP address;
4 field combination are got up, obtains the IP address of equipment.
6. address configuration method according to claim 5, is characterized in that, 4 field combination is got up, and also comprises after obtaining the IP address of equipment:
The subnet mask of this IP address is obtained according to the network number in described positional information.
7. address configuration method according to claim 4, it is characterized in that, using the conversion factor of described location information parameter as MAC Address field, the MAC Address conversion algorithm corresponding according to described conversion factor and each conversion factor, the step being converted into the MAC Address of equipment comprises:
Described location information parameter is divided into 6 conversion factors, a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
By each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, be converted to a field of MAC Address;
6 field combination are got up, obtains the MAC Address of equipment.
8. address configuration method according to claim 7, is characterized in that, 6 field combination got up, the step obtaining the MAC Address of equipment comprises:
Front 2 fields of types value as MAC Address of this equipment will be represented;
Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
9. an address configuration means, is characterized in that, comprising:
Acquisition module, for obtaining equipment positional information in a network, described positional information can uniquely determine described equipment;
Modular converter, for being converted to location information parameter by described positional information;
Processing module, for being converted into IP address and the MAC Address of equipment by described location information parameter;
Configuration module, for automatically distributing to described equipment by described IP and MAC Address.
10. the address configuration means according to right 9, is characterized in that, described processing module comprises:
First process submodule, for using the conversion factor of described location information parameter as IP address field, according to described conversion factor and IP address conversion algorithm corresponding to each conversion factor, is converted into the IP address of equipment; And
Second process submodule, for using the conversion factor of described location information parameter as MAC Address field, according to described conversion factor and MAC Address conversion algorithm corresponding to each conversion factor, is converted into the MAC Address of equipment.
11. address configuration means according to claim 4, is characterized in that, described first process submodule comprises:
First divides submodule, for described location information parameter is divided into 4 conversion factors, and a field of the corresponding IP address of each conversion factor, and the IP address conversion algorithm that each conversion factor is corresponding;
First transform subblock, for by each conversion factor according to IP address conversion algorithm corresponding to this conversion factor, be converted to a field of IP address;
First combination submodule, for 4 field combination being got up, obtains the IP address of equipment.
12. address configuration means according to claim 11, is characterized in that, also comprise:
Obtain submodule, for obtaining the subnet mask of this IP address according to the network number in described positional information.
13. address configuration means according to claim 10, is characterized in that, described second process submodule comprises:
Second divides submodule, for described location information parameter is divided into 6 conversion factors, and a field of the corresponding MAC Address of each conversion factor, and the MAC Address conversion algorithm that each conversion factor is corresponding;
Second transform subblock, for by each conversion factor according to MAC Address conversion algorithm corresponding to this conversion factor, be converted to a field of MAC Address;
Second combination submodule, for 6 field combination being got up, obtains the MAC Address of equipment.
14. address configuration means according to claim 13, is characterized in that, described second combination submodule is used for: will represent front 2 fields of types value as MAC Address of this equipment; Four each field values of field are below set to consistent with four of IP address field values, obtain the MAC Address of equipment.
15. 1 kinds of equipment, comprise processor, it is characterized in that, described processor comprises: the address configuration means as described in claim 9-14.
16. equipment according to claim 15, it is characterized in that, also comprise: interface, the described IP that the described processing module of described address configuration means obtains by described processor and MAC Address send to the switch in network by described interface, and by the IP address of equipment described in the devices exchange in described switch and other network and MAC Address.
CN201410293544.1A 2014-06-25 2014-06-25 Address configuration method and device and equipment Pending CN105282263A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410293544.1A CN105282263A (en) 2014-06-25 2014-06-25 Address configuration method and device and equipment
PCT/CN2014/091933 WO2015196719A1 (en) 2014-06-25 2014-11-21 Address configuration method, apparatus and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410293544.1A CN105282263A (en) 2014-06-25 2014-06-25 Address configuration method and device and equipment

Publications (1)

Publication Number Publication Date
CN105282263A true CN105282263A (en) 2016-01-27

Family

ID=54936645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410293544.1A Pending CN105282263A (en) 2014-06-25 2014-06-25 Address configuration method and device and equipment

Country Status (2)

Country Link
CN (1) CN105282263A (en)
WO (1) WO2015196719A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453680A (en) * 2016-10-10 2017-02-22 杭州昆海信息技术有限公司 IP address allocation method and device
CN112087315A (en) * 2020-07-30 2020-12-15 深圳奇迹智慧网络有限公司 Intelligent gateway configuration method and device, computer equipment and storage medium
CN113556412A (en) * 2021-07-29 2021-10-26 中车南京浦镇车辆有限公司 Network address setting method for rail transit vehicle terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1316151A (en) * 1998-11-02 2001-10-03 综合数据通信公司 Geospacial internet protocol addressing
CN101572692A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method, system and equipment for IP address assignment
CN101772027A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method for allocating user identifier for terminal and paging controller
WO2010145286A1 (en) * 2009-10-27 2010-12-23 中兴通讯股份有限公司 Method and system for realizing information interaction in next generation network
CN102318322A (en) * 2011-07-28 2012-01-11 华为技术有限公司 Device and method for distributing MAC address
CN103516547A (en) * 2013-09-18 2014-01-15 深圳市华为技术软件有限公司 Network parameter distribution method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090113021A1 (en) * 2007-10-24 2009-04-30 Telefonaktiebolaget Lm Ericsson (Publ) System and method for generating functional addresses
CN102868761B (en) * 2012-09-28 2014-10-22 无锡江南计算技术研究所 Cluster network automatic configuration and management method based on space coordinates

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1316151A (en) * 1998-11-02 2001-10-03 综合数据通信公司 Geospacial internet protocol addressing
CN101572692A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method, system and equipment for IP address assignment
CN101772027A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method for allocating user identifier for terminal and paging controller
WO2010145286A1 (en) * 2009-10-27 2010-12-23 中兴通讯股份有限公司 Method and system for realizing information interaction in next generation network
CN102318322A (en) * 2011-07-28 2012-01-11 华为技术有限公司 Device and method for distributing MAC address
CN103516547A (en) * 2013-09-18 2014-01-15 深圳市华为技术软件有限公司 Network parameter distribution method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453680A (en) * 2016-10-10 2017-02-22 杭州昆海信息技术有限公司 IP address allocation method and device
CN112087315A (en) * 2020-07-30 2020-12-15 深圳奇迹智慧网络有限公司 Intelligent gateway configuration method and device, computer equipment and storage medium
CN113556412A (en) * 2021-07-29 2021-10-26 中车南京浦镇车辆有限公司 Network address setting method for rail transit vehicle terminal equipment

Also Published As

Publication number Publication date
WO2015196719A1 (en) 2015-12-30

Similar Documents

Publication Publication Date Title
US10298724B2 (en) Communication device and method for transmitting data within an industrial automation system
CN100502413C (en) IP address requesting method for DHCP client by DHCP repeater
JP4948839B2 (en) Method and apparatus for allocating network subscriber device addresses in a ProfitetIO network
US20080140815A1 (en) Network Device Location and Configuration
CN110913031A (en) IPv6 network address configuration method
CN104202266A (en) Communication method, switch, controller and communication system
CN101990004A (en) Method for distributing virtual ID and virtual IP based on home gateway of internet of things
CN106060180A (en) Addressing method for IPv6 based on geographical position and application information
CN103797774A (en) Device and method for network address conversion
WO2014114097A1 (en) Load sharing method and apparatus
CN105099898A (en) PPPOE (point-to-point protocol over Ethernet) message forwarding method and BRAS (broadband remote access server)
CN103856580A (en) Access method for IPv6 client to IPv4 server
CN106576120A (en) Internet protocol address allocation method and router
KR101672135B1 (en) Apparatus and method for generating address of intelligent remote reading system
KR101786620B1 (en) Method, apparatus and computer program for subnetting of software defined network
CN103563313A (en) IP address delivery system
CN102405629B (en) Method and apparatus for connecting subscriber devices to an ipv6-capable aggregation network
CN105282263A (en) Address configuration method and device and equipment
US9628439B2 (en) Systems and methods for managing network address information
CN105075197A (en) Communication system, control device, communication method and program
WO2015154458A1 (en) Node logic id allocation device, method and communication system
CN108471440B (en) Digital talkback method and system
CN105357332B (en) A kind of method for network address translation and device
CN104506668A (en) Route configuration method and device of dedicated cloud host
EP2220849B1 (en) Address assignment protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160127

RJ01 Rejection of invention patent application after publication