Movatterモバイル変換


[0]ホーム

URL:


CN103516547B - A network parameter distribution method and device - Google Patents

A network parameter distribution method and device
Download PDF

Info

Publication number
CN103516547B
CN103516547BCN201310430444.4ACN201310430444ACN103516547BCN 103516547 BCN103516547 BCN 103516547BCN 201310430444 ACN201310430444 ACN 201310430444ACN 103516547 BCN103516547 BCN 103516547B
Authority
CN
China
Prior art keywords
main frame
physical location
host
network parameter
address
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.)
Active
Application number
CN201310430444.4A
Other languages
Chinese (zh)
Other versions
CN103516547A (en
Inventor
吴向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201310430444.4ApriorityCriticalpatent/CN103516547B/en
Publication of CN103516547ApublicationCriticalpatent/CN103516547A/en
Application grantedgrantedCritical
Publication of CN103516547BpublicationCriticalpatent/CN103516547B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The embodiment of the invention provides a kind of network parameter distribution method and device, the corresponding relation that deployment server is identified according to network parameter with physical location, it is determined that the physical location corresponding network parameter of mark with the main frame of network parameter to be allocated, and set up the mapping relations between the MAC addresses of the network parameter and the main frame, because the physical location mark of the main frame represents physical location of the main frame in mainframe cluster, so, the network parameter for distributing as procedure described above disclosure satisfy that the demand of the physical location of user's positioning host, again because the process of distributed network parameters is performed by deployment server, and do not need the participation of interchanger, so, even if interchanger is mismatched with the version of deployment server, also user can be met by network parameter(Such as IP address)The demand of the physical location of positioning host.

Description

Translated fromChinese
一种网络参数分配方法及装置A network parameter distribution method and device

技术领域technical field

本发明涉及互联网领域,尤其涉及一种网络参数分配方法及装置。The invention relates to the field of the Internet, in particular to a network parameter distribution method and device.

背景技术Background technique

在网络数据中心部署时,通常需要对大量主机进行网络参数的配置。如图1中所示,各个主机通过交换机连接到部署服务器上,部署服务器为各个主机分配网络参数,例如部署服务器为各个主机分配互联网协议(Internet Protocol,IP)地址。为了便于后期维护,IP地址的分配结果要满足以下需求:用户能够通过IP地址定位主机在主机群中的物理位置。When deployed in a network data center, it is usually necessary to configure network parameters for a large number of hosts. As shown in FIG. 1 , each host is connected to a deployment server through a switch, and the deployment server assigns network parameters to each host, for example, the deployment server assigns an Internet Protocol (Internet Protocol, IP) address to each host. In order to facilitate later maintenance, the result of IP address allocation must meet the following requirements: users can locate the physical location of the host in the host group through the IP address.

现有的网络参数配置方法,利用交换机的端口号来满足上述需求,例如,当某台主机的IP地址不可达时,用户可以依据此台主机的IP地址,查询与IP地址对应的端口号,再依据端口号确定故障主机的物理位置,从而找到故障主机,对其进行维护。可见,要满足上述需求,需要交换机与部署服务器间配合进行,因此,当交换机与部署服务器的版本不匹配时,现有的网络参数分配方法,难以得到满足上述需求的分配结果。The existing network parameter configuration method uses the port number of the switch to meet the above requirements. For example, when the IP address of a certain host is unreachable, the user can query the port number corresponding to the IP address according to the IP address of the host. Then determine the physical location of the faulty host according to the port number, so as to find the faulty host and maintain it. It can be seen that to meet the above requirements, cooperation between the switch and the deployment server is required. Therefore, when the versions of the switch and the deployment server do not match, the existing network parameter allocation method cannot obtain an allocation result that meets the above requirements.

发明内容Contents of the invention

有鉴于此,本发明实施例提供了一种网络参数分配方法及装置,目的在于解决当交换机与部署服务器的版本不匹配时,难以确定故障主机的物理位置的问题。In view of this, the embodiments of the present invention provide a method and device for allocating network parameters, aiming at solving the problem that it is difficult to determine the physical location of the faulty host when the versions of the switch and the deployment server do not match.

为了实现上述目的,本发明实施例提供了以下技术方案:In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:

本发明实施例的第一方面公开了一种网络参数分配方法,包括:The first aspect of the embodiments of the present invention discloses a network parameter allocation method, including:

部署服务器获取主机的物理位置标识与所述主机的媒体接入控制地址,所述物理位置标识表示所述主机的物理位置;The deployment server acquires the physical location identifier of the host and the media access control address of the host, where the physical location identifier indicates the physical location of the host;

所述部署服务器依据网络参数与物理位置标识的对应关系,确定与所述主机的物理位置标识对应的第一网络参数;The deployment server determines the first network parameter corresponding to the physical location identifier of the host according to the corresponding relationship between the network parameter and the physical location identifier;

所述部署服务器将所述第一网络参数分配给所述主机,并建立所述第一网络参数与所述主机的媒体接入控制地址间的映射关系。The deployment server distributes the first network parameter to the host, and establishes a mapping relationship between the first network parameter and the MAC address of the host.

在本发明实施例的第一方面的第一种实现方式中,所述获取所述主机的物理位置标识及所述主机的媒体接入控制地址包括:In the first implementation manner of the first aspect of the embodiments of the present invention, the acquiring the physical location identifier of the host and the media access control address of the host includes:

接收预先发送给所述主机的代理程序发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。receiving the physical location identifier of the host and the media access control address of the host that are previously sent to the agent program of the host.

在本发明实施例的第一方面的第二种实现方式中,所述获取所述主机的物理位置标识及所述主机的媒体接入控制地址包括:In the second implementation manner of the first aspect of the embodiments of the present invention, the acquiring the physical location identifier of the host and the media access control address of the host includes:

如果检测到为所述主机分配的临时互联网协议地址可达,则向预先发送给所述主机的代理程序发送查询指令;If it is detected that the temporary Internet Protocol address allocated for the host is reachable, then send a query instruction to the agent program sent to the host in advance;

接收所述代理程序依据所述查询指令发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。receiving the physical location identifier of the host and the MAC address of the host sent by the agent program according to the query instruction.

在本发明实施例的第一方面的第三种实现方式中,所述物理位置标识包括:In a third implementation manner of the first aspect of the embodiments of the present invention, the physical location identifier includes:

基板管理控制器-互联网协议地址,每个主机的基板管理控制器-互联网协议地址是根据主机在主机群中的物理位置进行分配的。BMC-IP address, the BMC-IP address of each host is assigned based on the host's physical location in the host farm.

在本发明实施例的第一方面的第四种实现方式中,在所述依据网络参数与物理位置标识的对应关系,确定与所述主机的物理位置标识对应的第一网络参数之前,还包括:In the fourth implementation manner of the first aspect of the embodiments of the present invention, before determining the first network parameter corresponding to the physical location identifier of the host according to the correspondence between the network parameter and the physical location identifier, further includes :

所述部署服务器接收预先配置的网络参数与物理位置标识的对应关系。The deployment server receives a pre-configured correspondence between network parameters and physical location identifiers.

在本发明实施例的第一方面的第五种实现方式中,所述网络参数包括以下至少一项:In a fifth implementation manner of the first aspect of the embodiments of the present invention, the network parameters include at least one of the following:

互联网协议地址;Internet protocol address;

主机名。CPU name.

本发明实施例的第二方面公开了一种部署服务器,包括:The second aspect of the embodiment of the present invention discloses a deployment server, including:

获取模块,用于获取主机的物理位置标识及所述主机的媒体接入控制地址,所述物理位置标识表示所述主机的物理位置;An acquiring module, configured to acquire a physical location identifier of a host and a media access control address of the host, where the physical location identifier indicates the physical location of the host;

确定模块,用于依据网络参数与物理位置标识的对应关系,确定与所述主机的物理位置标识对应的第一网络参数;A determining module, configured to determine the first network parameter corresponding to the physical location identifier of the host according to the correspondence between the network parameter and the physical location identifier;

分配模块,用于将所述第一网络参数分配给所述主机,并建立所述第一网络参数与所述主机的媒体接入控制地址间的映射关系。An allocating module, configured to allocate the first network parameter to the host, and establish a mapping relationship between the first network parameter and the MAC address of the host.

在本发明实施例的第二方面的第一种实现方式中,所述获取模块包括:In the first implementation manner of the second aspect of the embodiments of the present invention, the acquisition module includes:

第一接收单元,用于接收预先发送给所述主机的代理程序发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。The first receiving unit is configured to receive the physical location identifier of the host and the media access control address of the host that are previously sent to the agent program of the host.

在本发明实施例的第二方面的第二种实现方式中,所述获取模块包括:In a second implementation manner of the second aspect of the embodiments of the present invention, the acquiring module includes:

发送单元,用于如果检测到为所述主机分配的临时互联网协议地址可达,则向预先发送给所述主机的代理程序发送查询指令;A sending unit, configured to send a query instruction to the agent program previously sent to the host if it is detected that the temporary Internet Protocol address assigned to the host is reachable;

第二接收单元,用于接收所述代理程序依据所述查询指令发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。The second receiving unit is configured to receive the physical location identifier of the host and the media access control address of the host sent by the agent program according to the query instruction.

在本发明实施例的第二方面的第三种实现方式中,所述物理位置标识包括:In a third implementation manner of the second aspect of the embodiments of the present invention, the physical location identifier includes:

基板管理控制器-互联网协议地址,每个主机的基板管理控制器-互联网协议地址是根据主机在主机群中的物理位置进行分配的。BMC-IP address, the BMC-IP address of each host is assigned based on the host's physical location in the host farm.

在本发明实施例的第二方面的第四种实现方式中,还包括:In the fourth implementation manner of the second aspect of the embodiments of the present invention, it also includes:

接收模块,用于接收预先配置的网络参数与标识的对应关系。本发明实施例提供的网络参数分配方法及装置,部署服务器依据网络参数与物理位置标识的对应关系,确定与待分配网络参数的主机的物理位置标识对应的网络参数,并建立所述网络参数与所述主机的媒体接入地址间的映射关系,因为所述主机的物理位置标识表示所述主机在主机集群中的物理位置,所以,按照上述过程分配的网络参数能够满足用户定位主机的物理位置的需求,又因为分配网络参数的过程由部署服务器执行,并不需要交换机的参与,所以,即使交换机与部署服务器的版本不匹配,也能够得到满足用户通过网络参数(例如IP地址)定位主机的物理位置的需求。The receiving module is configured to receive the pre-configured correspondence between network parameters and identifiers. In the method and device for allocating network parameters provided by the embodiments of the present invention, the deployment server determines the network parameters corresponding to the physical location identifiers of the hosts to be assigned network parameters according to the corresponding relationship between network parameters and physical location identifiers, and establishes the network parameters and physical location identifiers. The mapping relationship between the media access addresses of the hosts, because the physical location identifier of the host indicates the physical location of the host in the host cluster, so the network parameters allocated according to the above process can meet the requirements of the user to locate the physical location of the host requirements, and because the process of assigning network parameters is performed by the deployment server without the participation of the switch, so even if the version of the switch does not match the version of the deployment server, it can still meet the needs of users to locate hosts through network parameters (such as IP addresses) Physical location requirements.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为主机与部署服务器的连接示意图;Figure 1 is a schematic diagram of the connection between the host and the deployment server;

图2为本发明实施例公开的一种网络参数分配方法的流程图;FIG. 2 is a flowchart of a network parameter allocation method disclosed in an embodiment of the present invention;

图3为本发明实施例公开的又一种网络参数分配方法的流程图;FIG. 3 is a flow chart of another network parameter allocation method disclosed in an embodiment of the present invention;

图4为本发明实施例公开的主机进行OS安装的过程示意图;FIG. 4 is a schematic diagram of the process of installing an OS on a host disclosed in an embodiment of the present invention;

图5为本发明实施例公开的一种部署服务器的结构示意图。FIG. 5 is a schematic structural diagram of a deployment server disclosed by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例公开的一种网络参数分配方法,如图2所示,包括:A network parameter allocation method disclosed in an embodiment of the present invention, as shown in FIG. 2 , includes:

S201:部署服务器获取主机的物理位置标识及所述主机的媒体接入控制(MediaAccess Control,MAC)地址;S201: The deployment server acquires the physical location identifier of the host and the Media Access Control (MAC) address of the host;

所述物理位置标识表示所述主机在主机群中的物理位置。The physical location identifier indicates the physical location of the host in the host group.

S202:部署服务器依据网络参数与物理位置标识的对应关系,确定与所述主机的物理位置标识对应的第一网络参数;S202: The deployment server determines the first network parameter corresponding to the physical location identifier of the host according to the correspondence between the network parameter and the physical location identifier;

S203:部署服务器将所述第一网络参数分配给所述主机,并建立所述第一网络参数与所述主机的MAC地址间的映射关系。S203: The deployment server allocates the first network parameter to the host, and establishes a mapping relationship between the first network parameter and the MAC address of the host.

本实施例所述的方法,将主机的物理位置标识作为对照,建立此主机的MAC地址与网络参数间的映射关系,因为网络参数与物理位置标识对应,而物理位置标识表示此主机的物理位置,所以,在网络参数与主机的物理位置间建立起对应关系,当主机出现故障时,用户可以依据主机的网络参数,查询对应关系,能够确定主机的物理位置标识,进一步确定主机在主机群中的位置,从而找到此故障主机,能够便于对其进行维护。并且,本实施例中,建立MAC地址与网络参数间的映射关系的过程,并不需要交换机的参与,所以,即使交换机的版本与部署服务器的版本不匹配,使用本发明所述的方法分配的网络参数,也能够满足定位主机的物理位置间的需求。In the method described in this embodiment, the physical location identifier of the host is used as a comparison, and the mapping relationship between the MAC address of the host and the network parameters is established, because the network parameters correspond to the physical location identifier, and the physical location identifier indicates the physical location of the host. , therefore, a corresponding relationship is established between the network parameters and the physical location of the host. When a host fails, the user can query the corresponding relationship according to the network parameters of the host, determine the physical location of the host, and further determine whether the host is in the host group. The location of the faulty host can be found, which can facilitate its maintenance. Moreover, in this embodiment, the process of establishing the mapping relationship between the MAC address and the network parameters does not require the participation of the switch, so even if the version of the switch does not match the version of the deployment server, the distribution using the method described in the present invention Network parameters can also meet the needs of locating the physical location of the host.

本发明实施例公开的又一种网络参数分配方法,如图3所示,包括:Another network parameter allocation method disclosed in the embodiment of the present invention, as shown in FIG. 3 , includes:

S301:部署服务器获取网络参数与物理位置标识的对应关系;S301: The deployment server obtains the corresponding relationship between network parameters and physical location identifiers;

本实施例中,物理位置标识具体为基板管理控制器-互联网协议(baseboardmanagement controller-Internet Protocol,BMC-IP)BMC-IP地址。每个主机的基板管理控制器-互联网协议地址是根据主机在主机群中的物理位置进行分配的。各个主机的BMC-IP地址可以由用户按照主机的物理位置进行设置。例如,图1中,主机1被放置在机架的位置1,主机2被放置在机架的位置2,主机3被放置在机架的位置3,则主机1的BMC-IP地址可以为10.100.35.1,主机2的BMC-IP地址为10.100.35.2,主机3的BMC-IP地址为10.100.35.3。In this embodiment, the physical location identifier is specifically a baseboard management controller-Internet Protocol (baseboard management controller-Internet Protocol, BMC-IP) BMC-IP address. The BMC-IP address for each host is assigned based on the host's physical location in the host farm. The BMC-IP address of each host can be set by the user according to the physical location of the host. For example, in Figure 1, host 1 is placed at position 1 of the rack, host 2 is placed at position 2 of the rack, and host 3 is placed at position 3 of the rack, then the BMC-IP address of host 1 can be 10.100 .35.1, the BMC-IP address of host 2 is 10.100.35.2, and the BMC-IP address of host 3 is 10.100.35.3.

可选地,本实施例中,网络参数可以包括IP地址或者主机名,或者,IP地址和主机名。Optionally, in this embodiment, the network parameters may include an IP address or a host name, or an IP address and a host name.

网络参数与BMC-IP地址的对应关系可以预先配置在系统中,优选地,在所述部署服务器中进行预先配置,那么部署服务器获取自身保存的所述网络参数与BMC-IP地址的对应关系。The corresponding relationship between network parameters and BMC-IP addresses can be pre-configured in the system, preferably, pre-configured in the deployment server, then the deployment server obtains the corresponding relationship between the network parameters and BMC-IP addresses saved by itself.

S302:部署服务器接收所述主机的代理程序发送的所述主机的BMC-IP地址及所述主机的MAC地址;S302: The deployment server receives the BMC-IP address of the host and the MAC address of the host sent by the agent program of the host;

代理程序被发送到主机后,通常会自动运行。本实施例中,代理程序可以通过智能平台管理界面(Intelligent Platform Management Interface,IPMI)命令获取此主机上的BMC-IP地址。After the agent is sent to the host, it usually runs automatically. In this embodiment, the agent program can obtain the BMC-IP address on the host through an intelligent platform management interface (Intelligent Platform Management Interface, IPMI) command.

S303:部署服务器依据所述网络参数与BMC-IP地址的对应关系,确定所述主机的BMC-IP地址对应的第一网络参数;S303: The deployment server determines the first network parameter corresponding to the BMC-IP address of the host according to the correspondence between the network parameter and the BMC-IP address;

S304:部署服务器将所述第一网络参数分配给所述主机,并建立所述第一网络参数与所述主机的MAC地址间的映射关系。S304: The deployment server assigns the first network parameter to the host, and establishes a mapping relationship between the first network parameter and the MAC address of the host.

例如,部署服务器接收到的BMC-IP地址为10.100.35.1,主机1的MAC地址为fc-aa-bb-cc-dd-ee,如果对应关系中IP地址192.168.80.1与BMC-IP地址10.100.35.1相对应,所以,将IP地址192.168.80.1映射到MAC地址fc-aa-bb-cc-dd-ee。For example, the BMC-IP address received by the deployment server is 10.100.35.1, and the MAC address of host 1 is fc-aa-bb-cc-dd-ee, if the IP address 192.168.80.1 and the BMC-IP address 10.100 in the corresponding relationship. 35.1 corresponds, so the IP address 192.168.80.1 is mapped to the MAC address fc-aa-bb-cc-dd-ee.

按照上述方法,为每台主机分配网络参数,即可以通过网络参数定位主机的位置,例如,当某台主机的IP地址不可达时,用户可通过IP地址查询到主机的BMC-IP地址,因为BMC-IP地址表示主机在主机群中的物理位置,且由用户设定,所以可以进一步在主机群中找到所述主机,便于对主机进行维护。According to the above method, assign network parameters to each host, that is, the position of the host can be located through the network parameters. For example, when the IP address of a certain host is unreachable, the user can query the BMC-IP address of the host through the IP address, because The BMC-IP address represents the physical location of the host in the host group and is set by the user, so the host can be further found in the host group to facilitate maintenance of the host.

本发明实施例公开的一种网络参数分配方法,可以用于图1所示的主机进行操作系统(Operation system,OS)安装的过程中,在启动自动配置之前,用户可以为每台主机分配的BMC-IP地址,用于表示主机在主机群中的物理位置,例如,为放置在位置1的主机1分配的BMC-IP地址为10.100.35.1,为放置在位置2的主机2分配的BMC-IP地址为10.100.35.2为放置在位置3的主机3分配的BMC-IP地址为10.100.35.3。此外,用户还可以设定BMC-IP地址与网络参数之间的对应关系,例如,BMC-IP地址10.100.35.1与IP地址192.168.80.1对应,BMC-IP地址10.100.35.2与IP地址192.168.80.2对应,BMC-IP地址10.100.35.3与IP地址192.168.80.3对应。A method for allocating network parameters disclosed in the embodiment of the present invention can be used in the process of installing an operating system (Operation system, OS) on the host shown in Figure 1. Before starting the automatic configuration, the user can assign each host The BMC-IP address is used to indicate the physical location of the host in the host group. For example, the BMC-IP address assigned to host 1 at location 1 is 10.100.35.1, and the BMC-IP address assigned to host 2 at location 2 is 10.100.35.1. The IP address is 10.100.35.2, and the BMC-IP address assigned to host 3 placed in position 3 is 10.100.35.3. In addition, users can also set the corresponding relationship between BMC-IP address and network parameters, for example, BMC-IP address 10.100.35.1 corresponds to IP address 192.168.80.1, BMC-IP address 10.100.35.2 corresponds to IP address Correspondingly, the BMC-IP address 10.100.35.3 corresponds to the IP address 192.168.80.3.

用户通过主机的基板管理控制器(baseboard management controller,BMC)接口,将为主机分配的BMC-IP地址存储到主机中。The user stores the BMC-IP address assigned to the host in the host through the baseboard management controller (BMC) interface of the host.

如图4所示,以主机1为例,进行OS安装的过程包括:As shown in Figure 4, taking host 1 as an example, the OS installation process includes:

S401:部署服务器接收用户输入的BMC-IP地址与IP地址的对应关系,以及,为各个主机分配的主机名、网络掩码、网关和临时IP地址。S401: The deployment server receives the correspondence between the BMC-IP address and the IP address input by the user, and the host name, network mask, gateway, and temporary IP address allocated to each host.

S402:主机1启动后发起执行环境(Preboot Execution Environment,PXE)请求;S402: Host 1 initiates an execution environment (Preboot Execution Environment, PXE) request after starting;

S403:主机1从部署服务器获得临时IP地址,并从部署服务器下载迷你操作系统(mini operation system,miniOS);S403: Host 1 obtains a temporary IP address from the deployment server, and downloads a mini operating system (mini operation system, miniOS) from the deployment server;

所述miniOS是标准操作系统的子集,具备基本的输入输出、网络通信和协议操作能力),其中,miniOS中内置代理程序;The miniOS is a subset of the standard operating system, which has basic input and output, network communication and protocol operation capabilities), wherein, the miniOS has a built-in agent program;

S404:如果部署服务器检测到为所述主机分配的临时IP地址可达,则向主机1中的代理程序发送查询指令;S404: If the deployment server detects that the temporary IP address assigned to the host is reachable, send a query instruction to the agent program in the host 1;

S405:代理程序依据查询指令查询主机1的BMC-IP地址及所述主机1的MAC地址;S405: The agent program queries the BMC-IP address of the host 1 and the MAC address of the host 1 according to the query instruction;

S406:代理程序将主机1的BMC-IP地址及所述主机1的MAC地址发给部署服务器;S406: The agent program sends the BMC-IP address of the host 1 and the MAC address of the host 1 to the deployment server;

与上述实施例中代理程序主动发送不同,本实施例中由部署服务器触发主机1中的代理程序发送BMC-IP地址及MAC地址。Different from the active sending by the agent program in the above embodiment, in this embodiment the deployment server triggers the agent program in the host 1 to send the BMC-IP address and MAC address.

S407:部署服务器依据BMC-IP地址与IP地址的对应关系,确定与主机1的BMC-IP地址(例如10.100.35.1)对应的第一IP地址(例如192.168.80.1);S407: The deployment server determines the first IP address (such as 192.168.80.1) corresponding to the BMC-IP address (such as 10.100.35.1) of the host 1 according to the corresponding relationship between the BMC-IP address and the IP address;

S408:部署服务器将所述第一IP地址分配给所述主机1,并建立所述第一IP地址与所述主机的MAC地址间的映射关系;S408: The deployment server assigns the first IP address to the host 1, and establishes a mapping relationship between the first IP address and the MAC address of the host;

进一步,可以将此映射关系保存在部署服务器上的配置信息中;Further, this mapping relationship can be saved in the configuration information on the deployment server;

另外,对应该主机的网络配置信息中还包括主机名、网络掩码、网关等配置。In addition, the network configuration information corresponding to the host also includes configurations such as a host name, a network mask, and a gateway.

S409:部署服务器通知主机1上的代理程序重启主机1;S409: the deployment server notifies the agent program on the host 1 to restart the host 1;

S410:主机1重启后,通过PXE过程获得步骤S408中配置信息,并下载miniOS,进行OS的安装。S410: After the host 1 restarts, obtain the configuration information in step S408 through the PXE process, and download the miniOS to install the OS.

从上述过程可以看出,在主机进行OS安装时,使用本发明实施例所述的网络参数分配方法得到的IP地址分配结果,当某个IP地址不可达时,用户可以通过查询对应关系,确定与此IP地址对应的BMC-IP地址,因为BMC-IP地址表示主机的物理位置,所以,用户能够找到此主机。并且,如图4所示,交换机只起到交换信息的作用,而对于IP地址的分配没有实质性的贡献。It can be seen from the above process that when the OS is installed on the host, the IP address allocation result obtained by using the network parameter allocation method described in the embodiment of the present invention, when a certain IP address is unreachable, the user can determine the corresponding relationship by querying the corresponding relationship. The BMC-IP address corresponding to this IP address, because the BMC-IP address indicates the physical location of the host, so the user can find the host. Moreover, as shown in FIG. 4 , the switch only plays the role of exchanging information, but does not make substantial contribution to the allocation of IP addresses.

与上述方法实施例相对应地,本发明实施例还公开了一种部署服务器,如图5所示,包括:Corresponding to the above method embodiments, the embodiment of the present invention also discloses a deployment server, as shown in FIG. 5 , including:

获取模块501,用于获取主机的物理位置标识及所述主机的媒体接入控制地址,所述物理位置标识表示所述主机的物理位置;An obtaining module 501, configured to obtain a physical location identifier of a host and a media access control address of the host, where the physical location identifier indicates the physical location of the host;

确定模块502,用于依据网络参数与物理位置标识的对应关系,确定与所述主机的物理位置标识对应的第一网络参数;A determining module 502, configured to determine a first network parameter corresponding to the physical location identifier of the host according to the correspondence between the network parameter and the physical location identifier;

分配模块503,用于将所述第一网络参数分配给所述主机,并建立所述第一网络参数与所述主机的媒体接入控制地址间的映射关系。The assigning module 503 is configured to assign the first network parameter to the host, and establish a mapping relationship between the first network parameter and the MAC address of the host.

可选地,本实施例所述的装置还可以包括:Optionally, the device described in this embodiment may also include:

接收模块504,用于接收预先配置的网络参数与标识的对应关系。The receiving module 504 is configured to receive the pre-configured correspondence between network parameters and identifiers.

本实施例所述的装置,在网络参数与主机的物理位置间建立起对应关系,当主机出现故障时,依据主机的网络参数能够确定主机的物理位置,从而找到此故障主机,能够便于对其进行维护。The device described in this embodiment establishes a corresponding relationship between the network parameters and the physical location of the host. When the host fails, the physical location of the host can be determined according to the network parameters of the host, so as to find the faulty host and facilitate its identification. for maintenance.

可选地,所述获取模块可以具体为:第一接收单元,用于接收预先发送给所述主机的代理程序发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。Optionally, the obtaining module may specifically be: a first receiving unit configured to receive the physical location identifier of the host and the media access control address of the host that are previously sent to the agent program of the host.

或者,可选地,所述获取模块还可以具体包括:发送单元,用于如果检测到为所述主机分配的临时互联网协议地址可达,则向预先发送给所述主机的代理程序发送查询所述主机的物理位置标识及所述主机的媒体接入控制地址的指令;以及,第二接收单元,用于接收所述代理程序依据所述查询指令发送的所述主机的物理位置标识及所述主机的媒体接入控制地址。Or, optionally, the acquiring module may also specifically include: a sending unit, configured to send the query information to the agent program previously sent to the host if it is detected that the temporary Internet Protocol address assigned to the host is reachable. an instruction of the physical location identifier of the host and the media access control address of the host; and a second receiving unit configured to receive the physical location identifier of the host and the instruction sent by the agent program according to the query instruction The media access control address of the host.

可选地,本实施例中,所述物理位置标识可以包括:Optionally, in this embodiment, the physical location identifier may include:

基板管理控制器-互联网协议地址,每个主机的基板管理控制器-互联网协议地址是根据主机在主机群中的物理位置进行分配的。BMC-IP address, the BMC-IP address of each host is assigned based on the host's physical location in the host farm.

本实施例方法所述的功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算设备可读取存储介质中。基于这样的理解,本发明实施例对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算设备(可以是个人计算机,服务器,移动计算设备或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described in the method of this embodiment are implemented in the form of software function units and sold or used as independent products, they can be stored in a computing device-readable storage medium. Based on this understanding, the part of the embodiment of the present invention that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, the software product is stored in a storage medium, and includes several instructions to make a A computing device (which may be a personal computer, a server, a mobile computing device or a network device, etc.) executes all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes. .

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

CN201310430444.4A2013-09-182013-09-18 A network parameter distribution method and deviceActiveCN103516547B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310430444.4ACN103516547B (en)2013-09-182013-09-18 A network parameter distribution method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310430444.4ACN103516547B (en)2013-09-182013-09-18 A network parameter distribution method and device

Publications (2)

Publication NumberPublication Date
CN103516547A CN103516547A (en)2014-01-15
CN103516547Btrue CN103516547B (en)2017-06-27

Family

ID=49898624

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310430444.4AActiveCN103516547B (en)2013-09-182013-09-18 A network parameter distribution method and device

Country Status (1)

CountryLink
CN (1)CN103516547B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105282263A (en)*2014-06-252016-01-27三亚中兴软件有限责任公司Address configuration method and device and equipment
CN104935462B (en)*2015-06-022018-10-19清华大学A kind of end server disposition method and device
CN105119732A (en)*2015-06-302015-12-02中标软件有限公司Device and method for distributing hosts in cluster environment
CN107659677B (en)*2017-11-072021-03-19湖南长城银河科技有限公司 Device and method for automatic configuration of IP address based on BMC
CN108040131A (en)*2017-11-102018-05-15中国电子科技集团公司第三十二研究所Method for automatically configuring network port address of node management module by whole cabinet server
CN107943664B (en)*2017-12-132020-08-25联想(北京)有限公司Information management method, device and storage medium
CN109992424B (en)*2017-12-292024-04-02北京华胜天成科技股份有限公司Method and device for determining service association relation of local network
CN110677509B (en)*2019-09-092022-04-12无锡江南计算技术研究所Automatic address configuration system suitable for high-performance computer
CN111030875A (en)*2019-12-252020-04-17浪潮商用机器有限公司 A system deployment method, device and computer storage medium for a data center
CN111181787B (en)*2019-12-302023-10-13浪潮电子信息产业股份有限公司 A BMC parameter configuration method, device, equipment and medium
CN113132502B (en)*2019-12-312023-04-07中移互联网有限公司Network host positioning method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1435707A1 (en)*2002-12-312004-07-07AlcatelAutomated voice over IP device VLAN-association Setup
CN1852169A (en)*2006-03-232006-10-25华为技术有限公司Method and system for centralized management of multiple functional units
CN101447894A (en)*2008-12-222009-06-03三一重工股份有限公司Identification of physical address of partial node, network configuration and maintaining method, network system
CN103138968A (en)*2011-11-282013-06-05英业达科技有限公司Server rack system
CN103248717A (en)*2012-02-092013-08-14腾讯科技(深圳)有限公司Method and system for marking geographical position of host

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1435707A1 (en)*2002-12-312004-07-07AlcatelAutomated voice over IP device VLAN-association Setup
CN1852169A (en)*2006-03-232006-10-25华为技术有限公司Method and system for centralized management of multiple functional units
CN101447894A (en)*2008-12-222009-06-03三一重工股份有限公司Identification of physical address of partial node, network configuration and maintaining method, network system
CN103138968A (en)*2011-11-282013-06-05英业达科技有限公司Server rack system
CN103248717A (en)*2012-02-092013-08-14腾讯科技(深圳)有限公司Method and system for marking geographical position of host

Also Published As

Publication numberPublication date
CN103516547A (en)2014-01-15

Similar Documents

PublicationPublication DateTitle
CN103516547B (en) A network parameter distribution method and device
WO2019237588A1 (en)Linux virtual server creation method, device, computer device and storage medium
CN105049502B (en)The method and apparatus that device software updates in a kind of cloud network management system
CN106031116A (en) A method, device and system for associating NS and VNF
CN105591820A (en) A highly scalable container network management system and method
CN107659677B (en) Device and method for automatic configuration of IP address based on BMC
CN104753697A (en)Method, equipment and system for controlling provisioning of network equipment
US20130275588A1 (en)Methods, devices, and systems for allocating ip address
JP2013218687A (en)Server monitoring system and method
CN109445801A (en)A kind of method and apparatus detecting bare machine network interface card information
CN102904977B (en)Network address allocation method, server and node
US11005706B2 (en)Method for configuring forwarding table for user equipment, apparatus, and system
CN104506654A (en)Cloud computing system and backup method of dynamic host configuration protocol server
CN106453690A (en)IP address allocation method and apparatus
WO2016202016A1 (en)Device management method, apparatus and system
CN107341036A (en)A kind of method and apparatus of Remote Installation node operating system
CN104753746A (en)Device accessing method and control server
CN107534678B (en)Method, device and system for establishing connection between VNFM and VIM
CN110493055B (en) FPGA card configuration method, device, system and readable storage medium
CN107070725B (en)A kind of method that server two-level management intermodule communication is shaken hands
CN104243626B (en)Information processing apparatus
CN106453680B (en) Method and device for assigning IP address
CN108259345B (en)Port generation method and device
CN113949628B (en)Automatic equipment adding method and system
CN116069422A (en)Cloud desktop management method, device, equipment and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C41Transfer of patent application or patent right or utility model
TA01Transfer of patent application right

Effective date of registration:20160726

Address after:518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after:Huawei Technologies Co., Ltd.

Address before:Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong

Applicant before:Shenzhen Huawei Technologies Co., Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp