CN104158859A - PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system - Google Patents
PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system Download PDFInfo
- Publication number
- CN104158859A CN104158859A CN201410371424.9A CN201410371424A CN104158859A CN 104158859 A CN104158859 A CN 104158859A CN 201410371424 A CN201410371424 A CN 201410371424A CN 104158859 A CN104158859 A CN 104158859A
- Authority
- CN
- China
- Prior art keywords
- pxe
- client
- identification
- boot
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention provides a PXE-based information acquisition method, a PXE (pre-boot execution environment) client, a PXE server and a system and relates to the field of the Internet technology. According to the invention, the efficiency for identifying the PXE client by the PXE server can be improved. The PXE-based information acquisition method comprises the following steps: the PXE client is started from the PXE, and the client identification prestored by the PXE client is sent to the PXE server, so that the PXE server allocates corresponding configuration information for the PXE client according to the client identification of the PXE client, the PXE client is enabled to download PXE bootstrap according to the client IP and the address of the PXE bootstrap of the PXE client in the configuration information, and the PXE is installed and configured through the PXE bootstrap. The invention is applicable to PXE.
Description
Technical field
The present invention relates to Internet technical field, relate in particular to information getting method, PXE client, PXE server and system based on PXE.
Background technology
Pre-boot Execution Environment (preboot execute environment, be called for short PXE) be the technology that compares at present main flow, be mainly used in client/server (Client/Server, be called for short C/S), download start image file by network from far-end server for client, wherein this start image file can be that a boot program can be also operating system, client is arranged on the operating system in far-end server in advance according to this start image file guiding, starts the operating system in client thereby realize.
For the PXE client that has PXE network interface card, carrying out before PXE startup, need PXE server (for DHCP (Dynamic Host Configuration Protocol is provided, be called for short DHCP) service) MAC Address that sends according to each PXE client, each PXE client interconnected with it identified, after identification, this PXE server is just according to the MAC Address of each the PXE client interconnected with it, and pre-configured MAC Address and IP address in this PXE server, corresponding relation between PXE configuration information, for this PXE client is distributed corresponding IP address and PXE configuration information, so that this PXE client is according to the IP address of this PXE server-assignment and PXE configuration information, for this PXE client is installed corresponding client operating system.
But, state in realization process time, inventor finds: in the time having a large amount of RXE clients to need to install and to configure, need to be on PXE server MAC Address and the IP address of manual configuration PXE client, corresponding relation between PXE configuration information, now because MAC Address is generally to be become by 12 16 system arrays, make whole MAC Address too tediously long and complicated, therefore while configuring above-mentioned corresponding relation on PXE server, the data volume of required input is larger, and because MAC Address is not easy to people's identification, in the time of input, also easily make mistakes, cause follow-up management and difficult in maintenance.
Summary of the invention
Embodiments of the invention provide a kind of information getting method, PXE client, PXE server and system based on PXE, can promote the efficiency of PXE server identification PXE client.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of information getting method based on PXE, comprising:
Pre-boot Execution Environment PXE client starts from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Broadcast dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Receive the dhcp response message of described PXE server feedback; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot; The configuration information of described PXE client is that described PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and described PXE client;
According to the address of the client ip of described PXE client and PXE boot, download PXE boot, and complete PXE installation and configuration by described PXE boot.
In the possible implementation of the first of first aspect, the client identification of described PXE client is to be carried in the DHCP Option Client Identifier field of described dhcp message.
The implementation possible according to the first of first aspect or first aspect, in the possible implementation of the second of first aspect,
Described Pre-boot Execution Environment PXE client terminal start-up PXE, before obtaining the client identification of described PXE client, described method also comprises:
Network interface card BIOS described in described PXE client terminal start-up in PXE client, obtains the client identification of user's input, and the client identification of described user's input is stored as the client identification of described PXE client.
Second aspect, provides a kind of information getting method based on PXE, comprising:
PXE server receives the dhcp message that PXE client sends; The client identification that wherein said dhcp message comprises described PXE client; Described client identification is user-defined mark;
According to the client identification of described PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
To described PXE client feedback dhcp response message, so that described PXE client is according to the address of the client ip of described PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by described PXE boot.
The third aspect, provides a kind of PXE client, comprising:
Acquiring unit, for starting from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Radio unit, for broadcasting dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Receiving element, for receiving the dhcp response message of described PXE server feedback; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot; The configuration information of described PXE client is that described PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and described PXE client;
Installation unit, for according to the address of the client ip of described PXE client and PXE boot, downloads PXE boot, and completes PXE installation and configuration by described PXE boot.
In the possible implementation of the first of the third aspect, the client identification of described PXE client is to be carried in the DHCP Option Client Identifier field of described dhcp message.
In the possible implementation of the second of the third aspect, described PXE client also comprises:
Dispensing unit, for starting the network interface card BIOS of described PXE client, obtains the client identification of user's input, and the client identification of described user's input is stored as the client identification of described PXE client.
Fourth aspect, provides a kind of PXE server, comprising:
Receiving element, the dhcp message sending for receiving PXE client; The client identification that wherein said dhcp message comprises described PXE client; Described client identification is user-defined mark;
Acquiring unit, for the client identification of the described PXE client that receives according to described receiving element, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
Feedback unit, be used for to described PXE client feedback dhcp response message, so that described PXE client is according to the address of the client ip of described PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by described PXE boot.
The 5th aspect, provides a kind of Information Acquisition System, comprising:
Pre-boot Execution Environment PXE client is used for starting from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Described PXE client is used for broadcasting dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Described PXE server is used for receiving described dhcp message, according to the client identification of described PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client, and to described PXE client feedback dhcp response message; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
Described PXE client is used for receiving described dhcp response message, and according to the address of the client ip of PXE client and PXE boot, from corresponding PXE server, downloads PXE boot, and completes PXE installation and configuration by described PXE boot.
The information getting method based on PXE that embodiments of the invention provide, PXE client, PXE server and system, PXE client is obtained the user-defined client identification prestoring in this PXE client, and this client identification is sent to PXE server, so that this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of information getting method that Fig. 1 provides for embodiments of the invention;
The mutual schematic diagram of the another kind of information getting method that Fig. 2 provides for embodiments of the invention;
The mutual schematic diagram of another information getting method that Fig. 3 provides for embodiments of the invention;
The structural representation of a kind of PXE client that Fig. 4 provides for embodiments of the invention;
The structural representation of a kind of PXE server that Fig. 5 provides for embodiments of the invention;
The structural representation of the another kind of PXE client that Fig. 6 provides for embodiments of the invention;
The structural representation of the another kind of PXE server that Fig. 7 provides for embodiments of the invention;
The structural representation of a kind of Information Acquisition System that Fig. 8 provides for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of information getting method based on PXE, and as shown in Figure 1, this information getting method specifically comprises the steps:
101, Pre-boot Execution Environment PXE client starts from PXE, and obtains the client identification of this PXE client.
Wherein, above-mentioned PXE client can be work station, server, microcomputer, network computer etc.; Above-mentioned client identification is user-defined mark; Exemplary, this client identification can be the identification (IDentity is called for short ID) for identifying this client, and this ID can be user set voluntarily.For example, this ID can be L7-R002-H7-S03, represents that this PXE client is to be positioned at building 7th floors, 002 machine room, and the server that is numbered S03 of H7 rack, does not limit at this.Exemplary, above-mentioned client identification can be pre-configured in this PXE client, also can input to obtain by user.
Optionally, before step 101, also comprise the steps:
Network interface card basic input output system (Basic Input Output System in 101a, this PXE client of PXE client terminal start-up, be called for short BIOS) obtain the client identification of user's input, and the client identification of user's input is stored as the client identification of this PXE client.
Exemplary, PXE client loads after the configuration interface of mainboard BIOS, getting after certain specific button of user's input, can activate the network interface card BIOS in this PXE client, by loading and starting this network interface card BIOS, PXE client can enter the configuration interface of network interface card BIOS.Now, network interface card BIOS can obtain by this configuration interface the client identification corresponding to this PXE client of user's input, and the client identification getting is stored.
102, PXE client broadcast dynamic host configuration protocol DHCP message.
Wherein, the client identification that above-mentioned dhcp message comprises PXE client; Exemplary, this dhcp message can be DHCP Discover message.Exemplary, in this DHCP Discover message, comprise the source IP address that IP address is 0.0.0.0 (being the IP address of PXE client acquiescence), the target ip address (being the IP address of the PXE server of PXE client acquiescence) that IP address is 255.255.255.255, MAC Address, the computer name of PXE client and the client identification of the PXE client that user inputs or obtains of PXE client.
Exemplary, PXE client is getting after the client identification of this PXE client, this client identification can be added in the field of DHCP Discover message, and the DHCP Discover message that has added this client identification is broadcasted to this DHCP Discover message by User Datagram Protoco (UDP) (User Datagram Protocol the is called for short UDP) port of this PXE client with the form of message in network.
The client identification of optionally, above-mentioned PXE client is to be carried in the DHCP Option Client Identifier field of dhcp message.
103, the dhcp response message of PXE client PXE server feedback.
Wherein, above-mentioned dhcp response message comprises the configuration information of PXE client; The configuration information of above-mentioned PXE client comprises but is not limited to: gateway, subnet mask and the address rental period (being that PXE server is the time limit of the IP address of PXE client distribution) of the client ip of this PXE client, the address of PXE boot, PXE client and PXE server place network.And the address of above-mentioned PXE boot comprises the IP address of PXE server or bootp server.The configuration information of above-mentioned PXE client is that PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and this PXE client, and the corresponding relation of this client identification and configuration information can be the mapping table of client identification and configuration information.And above-mentioned dhcp response message is for the configuration information to this PXE client of PXE client feedback; Exemplary, this dhcp response message can be DHCP Offer message, and gateway, subnet mask and the address rental period of the address that comprises this PXE boot in this DHCP Offer message (being the IP address of PXE server), target ip address (the IP address of the PXE client that the IP address that is PXE Server Default is 255.255.255.255), PXE client and PXE server place network.
Exemplary, PXE client is broadcasted in the process of DHCP Discover message in network, any PXE server that receives this DHCP Discover message and client ip can be provided for PXE client, according to the client identification in DHCP Discover message, by inquiring about the client identification of PXE client pre-configured on this PXE server and the mapping table of configuration information, thereby obtain the configuration information of this PXE client, and the configuration information getting is fed back to PXE client with the form of DHCP Offer message by the udp port of self.Because PXE client can receive the DHCP Offer message into this PXE client feedback from a more than PXE server, PXE client can be selected first DHCP Offer message receiving, and broadcast a DHCP Request message in network, show oneself to have accepted a client ip that PXE server provides.Wherein, the PXE server of being selected by PXE client is receiving after this DHCP Request message, can feed back to DHCP Pack message of PXE client, show that the IP address that this PXE server provides can be used for PXE client, and other PXE server is receiving after this DHCP Request message, can cancel the IP address that offers PXE client.
104, PXE client, according to the address of the client ip of PXE client and PXE boot, is downloaded PXE boot, and completes PXE installation and configuration by this PXE boot.
Exemplary, PXE client is receiving after the DHCP Offer message of PXE server feedback, can resolve the configuration information of the PXE client comprising in this DHCP Offer message, and therefrom parse client ip that PXE server provides for this PXE client and the address of PXE boot, the client ip that PXE client provides PXE server is as the IP address of self, the IP address corresponding with the PXE server comprising in the address of PXE boot connects, and download the required PXE boot of PXE client from this PXE server after connecting, and complete installation and the configuration of PXE in this PXE client according to this PXE boot.
The information getting method based on PXE that embodiments of the invention provide, PXE client is obtained the user-defined client identification prestoring in this PXE client, and this client identification is sent to PXE server, so that this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
Embodiments of the invention provide a kind of information getting method based on PXE, and as shown in Figure 2, the method specifically comprises the steps:
201, PXE server receives the dhcp message that PXE client sends.
Wherein, the client identification that above-mentioned dhcp message comprises PXE client; This client identification is user-defined mark.
202, PXE server is according to the client identification of PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of PXE client.
Wherein, above-mentioned dhcp response message comprises the configuration information of PXE client; The address of the client ip that the configuration information of PXE client comprises PXE client and PXE boot.
203, PXE server is to PXE client feedback dhcp response message, so that PXE client is according to the address of the client ip of PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by PXE boot.
Exemplary, in conjunction with the process of describing in Fig. 1 embodiment corresponding to Fig. 2, with reference to the schematic flow sheet of the information getting method shown in Fig. 3, below in conjunction with concrete scene, this information getting method is introduced.
1), PXE client obtains and stores the client identification of this PXE client at the configuration interface of mainboard BIOS.
2), PXE client terminal start-up PXE, obtain the client identification of storing in this PXE client, and this client identification is added in the DHCP Option Client Identifier field of DHCP Discover message, and broadcast this DHCP Discover message.
3), PXE server is receiving after the DHCP Discover message of PXE client broadcast, can from this DHCP Discover message, parse client identification corresponding to PXE client, and according to this client identification and preset client identification and the corresponding relation of PXE client configuration information, obtain the configuration information of the PXE client that this client identification is corresponding, finally the configuration information of this PXE client is carried in DHCP Offer message and is sent to PXE client.
4), PXE client is resolved this DHCP Offer message, and therefrom to parse PXE server be the client ip that distributes of this PXE client and the address of PXE boot, then PXE client can be according to the address of this client ip and PXE boot, download PXE boot, and complete PXE installation and configuration by this PXE boot.
The information getting method based on PXE that embodiments of the invention provide, PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
Embodiments of the invention provide a kind of PXE client, and as shown in Figure 4, this PXE client 3 comprises: acquiring unit 31, radio unit 32, receiving element 33 and installation unit 34, wherein:
Acquiring unit 31, for starting from PXE, and obtains the client identification of PXE client 2.
Wherein, above-mentioned client identification is user-defined mark.
Radio unit 32, for broadcasting dynamic host configuration protocol DHCP message.
Wherein, the client identification that above-mentioned dhcp message comprises PXE client.
Receiving element 33, for receiving the dhcp response message of PXE server feedback.
Wherein, above-mentioned dhcp response message comprises the configuration information of PXE client; The client ip that the configuration information of above-mentioned PXE client comprises this PXE client and the address of PXE boot; The configuration information of above-mentioned PXE client is that PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and this PXE client.
Installation unit 34, for according to the configuration information of PXE client, downloads PXE boot, and completes PXE installation and configuration by this PXE boot.
The client identification of optionally, above-mentioned PXE client is the DHCP Option Client Identifier field that is carried at dhcp message.
Optionally, above-mentioned PXE client also comprises: dispensing unit 35, wherein:
Dispensing unit 35, for starting the network interface card BIOS of PXE client, obtains the client identification of user's input, and the client identification of user's input is stored as the client identification of this PXE client.
The PXE client that embodiments of the invention provide, PXE client is obtained the user-defined client identification prestoring in this PXE client, and this client identification is sent to PXE server, so that this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
Embodiments of the invention provide a kind of PXE client, and as shown in Figure 5, this PXE server 4 comprises: receiving element 41, acquiring unit 42 and feedback unit 43, wherein:
Receiving element 41, the dhcp message sending for receiving PXE client; The client identification that wherein dhcp message comprises PXE client; Client identification is user-defined mark.
Acquiring unit 42, for the client identification of the PXE client that receives according to receiving element 41, and the corresponding relation of client identification and configuration information obtains the configuration information of PXE client; Wherein dhcp response message comprises the configuration information of PXE client; The address of the client ip that the configuration information of PXE client comprises PXE client and PXE boot.
Feedback unit 43, be used for to PXE client feedback dhcp response message, so that PXE client, according to the address of the client ip of PXE client and PXE boot, is downloaded PXE boot from corresponding PXE server, and complete PXE installation and configuration by PXE boot.
The PXE server that embodiments of the invention provide, this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
The structural representation of the PXE client that further embodiment of this invention as shown in Figure 6 provides.This PXE client can embed or itself be exactly micro-process computer, such as: the equipment such as all-purpose computer, customization machine, work station or purl machine.This PXE client 5 comprises: processor 51, memory 52 and communication interface 53, processor 51 each parts are coupled by bus system.This bus can be industry standard architecture (Industry Standard Architecture, be called for short ISA) bus, peripheral component interconnect (Peripheral Component, be called for short PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture is called for short EISA) bus etc.This bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, in Fig. 5, only represent with a thick line, but do not represent only to have the bus of a bus or a type.Wherein:
Processor 51 can be: general central processing unit (central procession unit, be called for short CPU), application-specific integrated circuit (ASIC) (application specific integrated circuit, be called for short ASIC), digital signal processor (DSP), ready-made programmable gate array (FPGA) or other programmable logic devices.
Memory 52 can be any usable medium that computer can access, include but not limited to: read-only memory (read only memory, be called for short ROM), the familiar storage medium in this area such as random asccess memory (random access memory, be called for short RAM) or disk storage (disk storage), flash memory, programmable read only memory or electrically erasable programmable memory, register.Memory 52, for providing instruction and data information to processor 51, is connected by bus with processor 51.
Storage in memory 52: application program and data message, for realizing the program code of the embodiment of the present invention.Application program comprises program code.
Describedly be coupled for program code and the processor 51 of realizing the embodiment of the present invention, the information getting method proposing to realize the present embodiment.
Processor 51 also comprises: communication interface 53, this communication interface 53 is for connecting PXE client and communication network, this communication network comprises: Ethernet, wireless access network (radio access network, RAN), WLAN (wireless local area network) (wireless local area network, WLAN) or other similar network.
Processor 51 for: PXE client starts from PXE, and obtains the client identification of PXE client; Wherein, above-mentioned client identification is user-defined mark; Broadcast dynamic host configuration protocol DHCP message; Wherein, the client identification that above-mentioned dhcp message comprises PXE client; Receive the dhcp response message of PXE server feedback; Wherein, above-mentioned dhcp response message comprises the configuration information of PXE client; The client ip that the configuration information of above-mentioned PXE client comprises this PXE client and the address of PXE boot; The configuration information of above-mentioned PXE client is that PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and this PXE client; According to the configuration information of PXE client, download PXE boot, and complete PXE installation and configuration by this PXE boot.
The client identification of optionally, above-mentioned PXE client is the DHCP Option Client Identifier field that is carried at dhcp message.
Optionally, PEX client terminal start-up PXE, before obtaining the client identification of this PXE client 3, processor 51 is also for the network interface card BIOS of this PXE client of PXE client terminal start-up, obtain the client identification of user's input, and the client identification of user's input is stored as the client identification of this PXE client, be stored in memory 52.
The PXE client that embodiments of the invention provide, PXE client is obtained the user-defined client identification prestoring in this PXE client, and this client identification is sent to PXE server, so that this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
The structural representation of the PXE server that the further embodiment of this invention shown in Fig. 7 provides.This PXE server 6 comprises: processor 61, memory 62 and communication interface 63, processor 61 each parts are coupled by bus system.And above-mentioned all parts can, with reference to the description in the embodiment shown in Fig. 6, repeat no more here here.
Concrete, the processor 61 in the present embodiment for: receive by communication interface 63 dhcp message that PXE client sends; The client identification that wherein dhcp message comprises PXE client; Client identification is user-defined mark; According to the client identification of PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of PXE client; Wherein dhcp response message comprises the configuration information of PXE client; The address of the client ip that the configuration information of PXE client comprises PXE client and PXE boot; By communication interface 63 to described PXE client feedback dhcp response message, so that PXE client is according to the address of the client ip of PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by PXE boot.
The PXE server that embodiments of the invention provide, this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
The PXE client that the embodiment of the present invention provides and PXE server can also obtain system by configuration information, to realize the information getting method that embodiment provides as shown in Figure 1, Figure 2, Figure 3 shows.Exemplary, as shown in Figure 8, this Information Acquisition System 7 comprises: PXE client 71 and PXE server 72.Wherein, this PXE client 71, can be the PXE client shown in any one in Fig. 4 to Fig. 5, and this PXE server can be the PXE client shown in any one in Fig. 5 to Fig. 7.
Shown in Fig. 8, this Information Acquisition System comprises: PXE client 71 and PXE server 72, wherein:
Pre-boot Execution Environment PXE client 71 is for starting from PXE, and obtains the client identification of PXE client 71.
Wherein, above-mentioned PXE client 71 can be work station, server, microcomputer, network computer etc.; Above-mentioned client identification is user-defined mark; Exemplary, this client identification can be the ID for identifying this client, for example, this ID can be L7-R002-H7-S03, represents that this PXE client is to be positioned at building 7th floors, and 002 machine room, the server that is numbered S03 of H7 rack, then this does not limit.Exemplary, above-mentioned client identification can be pre-configured in this PXE client 71, also can input to obtain by user.
Optionally, PXE client 71, also for starting the network interface card BIOS of this PXE client 71, is obtained the client identification of user's input, and the client identification of user's input is stored as the client identification of this PXE client 71.
PXE client 71 is for broadcasting dynamic host configuration protocol DHCP message.The client identification that above-mentioned dhcp message comprises PXE client 71.
Exemplary, PXE client 71 is getting after the client identification of this PXE client 41, this client identification can be added in the field of DHCP Discover message, and the DHCP Discover message that has added this client identification is broadcasted to this DHCP Discover message by the udp port of this PXE client 71 with the form of message in network.
The client identification of optionally, above-mentioned PXE client 71 is the DHCP Option Client Identifier fields that are carried at dhcp message.
PXE server 72 is for receiving described dhcp message, and according to the client identification of PXE client 71, and the corresponding relation of client identification and configuration information obtains the configuration information of this PXE client 71, and feeds back dhcp response message to this PXE client 71.
Wherein, above-mentioned dhcp response message can, with reference to the description in the corresponding embodiment of Fig. 1, repeat no more here.
PXE client 71 is for receiving dhcp response message, and according to the address of the client ip of this PXE client 71 and PXE boot, from corresponding PXE server 72 (or bootp server), download PXE boot, and complete PXE installation and configuration by this PXE boot.
Exemplary, PXE client 71 is receiving after the DHCP Offer message that PXE server 72 feeds back, can resolve the configuration information of the PXE client 71 comprising in this DHCP Offer message, and therefrom parse client ip that PXE server 72 provides for this PXE client 71 and the address of PXE boot, the client ip that PXE client 71 provides PXE server 72 is as the IP address of self, the IP address corresponding with the PXE server 72 comprising in the address of PXE boot connects, and download the required PXE boot of PXE client 71 from this PXE server 72 after connecting, and complete installation and the configuration of PXE in this PXE client 71 according to this PXE boot.
The Information Acquisition System based on PXE that embodiments of the invention provide, PXE client is obtained the user-defined client identification prestoring in this PXE client, and this client identification is sent to PXE server, so that this PXE server is according to the client identification of this PXE client, from the corresponding relation of client identification and configuration information, obtain the configuration information of this PXE client, thereby make this PXE client to download PXE boot according to the address of the client ip of this PXE client in this configuration information and PXE boot, and complete PXE installation and configuration by PXE boot, the problem of having avoided the data volume occurring while configuring corresponding relation by MAC Address in prior art to make mistakes greatly and easily, simultaneously, due to the introducing of client identification, thereby make PXE server in the time of identification PXE client, can be no longer dependent on original tediously long and complicated MAC Address, but directly identify by client identification, and then promote the efficiency of PXE server identification PXE client, also reduced follow-up maintenance difficulties.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of device, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematically, and for example, the division of described unit, is only that a kind of logic function is divided, and when actual realization, can have other dividing mode.
In addition, the each functional unit in each embodiment of the application can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that the application's technical scheme contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the application.
The above, above embodiment only, in order to the application's technical scheme to be described, is not intended to limit; Although the application is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of the each embodiment technical scheme of the application.
Claims (9)
1. the information getting method based on PXE, is characterized in that, comprising:
Pre-boot Execution Environment PXE client starts from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Broadcast dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Receive the dhcp response message of PXE server feedback; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot; The configuration information of described PXE client is that described PXE server obtains according to the client identification of the corresponding relation of default client identification and configuration information and described PXE client;
According to the address of the client ip of described PXE client and PXE boot, download PXE boot, and complete PXE installation and configuration by described PXE boot.
2. method according to claim 1, is characterized in that, the client identification of described PXE client is to be carried in the DHCP Option Client Identifier field of described dhcp message.
3. method according to claim 1 and 2, is characterized in that, described Pre-boot Execution Environment PXE client terminal start-up PXE, and before obtaining the client identification of described PXE client, described method also comprises:
Network interface card basic input-output system BIOS described in described PXE client terminal start-up in PXE client, obtains the client identification of user's input, and the client identification of described user's input is stored as the client identification of described PXE client.
4. the information getting method based on PXE, is characterized in that, comprising:
PXE server receives the dhcp message that PXE client sends; The client identification that wherein said dhcp message comprises described PXE client; Described client identification is user-defined mark;
According to the client identification of described PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
To described PXE client feedback dhcp response message, so that described PXE client is according to the address of the client ip of described PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by described PXE boot.
5. a PXE client, is characterized in that, comprising:
Acquiring unit, for starting from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Radio unit, for broadcasting dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Receiving element, for receiving the dhcp response message of PXE server feedback; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot; The configuration information of described PXE client is that described PXE server obtains according to the client identification of the corresponding relation of client identification and configuration information and described PXE client;
Installation unit, for according to the address of the client ip of described PXE client and PXE boot, downloads PXE boot, and completes PXE installation and configuration by described PXE boot.
6. PXE client according to claim 5, is characterized in that, the client identification of described PXE client is to be carried in the DHCP Option Client Identifier field of described dhcp message.
7. PXE client according to claim 5, is characterized in that, described PXE client also comprises:
Dispensing unit, for starting the network interface card BIOS of described PXE client, obtains the client identification of user's input, and the client identification of described user's input is stored as the client identification of described PXE client.
8. a PXE server, is characterized in that, comprising:
Receiving element, the dhcp message sending for receiving PXE client; The client identification that wherein said dhcp message comprises described PXE client; Described client identification is user-defined mark;
Acquiring unit, for the client identification of the described PXE client that receives according to described receiving element, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
Feedback unit, be used for to described PXE client feedback dhcp response message, so that described PXE client is according to the address of the client ip of described PXE client and PXE boot, from corresponding PXE server, download PXE boot, and complete PXE installation and configuration by described PXE boot.
9. an Information Acquisition System, is characterized in that, comprising:
Pre-boot Execution Environment PXE client is used for starting from PXE, and obtains the client identification of described PXE client; Described client identification is user-defined mark;
Described PXE client is used for broadcasting dynamic host configuration protocol DHCP message; The client identification that wherein said dhcp message comprises described PXE client;
Described PXE server is used for receiving described dhcp message, according to the client identification of described PXE client, and the corresponding relation of client identification and configuration information obtains the configuration information of described PXE client, and to described PXE client feedback dhcp response message; Wherein said dhcp response message comprises the configuration information of described PXE client; The address of the client ip that the configuration information of described PXE client comprises described PXE client and PXE boot;
Described PXE client is used for receiving described dhcp response message, and according to the address of the client ip of PXE client and PXE boot, from corresponding PXE server, downloads PXE boot, and completes PXE installation and configuration by described PXE boot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410371424.9A CN104158859A (en) | 2014-07-30 | 2014-07-30 | PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410371424.9A CN104158859A (en) | 2014-07-30 | 2014-07-30 | PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104158859A true CN104158859A (en) | 2014-11-19 |
Family
ID=51884264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410371424.9A Pending CN104158859A (en) | 2014-07-30 | 2014-07-30 | PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104158859A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935468A (en) * | 2015-06-24 | 2015-09-23 | 宋敏 | PXE technology-based interactive system and method for realizing operation of operating system thereof |
CN107566174A (en) * | 2017-09-05 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of network interface card identification and the realization method and system of bulk filling system |
CN108572852A (en) * | 2018-03-21 | 2018-09-25 | 江苏长顺江波软件科技发展有限公司 | It is a kind of can be in the method for cross-network segment network startup |
CN111711715A (en) * | 2020-06-19 | 2020-09-25 | 中国工商银行股份有限公司 | Method, device, electronic equipment and medium for processing server IP address |
CN111966417A (en) * | 2020-08-25 | 2020-11-20 | 深圳市亿道数码技术有限公司 | Method and system for controlling starting of slave PXE through designated key |
CN113094108A (en) * | 2021-03-29 | 2021-07-09 | 联想(北京)有限公司 | Starting method and electronic equipment |
CN113656082A (en) * | 2021-08-16 | 2021-11-16 | 维沃移动通信有限公司 | Network kernel loading method, management server and application server |
CN115098174A (en) * | 2022-06-29 | 2022-09-23 | 广东东勤科技有限公司 | PXE technology-based operating system installation method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1334510A (en) * | 2001-09-07 | 2002-02-06 | 清华大学 | Remoteboot method of computer in network environment |
CN101442527A (en) * | 2007-11-21 | 2009-05-27 | 英特尔公司 | Remote provisioning utilizing device identifier |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
CN103744695A (en) * | 2013-12-25 | 2014-04-23 | 新浪网技术(中国)有限公司 | Method and system for operating system remote installation on basis of PXE |
-
2014
- 2014-07-30 CN CN201410371424.9A patent/CN104158859A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1334510A (en) * | 2001-09-07 | 2002-02-06 | 清华大学 | Remoteboot method of computer in network environment |
CN101442527A (en) * | 2007-11-21 | 2009-05-27 | 英特尔公司 | Remote provisioning utilizing device identifier |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
CN103744695A (en) * | 2013-12-25 | 2014-04-23 | 新浪网技术(中国)有限公司 | Method and system for operating system remote installation on basis of PXE |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935468A (en) * | 2015-06-24 | 2015-09-23 | 宋敏 | PXE technology-based interactive system and method for realizing operation of operating system thereof |
CN107566174A (en) * | 2017-09-05 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of network interface card identification and the realization method and system of bulk filling system |
CN108572852A (en) * | 2018-03-21 | 2018-09-25 | 江苏长顺江波软件科技发展有限公司 | It is a kind of can be in the method for cross-network segment network startup |
CN111711715A (en) * | 2020-06-19 | 2020-09-25 | 中国工商银行股份有限公司 | Method, device, electronic equipment and medium for processing server IP address |
CN111966417A (en) * | 2020-08-25 | 2020-11-20 | 深圳市亿道数码技术有限公司 | Method and system for controlling starting of slave PXE through designated key |
CN111966417B (en) * | 2020-08-25 | 2023-08-18 | 深圳市亿道数码技术有限公司 | Method and system for controlling start-up from PXE through designated key |
CN113094108A (en) * | 2021-03-29 | 2021-07-09 | 联想(北京)有限公司 | Starting method and electronic equipment |
CN113656082A (en) * | 2021-08-16 | 2021-11-16 | 维沃移动通信有限公司 | Network kernel loading method, management server and application server |
CN115098174A (en) * | 2022-06-29 | 2022-09-23 | 广东东勤科技有限公司 | PXE technology-based operating system installation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104158859A (en) | PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system | |
CN105703938B (en) | Equipment configuration method, configuration device and management equipment | |
CN108401037B (en) | Binding method, device and system of user terminal and equipment | |
CN104734931A (en) | Method and device for establishing link between virtual network functions | |
CN104935468A (en) | PXE technology-based interactive system and method for realizing operation of operating system thereof | |
JP5549038B2 (en) | Method for booting network computing device, server and computer system for implementing the method | |
CN106572200A (en) | IP address configuration method and IP address configuration device for baseboard management controller BMC | |
CN108769267B (en) | Method for booting ISO and WIM image files in PXE protocol-based network starting mode | |
CN106453681B (en) | IP address allocation method and device | |
CN113708957B (en) | Configuration method, terminal device and medium for server BMC | |
CN110099095B (en) | Software deployment method and device, electronic equipment and computer-readable storage medium | |
CN112491630A (en) | Bare computer automatic deployment method and device and cloud environment platform | |
CN104780058A (en) | Electronic equipment configuration method and system | |
CN112667293B (en) | Method, device and storage medium for deploying operating system | |
CN114866515A (en) | IP address configuration method, device, electronic equipment and storage medium | |
CN111163167A (en) | System installation method and device | |
CN107968725B (en) | Method and device for returning and configuring configuration information of home gateway unit type terminal device | |
CN110247778B (en) | Operating system installation method and device, electronic equipment and storage medium | |
CN104811470A (en) | Point-to-point transmission method and network connection device | |
CN115333933B (en) | Automatic management method, medium and equipment for servers on machine room | |
CN108712298B (en) | Network equipment upgrading method and device, network equipment and storage medium | |
CN115268951A (en) | Installation method, device, equipment and storage medium of operating system | |
CN106445599B (en) | Application program upgrading method and device and terminal | |
CN111294374B (en) | Heterogeneous equipment starting system, method and device and electronic equipment | |
CN115469961A (en) | Method and device for creating container group, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141119 |