CN105577847A - IP address generating method and device - Google Patents

IP address generating method and device Download PDF

Info

Publication number
CN105577847A
CN105577847A CN201510926732.8A CN201510926732A CN105577847A CN 105577847 A CN105577847 A CN 105577847A CN 201510926732 A CN201510926732 A CN 201510926732A CN 105577847 A CN105577847 A CN 105577847A
Authority
CN
China
Prior art keywords
address
terminal
field
default
physical
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
CN201510926732.8A
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.)
Bangyan Technology Co Ltd
Original Assignee
Bangyan Technology 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 Bangyan Technology Co Ltd filed Critical Bangyan Technology Co Ltd
Priority to CN201510926732.8A priority Critical patent/CN105577847A/en
Priority to PCT/CN2015/099707 priority patent/WO2017101159A1/en
Publication of CN105577847A publication Critical patent/CN105577847A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Landscapes

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

Abstract

The invention discloses an IP address generating method. The generating method comprises steps of when detecting a generating instruction of an IP address, obtaining a physical address of a terminal; generating an Internet protocol address IP address of the terminal according to the obtained physical address and a preset IP address segment; and storing the generated IP address. The invention also discloses an IP address generating device. In this way, by generating the IP address of the terminal via the physical address of the terminal, IP addresses accessed to management network accesses of all terminals are different, so a phenomenon of slow network speed caused by a business network is reduced and efficiency in accessing of the terminals to management network ports is increased.

Description

IP address generating method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of IP address generating method and device.
Background technology
At present, during communicating terminal access-in management network interface, all the same IP address (InternetProtocolAddress using Operation system setting, internet protocol address) access, that is each terminal is all configured to same IP address by system, multiple terminal is allowed to use same IP address access-in management network interface and communication, but, when multiple terminal is when using same IP address access-in management network interface at the same time, network busy can be caused, and there is the situation that network speed is slow, obviously, it is same IP address access-in management network interface by multiple terminal configuration, make the efficiency of terminal access-in management network interface low.
Summary of the invention
Main purpose of the present invention is to propose a kind of IP address generating method and device, is intended to the inefficient technical problem solving terminal access-in management network interface.
For achieving the above object, a kind of IP address generating method provided by the invention, described IP address generating method comprises the following steps:
When generation instruction IP address being detected, obtain the physical address of terminal;
According to the described physical address obtained and default IP address field, generate the IP address, internet protocol address of described terminal;
Store the described IP address generated.
Preferably, the step that described described physical address according to obtaining and default IP address field generate the IP address, internet protocol address of described terminal comprises:
Extract the low order address presetting figure place in described physical address;
The low order address of extraction is added in default described IP address field, generate the IP address of described terminal.
Preferably, after the step of the IP address of the described terminal of described generation, described IP address generating method also comprises:
When the renewal instruction of described IP address field being detected, obtain the IP address field after upgrading;
The IP address of described terminal is upgraded according to the IP address field after described renewal.
Preferably, the described step storing the described IP address generated comprises:
Described IP address is stored in read-only memory.
Preferably, after the step of the described IP address that described storage generates, described IP address generating method also comprises:
When the modify instruction of IP address being detected, the information input interface that display is preset;
When receiving the IP address that user inputs based on described information input interface, upgrade the IP address of described terminal according to the IP address of input.
In addition, for achieving the above object, the present invention also proposes a kind of IP address generating device, and described IP address generating device comprises:
Acquisition module, for when generation instruction IP address being detected, obtains the physical address of terminal;
Generation module, for according to the described physical address obtained and default IP address field, generates the IP address, internet protocol address of described terminal;
Memory module, stores the described IP address generated.
Preferably, described generation module comprises:
Extraction unit, for extracting the low order address presetting figure place in described physical address;
Generation unit, for being added to by the low order address of extraction in default described IP address field, generates the IP address of described terminal.
Preferably, described generation module also comprises:
Acquiring unit, for when the renewal instruction of described IP address field being detected, obtains the IP address field after upgrading;
Updating block, for upgrading the IP address of described terminal according to the IP address field after described renewal.
Preferably, described memory module is also for being stored to described IP address in read-only memory.
Preferably, described IP address generating device also comprises:
Display module, for when the modify instruction of IP address being detected, the information input interface that display is preset;
Update module, for when receiving the IP address that user inputs based on described information input interface, upgrades the IP address of described terminal according to the IP address of input.
The IP address generating method that the present invention proposes and device, when generation instruction IP address being detected, obtain the physical address of terminal, then according to the described physical address obtained and default IP address field, generate the IP address, internet protocol address of described terminal, store the described IP address generated, instead of each terminal is all configured to same IP address, the present invention generates the IP address of described terminal by the physical address of terminal, make the IP address of each terminal access-in management network interface different, decrease network busy and occur the situation that network speed is slow, improve the efficiency of terminal access-in management network interface.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of IP address generating method first embodiment of the present invention;
Fig. 2 is the present invention according to the described physical address obtained and default IP address field, generates the schematic flow sheet of IP address first, the internet protocol address embodiment of described terminal;
Fig. 3 is the present invention according to the described physical address obtained and default IP address field, generates the schematic flow sheet of IP address second, the internet protocol address embodiment of described terminal;
Fig. 4 is the schematic flow sheet of IP address generating method the 4th embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of IP address generating device first embodiment of the present invention;
Fig. 6 is the first refinement high-level schematic functional block diagram of generation module in Fig. 5;
Fig. 7 is the second refinement high-level schematic functional block diagram of generation module in Fig. 5;
Fig. 8 is the high-level schematic functional block diagram of IP address generating device the 4th embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of IP address generating method.
With reference to the schematic flow sheet that Fig. 1, Fig. 1 are IP address generating method first embodiment of the present invention.
The present embodiment proposes a kind of IP address generating method, and described IP address generating method comprises:
Step S10, when generation instruction IP address being detected, obtains the physical address of terminal;
In the present embodiment, the triggering mode of the generation instruction of described IP address comprises:
1) mode one, when the incoming instruction of terminal access-in management network interface being detected, obtain the IP address that described terminal prestores, the low order address of default figure place is extracted in the described IP address obtained, and in the physical address of described terminal, extract the low order address of same figure place, the low order address that two are extracted is contrasted, when two low order address are inconsistent, trigger the generation instruction of IP address.
2) mode two, when the incoming instruction of terminal access-in management network interface being detected, if the IP address prestored in terminal is the IP address of server-assignment, then trigger the generation instruction of IP address.
The triggering mode of the generation instruction of two kinds of IP addresses of enumerating is above only exemplary; those skilled in the art utilize technological thought of the present invention; the triggering mode of the generation instruction of other IP address proposed according to its real needs, all in protection scope of the present invention, does not carry out exhaustive one by one at this.
In the present embodiment, when detecting the generation instruction of IP address, obtain the physical address of terminal, the physical address of described terminal is MAC Address (MediaAccessControl also claims hardware address).
Step S20, according to the described physical address obtained and default IP address field, generates the IP address of described terminal;
In the present embodiment, the described described physical address according to acquisition and default IP address field, the mode generating the IP address of described terminal is: extract the low order address presetting figure place in described physical address, the low order address of extraction is added in default IP address field, generates the IP address of described terminal.
Step S30, stores the described IP address generated.
In the present embodiment, behind the described IP address generating described terminal, the described IP address generated is stored in default memory space, described memory space comprises internal memory and external memory, described internal memory comprises internal memory, flash memory or buffer memory, and described internal memory comprises read-only memory and random asccess memory; Described external memory comprises SD card, hard disk etc.
In the present embodiment, after generating described IP address, store the described IP address of generation, traditional storage mode is stored in FLASH flash memory by the described IP address generated, and described IP address is stored in flash memory, situation about reading less than IP address may be there is, because, the data stored in flash memory are more, and can repeatedly read and write, easily cause the data instability stored, therefore in the present embodiment, in order to put forward the stability that higher ip address stores, behind the described IP address of generation, described IP address is stored in read-only memory, be understandable that, read-only memory just can not be rewritten stored in rear in data, therefore, the data stored are more stable.
Further, behind the described IP address generating terminal, store the described IP address generated, then when next access-in management network interface, first obtain the described IP address stored in the memory space prestored, when getting described IP address, can according to described IP address access-in management network interface; And when getting the failure of IP address, then again obtain the physical address of described terminal, and then generate the IP address of described terminal according to the physical address of described terminal, and store the IP address generated.
The IP address generating method that the present embodiment proposes, when generation instruction IP address being detected, obtain the physical address of terminal, then according to the described physical address obtained and default IP address field, generate the IP address, internet protocol address of described terminal, store the described IP address generated, instead of each terminal is all configured to same IP address, the present invention generates the IP address of described terminal by the physical address of terminal, make the IP address of each terminal access-in management network interface different, decrease network busy and occur the situation that network speed is slow, improve the efficiency of terminal access-in management network interface.
Further, in order to put forward the accuracy that higher ip address generates, propose the second embodiment of IP address generating method of the present invention based on the first embodiment, in the present embodiment, with reference to Fig. 2, described step S20 comprises:
Step S21, extracts the low order address presetting figure place in described physical address;
In the present embodiment, when getting the physical address of described terminal, first extract the low order address presetting figure place in described physical address, be understandable that, described physical address is MAC Address, and MAC Address adopts hexadecimal number to represent, totally six bytes (48).Wherein, first three byte (namely high-order 24) is that what to represent is the code of different manufacturers, the then adaptor interface of three byte (i.e. low level 24) given production, be called extended identifier, there is uniqueness, therefore, extract the low order address presetting figure place in described physical address, be actually low level 24 bit address extracted in described physical address.
Step S22, adds to the low order address of extraction in default IP address field, generates the IP address of described terminal.
In the present embodiment, added to by the low order address of extraction in default IP address field, described default IP address field is front 8 bit address in IP address.Be understandable that, IP address is the binary number of 32, usually 4 " 8 bits " (namely 4 bytes) are split into, and in the present embodiment, described default IP address field is front 8 bit address in IP address, the low order address of extraction is added in default IP address field, namely low level 24 bit address extracted in described physical address is added to after 8 IP addresses, to generate a new IP address, and described MAC Address is hexadecimal number, IP address is binary number, therefore, low order address is added in default IP address field, first the low order address of described MAC Address to be carried out conversion and obtain binary number, again the binary number obtained is added in described default IP address field, to generate the IP address of described terminal, generally, IP address field is shown by decimal number, therefore, can be that decimal number shows by the IP address spaces finally generated.For better understanding the present embodiment, be exemplified below: when the physical address of terminal is 44-45-53-54-00-00, now, can know that in terminal, low level 24 bit address is 54-00-00, and when the IP address field preset is 192.xx.xx.xx, the low order address 54-00-00 of extraction is added in default IP address field 192.xx.xx.xx, the mode that the described low order address 54-00-00 by extraction adds in default IP address field 192.xx.xx.xx is: low order address 54-00-00 is converted into binary number 01010100-00000000-00000000, now, in order to the system number of the low order address after transforming is consistent with the system number of the IP address field preset, described binary number 01010100-00000000-00000000 is converted into decimal number 6.0.0, finally add in described default IP address field 192.xx.xx.xx by transforming the decimal number 6.0.0 obtained, generate the IP address 192.6.0.0 of described terminal.
In the present embodiment, by extracting the low order address presetting figure place in described physical address, and the system number of the low order address of extraction is converted into the system number of described preset IP address section, finally the low order address after conversion is added in the default IP address field of described terminal, generate the IP address of described terminal, the accuracy that the IP address that improve terminal generates.
Further, in order to propose the flexibility that higher ip address generates, propose the 3rd embodiment of IP address generating method of the present invention based on the second embodiment, in the present embodiment, with reference to Fig. 3, after described step S22, described step S20 also comprises:
Step S23, when the renewal instruction of described IP address field being detected, obtains the IP address field after upgrading;
In the present embodiment, detect the mode whether described IP address field upgrade to comprise: to detect in real time and timing detects two kinds of modes, which kind of detection mode of concrete employing is arranged as the case may be, and the time interval that described timing detects also is arranged according to concrete needs, preferably when network insertion peak period, when timing being detected, interval arranges shorter, as every 5min minute detects once, and at the low peak period of network insertion, when timing being detected, interval arranges longer, as every 30min minute detects once.
Step S24, upgrades the IP address of described terminal according to the IP address field after described renewal.
In the present embodiment, the described IP address field preset arranges according to specific needs, namely described IP address field is not changeless, but can carry out according to specific needs changing, if when detecting that described IP address field upgrades, such as, when default IP address field is updated to 202.xx.xx.xx from 192.xx.xx.xx according to concrete needs by user, now, obtain the IP address field after upgrading, and the IP address of described terminal is upgraded according to the IP address field after described renewal, that is, keep rear 24 bit address in described IP address constant, upgrade front 8 bit address, to upgrade the IP address of described terminal.
In the present embodiment, whether upgrade by detecting described IP address field, and when described IP address field upgrades, obtain the IP address field after upgrading, the last IP address upgrading described terminal according to the IP address field after described renewal, improves the flexibility that IP address generates.
Further, in order to carry the intelligent of higher ip address generation, the 4th embodiment of IP address generating method of the present invention is proposed based on first, second or the 3rd embodiment, in the present embodiment, with reference to Fig. 4, after described step S30, described IP address generating method also comprises:
Step S40, when the modify instruction of IP address being detected, the information input interface that display is preset;
Step S50, when receiving the IP address that user inputs based on described information input interface, upgrades the IP address of described terminal according to the IP address of input.
In the present embodiment, after storing the IP address generated, if now user wants to change IP address, what user can preset based on terminal arranges the modify instruction that IP address is triggered at interface, when the modify instruction of IP address being detected, the information input interface that display is preset, for user based on described information input interface input IP address, as user inputs IP address 159.226.1.1, when receiving the IP address that user inputs based on described information input interface, the IP address of described terminal can be upgraded according to the IP address of input, namely the IP address of input is replaced the IP address stored, to upgrade the IP address of described terminal.
In the present embodiment, the address inputted by user upgrades instruction display information input interface, and after user's input information completes, upgrade IP address, achieve IP address not generate by means of only the physical address of terminal and default IP address field, also can to modify generation according to the demand of user, what improve that IP address generates is intelligent.
The present invention further provides a kind of IP address generating device.
With reference to the high-level schematic functional block diagram that Fig. 5, Fig. 5 are IP address generating device first embodiment of the present invention.
It is emphasized that, to one skilled in the art, functional block diagram shown in Fig. 5 is only the exemplary plot of a preferred embodiment, and those skilled in the art, around the functional module of the IP address generating device shown in Fig. 5, can carry out supplementing of new functional module easily; The title of each functional module is self-defined title, only for auxiliary each program function block understanding this IP address generating device, be not used in and limit technical scheme of the present invention, the core of technical solution of the present invention is, the function that the functional module of respective define name will be reached.
The present embodiment proposes a kind of IP address generating device, and described IP address generating device comprises:
Acquisition module 10, for when generation instruction IP address being detected, obtains the physical address of terminal;
In the present embodiment, the triggering mode of the generation instruction of described IP address comprises:
1) mode one, when the incoming instruction of terminal access-in management network interface being detected, obtain the IP address that described terminal prestores, the low order address of default figure place is extracted in the described IP address obtained, and in the physical address of described terminal, extract the low order address of same figure place, the low order address that two are extracted is contrasted, when two low order address are inconsistent, trigger the generation instruction of IP address.
2) mode two, when the incoming instruction of terminal access-in management network interface being detected, if the IP address prestored in terminal is the IP address of server-assignment, then trigger the generation instruction of IP address.
The triggering mode of the generation instruction of two kinds of IP addresses of enumerating is above only exemplary; those skilled in the art utilize technological thought of the present invention; the triggering mode of the generation instruction of other IP address proposed according to its real needs, all in protection scope of the present invention, does not carry out exhaustive one by one at this.
In the present embodiment, when detecting the generation instruction of IP address, described acquisition module 10 obtains the physical address of terminal, and the physical address of described terminal is MAC Address (MediaAccessControl also claims hardware address).
Generation module 20, for according to the described physical address obtained and default IP address field, generates the IP address, internet protocol address of described terminal;
In the present embodiment, the described physical address that described generation module 20 obtains according to described acquisition module 10 and default IP address field, the mode generating the IP address of described terminal is: extract the low order address presetting figure place in described physical address, the low order address of extraction is added in default IP address field, generates the IP address of described terminal.
Memory module 30, stores the described IP address generated.
In the present embodiment, generate the described IP address of described terminal at described generation module 20 after, the described IP address generated is stored in default memory space by described memory module 30, described memory space comprises internal memory and external memory, described internal memory comprises internal memory, flash memory or buffer memory, and described internal memory comprises read-only memory and random asccess memory; Described external memory comprises SD card, hard disk etc.
In the present embodiment, after described generation module 20 generates described IP address, described memory module 30 stores the described IP address generated, traditional storage mode is stored in FLASH flash memory by the described IP address generated, and described IP address is stored in flash memory, situation about reading less than IP address may be there is, because, the data stored in flash memory are more, and can repeatedly read and write, easily cause the data instability stored, therefore in the present embodiment, in order to put forward the stability that higher ip address stores, after described generation module 20 generates described IP address, described IP address is stored in read-only memory by described memory module 30, be understandable that, read-only memory just can not be rewritten stored in rear in data, therefore, the data stored are more stable.
Further, generate the described IP address of terminal at described generation module 20 after, described memory module 30 stores the described IP address generated, then when next access-in management network interface, described acquisition module 10 obtains in the memory space prestored the described IP address stored, when described acquisition module 10 gets described IP address, can according to described IP address access-in management network interface; And when getting the failure of IP address, then described acquisition module 10 obtains the physical address of described terminal again, and described generation module 20 generates the IP address of described terminal again according to the physical address of described terminal, described memory module 30 stores the IP address generated.
The IP address generating device that the present embodiment proposes, when generation instruction IP address being detected, obtain the physical address of terminal, then according to the described physical address obtained and default IP address field, generate the IP address, internet protocol address of described terminal, store the described IP address generated, instead of each terminal is all configured to same IP address, the present invention generates the IP address of described terminal by the physical address of terminal, make the IP address of each terminal access-in management network interface different, decrease network busy and occur the situation that network speed is slow, improve the efficiency of terminal access-in management network interface.
Further, in order to put forward the accuracy that higher ip address generates, propose the second embodiment of IP address generating device of the present invention based on the first embodiment, in the present embodiment, with reference to Fig. 6, described generation module 20 comprises:
Extraction unit 21, for extracting the low order address presetting figure place in described physical address;
In the present embodiment, when described acquisition module 10 gets described terminals physical address, described extraction unit 21 first extracts the low order address presetting figure place in described terminals physical address, be understandable that, described terminals physical address is MAC Address, MAC Address adopts hexadecimal number to represent, totally six bytes (48).Wherein, first three byte (namely high-order 24) is that what to represent is the code of different manufacturers, the then adaptor interface of three byte (i.e. low level 24) given production, be called extended identifier, there is uniqueness, therefore, described extraction unit 21 extracts the low order address presetting figure place in described terminals physical address, is actually and extracts low level 24 bit address in described terminals physical address.
Generation unit 22, for being added to by the low order address of extraction in default described IP address field, generates the IP address of described terminal.
In the present embodiment, the low order address that described extraction unit 21 extracts adds in default IP address field by described generation unit 22, and described default IP address field is front 8 bit address in IP address.Be understandable that, IP address is the binary number of 32, usually 4 " 8 bits " (namely 4 bytes) are split into, and in the present embodiment, described default IP address field is front 8 bit address in IP address, the low order address of extraction adds in default IP address field by described generation unit 22, namely low level 24 bit address extracted in described physical address is added to after 8 IP addresses, to generate a new IP address, and described MAC Address is hexadecimal number, IP address is binary number, therefore, low order address is added in default IP address field, first the low order address of described MAC Address to be carried out conversion and obtain binary number, again the binary number obtained is added in described default IP address field, to generate the IP address of described terminal, generally, IP address field is shown by decimal number, therefore, can be that decimal number shows by the IP address spaces finally generated.For better understanding the present embodiment, be exemplified below: when the physical address of terminal is 44-45-53-54-00-00, now, can know that in terminal, low level 24 bit address is 54-00-00, and when the IP address field preset is 192.xx.xx.xx, the low order address 54-00-00 that described extraction unit 21 extracts adds in default IP address field 192.xx.xx.xx by described generation unit 22, by the low order address 54-00-00 that described extraction unit 21 extracts, the mode of adding in default IP address field 192.xx.xx.xx is described generation unit 22: low order address 54-00-00 is converted into binary number 01010100-00000000-00000000, now, in order to the system number of the low order address after transforming is consistent with the system number of the IP address field preset, described binary number 01010100-00000000-00000000 is converted into decimal number 6.0.0, finally add in described default IP address field 192.xx.xx.xx by transforming the decimal number 6.0.0 obtained, generate the IP address 192.6.0.0 of described terminal.
In the present embodiment, described extraction unit 21 is by extracting the low order address presetting figure place in described physical address, again the system number of the low order address of extraction is converted into the system number of described preset IP address section, low order address after conversion adds in the default IP address field of described terminal by last described generation unit 22, generate the IP address of described terminal, the accuracy that the IP address that improve terminal generates.
Further, in order to propose the flexibility that higher ip address generates, propose the 3rd embodiment of IP address generating device of the present invention based on the second embodiment, in the present embodiment, with reference to Fig. 7, described generation module 20 also comprises:
Acquiring unit 23, for when the renewal instruction of described IP address field being detected, obtains the IP address field after upgrading;
In the present embodiment, detect the mode whether described IP address field upgrade to comprise: to detect in real time and timing detects two kinds of modes, which kind of detection mode of concrete employing is arranged as the case may be, and the time interval that described timing detects also is arranged according to concrete needs, preferably when network insertion peak period, when timing being detected, interval arranges shorter, as every 5min minute detects once, and at the low peak period of network insertion, when timing being detected, interval arranges longer, as every 30min minute detects once.
Updating block 24, for upgrading the IP address of described terminal according to the IP address field after described renewal.
In the present embodiment, the described IP address field preset arranges according to specific needs, namely described IP address field is not changeless, but can carry out according to specific needs changing, if when detecting that described IP address field upgrades, such as, when default IP address field is updated to 202.xx.xx.xx from 192.xx.xx.xx according to concrete needs by user, now, described acquiring unit 23 obtains the IP address field after upgrading, described updating block 24 upgrades the IP address of described terminal according to the IP address field after described renewal, that is, described updating block 24 keeps rear 24 bit address in described IP address constant, upgrade front 8 bit address, to upgrade the IP address of described terminal.
In the present embodiment, whether upgrade by detecting described IP address field, and when described IP address field upgrades, described acquiring unit 23 obtains the IP address field after upgrading, described updating block 24 upgrades the IP address of described terminal according to the IP address field after described renewal, improves the flexibility that IP address generates.
Further, in order to carry the intelligent of higher ip address generation, propose the 4th embodiment of IP address generating device of the present invention based on first, second or the 3rd embodiment, in the present embodiment, with reference to Fig. 8, described IP address generating device also comprises:
Display module 40, for when the modify instruction of IP address being detected, the information input interface that display is preset;
Update module 50, for when receiving the IP address that user inputs based on described information input interface, upgrades the IP address of described terminal according to the IP address of input.
In the present embodiment, after storing in described memory module 30 the IP address generated, if now user wants to change IP address, what user can preset based on terminal arranges the modify instruction that IP address is triggered at interface, when the modify instruction of IP address being detected, described display module 40 shows the information input interface preset, for user based on described information input interface input IP address, as user inputs IP address 159.226.1.1, when receiving the IP address that user inputs based on described information input interface, described update module 50 can upgrade the IP address of described terminal according to the IP address of input, namely the IP address of input is replaced the IP address stored, to upgrade the IP address of described terminal.
In the present embodiment, described display module 40 upgrades instruction display information input interface by the address that user inputs, and after user's input information completes, described update module 50 upgrades IP address, achieve IP address not generate by means of only the physical address of terminal and default IP address field, also can to modify generation according to the demand of user, what improve that IP address generates is intelligent.
It should be noted that, in this article, term " comprises ", " comprising " or its other variant any are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key element clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an IP address generating method, is characterized in that, described IP address generating method comprises the following steps:
When generation instruction IP address being detected, obtain the physical address of terminal;
According to the described physical address obtained and default IP address field, generate the IP address, internet protocol address of described terminal;
Store the described IP address generated.
2. IP address generating method as claimed in claim 1, is characterized in that, the step that the described described physical address according to acquisition and default IP address field generate the IP address, internet protocol address of described terminal comprises:
Extract the low order address presetting figure place in described physical address;
The low order address of extraction is added in default described IP address field, generate the IP address of described terminal.
3. IP address generating method as claimed in claim 2, it is characterized in that, after the step of the IP address of the described terminal of described generation, described IP address generating method also comprises:
When the renewal instruction of described IP address field being detected, obtain the IP address field after upgrading;
The IP address of described terminal is upgraded according to the IP address field after described renewal.
4. IP address generating method as claimed in claim 1, is characterized in that, the described step storing the described IP address generated comprises:
Described IP address is stored in read-only memory.
5. the IP address generating method as described in any one of claim 1-4, is characterized in that, after the step of the described IP address that described storage generates, described IP address generating method also comprises:
When the modify instruction of IP address being detected, the information input interface that display is preset;
When receiving the IP address that user inputs based on described information input interface, upgrade the IP address of described terminal according to the IP address of input.
6. an IP address generating device, is characterized in that, described IP address generating device comprises the following steps:
Acquisition module, for when generation instruction IP address being detected, obtains the physical address of terminal;
Generation module, for according to the described physical address obtained and default IP address field, generates the IP address, internet protocol address of described terminal;
Memory module, stores the described IP address generated.
7. IP address generating device as claimed in claim 6, it is characterized in that, described generation module comprises:
Extraction unit, for extracting the low order address presetting figure place in described physical address;
Generation unit, for being added to by the low order address of extraction in default described IP address field, generates the IP address of described terminal.
8. IP address generating device as claimed in claim 7, it is characterized in that, described generation module also comprises:
Acquiring unit, for when the renewal instruction of described IP address field being detected, obtains the IP address field after upgrading;
Updating block, for upgrading the IP address of described terminal according to the IP address field after described renewal.
9. IP address generating device as claimed in claim 6, it is characterized in that, described memory module is also for being stored to described IP address in read-only memory.
10. the IP address generating device as described in any one of claim 6-9, is characterized in that, described IP address generating device also comprises:
Display module, for when the modify instruction of IP address being detected, the information input interface that display is preset;
Update module, for when receiving the IP address that user inputs based on described information input interface, upgrades the IP address of described terminal according to the IP address of input.
CN201510926732.8A 2015-12-14 2015-12-14 IP address generating method and device Pending CN105577847A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510926732.8A CN105577847A (en) 2015-12-14 2015-12-14 IP address generating method and device
PCT/CN2015/099707 WO2017101159A1 (en) 2015-12-14 2015-12-30 Ip address generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510926732.8A CN105577847A (en) 2015-12-14 2015-12-14 IP address generating method and device

Publications (1)

Publication Number Publication Date
CN105577847A true CN105577847A (en) 2016-05-11

Family

ID=55887489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510926732.8A Pending CN105577847A (en) 2015-12-14 2015-12-14 IP address generating method and device

Country Status (2)

Country Link
CN (1) CN105577847A (en)
WO (1) WO2017101159A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067837A (en) * 2016-05-18 2016-11-02 珠海格力电器股份有限公司 Multi-variable air conditioning unit and address setting method thereof and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672397A (en) * 2002-07-25 2005-09-21 佳能株式会社 Image processing apparatus, control method thereof and control program thereof
CN1697456A (en) * 2004-05-10 2005-11-16 三星电子株式会社 Communication method and device in mobile state having multi-interfaces
CN101710906A (en) * 2009-12-18 2010-05-19 工业和信息化部电信传输研究所 IPv6 address structure and method and device for allocating and tracing same
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN102932493A (en) * 2011-09-12 2013-02-13 微软公司 Recording stateless internet protocol
CN103312836A (en) * 2013-06-28 2013-09-18 国家电网公司 Large local network internet protocol (IP) address administration method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003298619A (en) * 2002-03-29 2003-10-17 Sanyo Electric Co Ltd Apparatus and method for creating ip address and apparatus and method for supplying identification information
KR100601652B1 (en) * 2003-12-17 2006-07-14 삼성전자주식회사 Method and device for communicating using multicast address
JP2008211504A (en) * 2007-02-26 2008-09-11 Hitachi Kokusai Electric Inc Information transmitting device
CN102469170B (en) * 2010-11-03 2014-04-16 英业达集团(天津)电子技术有限公司 Method for generating static Internet protocol (IP) address under disk operating system (DOS)
CN102547421B (en) * 2011-12-31 2014-01-08 福建星网视易信息系统有限公司 Cooperative communication method of STB (set top box)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672397A (en) * 2002-07-25 2005-09-21 佳能株式会社 Image processing apparatus, control method thereof and control program thereof
CN1697456A (en) * 2004-05-10 2005-11-16 三星电子株式会社 Communication method and device in mobile state having multi-interfaces
CN101710906A (en) * 2009-12-18 2010-05-19 工业和信息化部电信传输研究所 IPv6 address structure and method and device for allocating and tracing same
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN102932493A (en) * 2011-09-12 2013-02-13 微软公司 Recording stateless internet protocol
CN103312836A (en) * 2013-06-28 2013-09-18 国家电网公司 Large local network internet protocol (IP) address administration method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋晓宇,邱泽阳: ""IPv6地址自动配置中接口ID的生成算法"", 《现代计算机》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067837A (en) * 2016-05-18 2016-11-02 珠海格力电器股份有限公司 Multi-variable air conditioning unit and address setting method thereof and device
CN106067837B (en) * 2016-05-18 2018-11-30 珠海格力电器股份有限公司 Multi-variable air conditioning unit and its address setting method and device

Also Published As

Publication number Publication date
WO2017101159A1 (en) 2017-06-22

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN112765271B (en) Block chain transaction index storage method and device, computer equipment and medium
CN111177043B (en) Method, system, device and medium for accelerating reading of field replaceable unit information
US20220200798A1 (en) Key code data burning method, device, terminal equipment and readable storage medium
CN108037932B (en) SPI-NAND configuration file acquisition method and device
CN107770299A (en) A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
CN111225285A (en) Bluetooth device display name modification and display method, device, equipment and medium
CN113568646B (en) Novel portable program upgrading method
CN110059088B (en) Data attribute identification method, device and equipment in block chain type account book
CN105577847A (en) IP address generating method and device
CN109165712A (en) Distributed generation method, device and computer storage medium by stages number
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
CN109542357B (en) Command parameter assembling method, system, equipment and computer storage medium
CN111901453A (en) Identification generation method and device, computer equipment and storage medium
CN109598137B (en) Method and system for safely processing data
CN101197959B (en) Terminal control method, system and equipment
CN112685064B (en) Processing method and device for equipment identification, storage medium and electronic device
CN107105425B (en) Network access method and network access device
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
CN114116544B (en) Slot information acquisition method, device, equipment and storage medium
CN101221581B (en) Data file generation method and device
CN114861003A (en) Object enumeration method, device and medium under specified directory
CN111736858A (en) Terminal equipment upgrading method, storage medium and terminal equipment
CN101296448A (en) Terminal software upgrading method and device
CN111598555A (en) Multi-terminal hardware wallet adapting method and system

Legal Events

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

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication