CN105162897A - System and method for allocating IP address for virtual machine and network virtual machine - Google Patents

System and method for allocating IP address for virtual machine and network virtual machine Download PDF

Info

Publication number
CN105162897A
CN105162897A CN201510588923.8A CN201510588923A CN105162897A CN 105162897 A CN105162897 A CN 105162897A CN 201510588923 A CN201510588923 A CN 201510588923A CN 105162897 A CN105162897 A CN 105162897A
Authority
CN
China
Prior art keywords
virtual machine
network
address
instruction
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510588923.8A
Other languages
Chinese (zh)
Inventor
吕广杰
刘正伟
朱波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Group Co Ltd
Original Assignee
Inspur Group 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 Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510588923.8A priority Critical patent/CN105162897A/en
Publication of CN105162897A publication Critical patent/CN105162897A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

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

Abstract

The invention provides a system and a method for allocating an IP address for a virtual machine and a network virtual machine. The system comprises a network management module, a management network, at least one network virtual machine, at least one service network and at least one service virtual machine; the network management module is connected with the at least one network virtual machine; each network virtual machine is connected with the at least one service network; each service network is connected with the at least one service virtual machine; the network management module is used for sending a management instruction through the management network according to an external IP address allocation instruction; each network virtual machine is used for determining the service network connected with per se when receiving the management instruction, allocating IP addresses for the service virtual machines connected with the service network, forming an allocation instruction and sending the allocation instruction through the service network; and each service virtual machine is used for obtaining a corresponding IP address according to the received allocation instruction. The system provided in the scheme can improve the working efficiency of IP address allocation of the virtual machine.

Description

A kind of system of virtual machine IP address assignment, method and network virtual machine
Technical field
The present invention relates to field of computer technology, the system of particularly a kind of virtual machine IP address assignment, method and network virtual machine.
Background technology
Along with the fast development of cloud computing technology, the cloud computing service platform of domestic and international all big enterprises also starts to put into multiple fields such as science, education, culture, health, government, high-performance calculation, ecommerce, Internet of Things one after another and uses.Virtual machine is the basis of cloud computing technology, and user uses the computational resource of cloud computing service platform by virtual machine, along with the continuous increase of cloud computing service platform user, needs to create large batch of virtual machine to meet the user demand of user.
After virtual machine creating completes, need to dispose corresponding application program on a virtual machine, perform corresponding business for user, before disposing application program, need for virtual machine configuration of IP address, to make virtual machine interconnection network.
At present, the method for configuring virtual machine IP address, mainly by the IP address of each virtual machine of keeper's manual configuration, after virtual machine creating completes, keeper logins virtual machine, sets the IP address of this virtual machine.
Due to virtual machine user enormous amount, generally all can create a lot of virtual machines when creating virtual machine simultaneously, if adopt the method for keeper manual configuration virtual machine IP address, keeper is needed to login each virtual machine successively, set the IP address of each virtual machine respectively, the manually method of configuring virtual machine IP address, need the time spending keeper a large amount of, the efficiency of virtual machine IP address assignment work is lower.
Summary of the invention
The invention provides a kind of system of virtual machine IP address assignment, method and network virtual machine, the efficiency of virtual machine IP address assignment work can be improved.
Embodiments provide a kind of system of virtual machine IP address assignment, comprising: network management module, managerial grid, at least one network virtual machine, at least one service network and at least one business virtual machine;
Described network management module is connected with at least one network virtual machine described by described managerial grid;
Each network virtual machine is connected with at least one service network, and each service network is connected with at least one business virtual machine;
Described network management module, for according to outside ip address distribution instruction, sends supervisory instruction;
Described managerial grid, for transmitting described supervisory instruction;
Network virtual machine described in each, for when receiving described supervisory instruction, according to described supervisory instruction, determine coupled described service network, and for be connected with determined described service network each described in business virtual machine distributing IP address, form distribution instruction, and send described distribution instruction;
Service network described in each, for transmitting described distribution instruction;
Described business virtual machine, for according to the described distribution instruction received, obtains corresponding IP address.
Preferably, each network virtual machine described is connected with described network management module by self ethernet management port, managerial grid, and, be connected from different service networks by self different Ethernet service port;
Described network management module, for after receiving described IP address assignment instruction, determines objective network virtual machine, by the ethernet management port of managerial grid, objective network virtual machine, supervisory instruction is sent to objective network virtual machine;
Each network virtual machine, for according to supervisory instruction, determines coupled target service net, by the Ethernet service port that is connected with target service net and target service net, distribution instruction is sent to each corresponding business virtual machine.
Preferably, described network management module, be further used for after receiving described IP address assignment instruction, judge whether to exist Ethernet service port number not reach capacity the network virtual machine of state, if so, send described supervisory instruction to this network virtual machine, if not, create a new network virtual machine, be connected by the ethernet management port of managerial grid with this network virtual machine, and send described supervisory instruction to this network virtual machine.
Preferably, network virtual machine described in each, be further used for after determining coupled service network, determine that coupled service network adds at least one virtual machine port set for described, different described virtual machine port set is connected from the network interface card of different business virtual machines.
Preferably, network virtual machine described in each, for obtaining the MAC Address of the network interface card by business virtual machine described in coupled each of service network, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding, and distribution instruction described in each is sent to described business virtual machine corresponding to MAC Address.
Preferably, described managerial grid is isolated into the different network segments from described service network;
Or,
Described managerial grid and described service network use same cross-talk net.
The embodiment of the present invention additionally provides a kind of network virtual machine, comprising: receiving element, determining unit, allocation units and transmitting element;
Described receiving element, for receiving management instruction;
Described determining unit, for the supervisory instruction received according to described receiving element, determines target service net;
Described allocation units, for each business virtual machine distributing IP address be connected with the target service net that described determining unit is determined, form corresponding distribution instruction;
Described transmitting element, for described allocation units are formed each described in distribution instruction be sent to corresponding described business virtual machine.
Preferably, this network virtual machine comprises further: adding device;
Described adding device, for after described determining unit determination target service net, for described target service net adds at least one virtual machine port set, is connected from the network interface card of different business virtual machines by different described virtual machine port set.
Preferably, described allocation units, for obtaining the MAC Address of the network interface card of business virtual machine described in each, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding;
Described transmitting element, for being sent to described business virtual machine corresponding to MAC Address by distribution instruction described in each.
The embodiment of the present invention additionally provides a kind of method that virtual machine IP way address distributes, and comprising:
Obtain outside ip address distribution instruction;
According to described IP address assignment instruction, send supervisory instruction;
According to described supervisory instruction, determine target service net;
For each business virtual machine distributing IP address be connected with described target service net, form distribution instruction;
Described distribution instruction is sent to corresponding described business virtual machine;
Described business virtual machine, according to described distribution instruction, obtains corresponding IP address.
Preferably, described according to described supervisory instruction, after determining target service net, and described be each business virtual machine distributing IP address be connected with described target service net, before forming distribution instruction, comprise further: for described target service net adds at least one virtual machine port set, the network interface card of different described business virtual machines is connected from virtual machine port set described in different its.
Preferably, described is each virtual machine distributing IP address be connected with described target service net, formation distribution instruction comprises: the MAC Address obtaining the network interface card of business virtual machine described in each, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding;
The described described business virtual machine that described distribution instruction is sent son extremely corresponding comprises: distribution instruction described in each is sent to the described business virtual machine that MAC Address is corresponding.
Embodiments provide a kind of system of virtual machine IP address assignment, method and network virtual machine, network management module is connected with at least one network virtual machine by managerial grid, each network virtual machine is connected with at least one service network, each service network is connected with at least one business virtual machine, after network management module receives point instruction of virtual machine IP address, supervisory instruction is sent to network virtual machine by managerial grid, network virtual machine is after receiving supervisory instruction, determine coupled service network, each business virtual machine is connected in this service network, network virtual machine is for being connected to this each business virtual machine distributing IP address operational, form distribution instruction, distribution instruction is sent to each business virtual machine by service network by network virtual machine, each business virtual machine is according to the distribution instruction received, obtain corresponding IP address, thus the distribution of finishing service virtual machine IP address, like this, after receiving IP address assignment instruction, realizing is each virtual machine distributing IP address automatically, arrange without the need to manually logining each virtual machine successively, improve the efficiency of virtual machine IP address assignment work.
Accompanying drawing explanation
Fig. 1 is the system schematic of a kind of virtual machine IP address assignment that one embodiment of the invention provides;
Fig. 2 is the schematic diagram of a kind of network virtual machine that one embodiment of the invention provides;
Fig. 3 is the method flow diagram of a kind of virtual machine IP address assignment that one embodiment of the invention provides;
Fig. 4 is the method flow diagram of a kind of virtual machine IP address assignment that another embodiment of the present invention provides.
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 embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, one embodiment of the invention provides a kind of system of virtual machine IP address assignment, comprising: network management module 101, managerial grid 102, at least one network virtual machine 103, at least one service network 104 and at least one business virtual machine 105;
Described network management module 101 is connected with at least one network virtual machine 103 described by described managerial grid 102;
Each network virtual machine 103 is connected with at least one service network 104, and each service network 104 is connected with at least one business virtual machine 105;
Described network management module 101, for according to outside ip address distribution instruction, sends supervisory instruction;
Described managerial grid 102, for transmitting described supervisory instruction;
Network virtual machine 103 described in each, for when receiving described supervisory instruction, according to described supervisory instruction, determine coupled described service network 104, and for be connected with determined described service network 104 each described in business virtual machine 105 distributing IP address, form distribution instruction, and send described distribution instruction;
Service network 104 described in each, for transmitting described distribution instruction;
Described business virtual machine 105, for according to the described distribution instruction received, obtains corresponding IP address.
Embodiments provide a kind of system of virtual machine IP address assignment, network management module is connected with at least one network virtual machine by managerial grid, each network virtual machine is connected with at least one service network, each service network is connected with at least one business virtual machine, after network management module receives point instruction of virtual machine IP address, supervisory instruction is sent to network virtual machine by managerial grid, network virtual machine is after receiving supervisory instruction, determine coupled service network, each business virtual machine is connected in this service network, network virtual machine is for being connected to this each business virtual machine distributing IP address operational, form distribution instruction, distribution instruction is sent to each business virtual machine by service network by network virtual machine, each business virtual machine is according to the distribution instruction received, obtain corresponding IP address, thus the distribution of finishing service virtual machine IP address, like this, after receiving IP address assignment instruction, realizing is each virtual machine distributing IP address automatically, arrange without the need to manually logining each virtual machine successively, improve the efficiency of virtual machine IP address assignment work.
In an embodiment of the invention, each network virtual machine comprises an ethernet management port and multiple Ethernet service port, network virtual machine is connected with managerial grid by the ethernet management port of self, and then be connected with network management module, and, network virtual machine is connected from different service networks by self different Ethernet service port, after network management module receives IP address assignment instruction, determine an objective network virtual machine, by the ethernet management port of managerial grid and objective network virtual machine, supervisory instruction is sent to objective network virtual machine, objective network virtual machine is after receiving supervisory instruction, determine that one by the coupled target service net of Ethernet service port, this target service net is connected with the business virtual machine of each IP address to be allocated, objective network virtual machine is by the business virtual machine transmission distribution instruction of target service net to each IP address to be allocated, create hub-and-spoke network topology in this way, realize the unified management of the virtual machine in multiple service network, and be easy to expand more virtual machine, improve overall control ability that is virtual and IP address assignment.
In an embodiment of the invention, Ethernet service port number for each network virtual machine arranges a maximum, when Ethernet service port reaches this maximum, the Ethernet service port number of network virtual machine reaches capacity state, after network management module receives IP address assignment instruction, network management module judges whether to exist in current each network virtual machine coupled by managerial grid Ethernet service port number and not to reach capacity the network virtual machine of state, if existed, this Ethernet service port number supervisory instruction is sent to not reach capacity the network virtual machine of state, be business virtual machine distributing IP address by this network virtual machine, if there is no, then create a new network virtual machine by network management module, the ethernet management port of the network virtual machine of this new establishment self is connected with managerial grid, supervisory instruction is sent to the network virtual machine of this new establishment by network management module, when avoiding a network virtual machine to connect too much service network like this, because network congestion causes the situation of virtual machine IP address assignment exception to occur, improve the stability of virtual machine IP address assignment.
In an embodiment of the invention, after coupled service network determined by network virtual machine, network virtual machine is this service network interpolation virtual machine port set, the number of virtual machine port set is identical with the number of the network interface card of the business virtual machine of IP address to be allocated, after virtual machine port set has been added, the network interface card of different virtual machine port set from different business virtual machines is connected, like this, realize being connected of network virtual machine and business virtual machine, and ensure effective utilization of resource.
In an embodiment of the invention, network virtual machine obtains the MAC Address of the network interface card of each coupled business virtual machine by service network, for each MAC Address distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding, and each distribution instruction is sent on the business virtual machine corresponding with MAC Address, like this, ensure that the IP address distributing to each virtual machine is different, avoid the situation of virtual machine IP address conflict to occur, improve the accuracy of virtual machine IP address assignment.
In an embodiment of the invention, managerial grid can be isolated into the different network segments from service network, namely managerial grid is not connected with service network, also same cross-talk net can be used, namely managerial grid is connected with service network, different internetwork connection modes can be met like this, to adapt to different use fields, expand the scope of application of this virtual machine IP address assignment system.
As shown in Figure 2, one embodiment of the invention provides a kind of network virtual machine, comprising: receiving element 201, determining unit 202, allocation units 203 and transmitting element 204;
Described receiving element 201, for receiving management instruction;
Described determining unit 202; For the supervisory instruction received according to described receiving element 201, determine target service net;
Described allocation units 203, for each business virtual machine distributing IP address be connected with the target service net that described determining unit 202 is determined, form corresponding distribution instruction;
Described transmitting element 204, for described allocation units 203 are formed each described in distribution instruction be sent to corresponding described business virtual machine.
Embodiments provide a kind of network virtual machine, by the instruction of receiving element receiving management, after receiving supervisory instruction, a target service net be connected with transmitting element is created by determining unit, for each business virtual machine configuration of IP address be connected with this target service net, form corresponding distribution instruction, the distribution instruction of formation is sent to each business virtual machine be connected with target service net by transmitting element, in this way, be embodied as virtual machine automatic IP address allocation, without the need to by manually arranging virtual machine one by one, improve the efficiency of virtual machine IP address assignment work.
In an embodiment of the invention, network virtual machine further comprises adding device, after determining unit establishment target service net completes, adding device is that target service net adds virtual machine port set, wherein the quantity of virtual machine port set is identical with the quantity of business virtual machine, the network interface card of virtual machine port set with business virtual machine is connected, the network interface card of the corresponding virtual machine of one of them virtual machine port set, by service network, each business virtual machine is connected with network virtual machine like this, and ensure the corresponding virtual machine port set of each business virtual machine, realize the Appropriate application of resource.
In an embodiment of the invention, allocation units obtain the MAC Address of the network interface card of each business virtual machine be connected with target service net, for each MAC Address distributes an IP address, the IP address that each MAC Address is corresponding different, by MAC Address and IP address binding, form multiple distribution instruction, each distribution instruction is sent to business virtual machine corresponding to MAC Address by transmitting element, and then business virtual machine obtains IP address according to distribution instruction, complete the distribution of virtual machine IP address, like this, the corresponding IP address of the network interface card of each virtual machine can be ensured, avoid virtual machine network interface card IP address identical, the situation appearance causing virtual machine to network wrong, improve the accuracy of virtual machine IP address assignment.
As shown in Figure 3, one embodiment of the invention provides a kind of method flow diagram of virtual machine IP address assignment, comprising:
Step 301: obtain outside ip address distribution instruction;
Step 302: according to described IP address assignment instruction, send supervisory instruction;
Step 303: according to described supervisory instruction, determines target service net;
Step 304: be each business virtual machine distributing IP address be connected with described target service net, forms distribution instruction;
Step 305: described distribution instruction is sent to corresponding described business virtual machine;
Step 306: described business virtual machine, according to described distribution instruction, obtains corresponding IP address.
Embodiments provide a kind of method of virtual machine IP address assignment, after receiving the instruction of distributing IP address, generate supervisory instruction, according to supervisory instruction, for business virtual machine determines a service network, it is each business virtual machine distributing IP address be connected with this service network by service network, the result of distributing is formed distribution instruction, by service network, each distribution instruction is sent to corresponding business virtual machine, business virtual machine is according to the sort instructions received, obtain corresponding IP address, thus realize the automatic distribution of virtual machine IP address, without the need to being manually configured virtual machine one by one, improve the efficiency of virtual machine IP address assignment work.
In an embodiment of the invention, after creating corresponding target service net, virtual machine port set is added on the net in this target service, the quantity of virtual machine port set is identical with the number of the network interface card of the business virtual machine of IP address to be allocated, the network interface card of the corresponding business virtual machine of each virtual machine port, be connected with the network interface card of business virtual machine, realize the connection with business virtual machine, ensure the Appropriate application of resource.
In an embodiment of the invention, the MAC Address of the network interface card of each IP address to be allocated business virtual machine is obtained by target service net, for each MAC Address distributes an IP address, the IP address that wherein each MAC Address is corresponding is all not identical, form the distribution instruction of MAC Address and IP address binding, each distribution instruction is sent to business virtual machine corresponding to MAC Address by target service net, business virtual machine obtains corresponding IP address according to the distribution instruction received, thus realize the distribution of virtual machine IP address, like this, can ensure that the IP address of the network interface card of each virtual machine is all not identical, avoid the situation appearance causing virtual machine to network abnormal because IP address is identical, improve the accuracy of virtual machine IP address assignment.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the system of the virtual machine IP address assignment that the embodiment of the present invention shown in Fig. 1 provides, the method for virtual machine IP address assignment is described in further detail.
As shown in Figure 4, one embodiment of the invention provides a kind of method of virtual machine IP address assignment, comprising:
Step 401: network management module receives outside ip address distribution instruction;
In an embodiment of the invention, after the new virtual machine of establishment completes, when needing the new virtual machine distributing IP address created, user sends IP address assignment instruction to network management module.Such as, newly create 100 virtual machines, be respectively virtual machine 1 to virtual machine 100, user sends the instruction into these 100 virtual machine distributing IP addresses to network management module.
Step 402: network management module judges whether to exist Ethernet service port number and not reach capacity the network virtual machine of state, if so, performs step 403, otherwise performs step 404;
In an embodiment of the invention, the maximum number of the corresponding Ethernet service port of each network virtual machine is set, when the number of Ethernet service port corresponding to network virtual machine reaches maximum number, the Ethernet service port number that this network virtual machine is corresponding reaches capacity state, judge whether to exist Ethernet service port number by network management module not reach capacity the network virtual machine of state, if existed, illustrate and existing network virtual machine can also arrange Ethernet service port, service network can be created on existing network virtual machine, corresponding execution step 403, if there is no, illustrate that existing network virtual machine can not arrange Ethernet service port again, need to create new network virtual machine, corresponding execution step 404.Such as, the maximum number arranging the corresponding Ethernet service port of network virtual machine is 5, currently have 2 network virtual machines and be connected with network management module by managerial grid, be respectively network virtual machine 1 and network virtual machine 2, if network virtual machine 1 and network virtual machine 2 are provided with 5 Ethernet service ports, Ethernet service port number due to network virtual machine 1 and network virtual machine 2 correspondence all reaches capacity state, current network virtual machine cannot arrange Ethernet service port, corresponding execution step 404, if the number of the Ethernet service port that network virtual machine 1 is arranged is 5, the number of the Ethernet service port that network virtual machine 2 is arranged is 3, Ethernet service port number due to network virtual machine 2 correspondence does not reach capacity state, can continue to arrange Ethernet service port on network virtual machine 2, corresponding execution step 403.
Step 403: the network virtual machine of the state that do not reached capacity by Ethernet service port number is as objective network virtual machine, and network management module sends supervisory instruction to objective network virtual machine, and performs step 405;
In an embodiment of the invention, if each network virtual machine be connected with network management module current comprises corresponding Ethernet service port number and not to reach capacity the network virtual machine of state, the network virtual machine of the state that do not reached capacity by Ethernet service port number is as objective network virtual machine, network management module is according to the outside ip address distribution instruction received, supervisory instruction is sent to objective network virtual machine, and corresponding execution step 405.Such as, the number of the Ethernet service port that network virtual machine 2 is arranged is 3, the Ethernet service port number of network virtual machine 2 correspondence does not reach capacity state, using network virtual machine 2 as objective network virtual machine, network management module is sent as the supervisory instruction of 100 virtual machine distributing IP addresses to network virtual machine 2.
Step 404: network management module creates a new network virtual machine, using the network virtual machine that newly creates as objective network virtual machine, sends supervisory instruction to objective network virtual machine.
In an embodiment of the invention, if the Ethernet service port number that each network virtual machine be connected with network management module current is corresponding all reaches capacity state, network management module creates a new network virtual machine as objective network virtual machine, the network virtual machine of this new establishment passes through self ethernet management port and managerial grid, be connected with network management module, after establishment completes, network management module sends supervisory instruction to this objective network virtual machine.Such as, network virtual machine 1 and network virtual machine 2 are provided with 5 Ethernet service ports, the Ethernet service port number of network virtual machine 1 and network virtual machine 2 correspondence all reaches capacity state, new Ethernet service port cannot be set on network virtual machine 1 or network virtual machine 2, network management module creates a new network virtual machine 3 as objective network virtual machine, network virtual machine 3 is connected with managerial grid by the ethernet management port of self, and then be connected with network management module, after network virtual machine 3 has created, network management module is sent as the supervisory instruction of 100 virtual machine distributing IP addresses to network virtual machine 3.
Step 405: objective network virtual machine, according to supervisory instruction, creates the target service net be connected with its Ethernet service port.
In an embodiment of the invention, after objective network virtual machine receives the supervisory instruction of network management module transmission, according to supervisory instruction, create a coupled target service net, and from arranging a new Ethernet service port with it, the new target service Netcom created crosses newly-installed Ethernet service port and is connected with objective network virtual machine.Such as, for convenience of describing, network virtual machine 2 and the new network virtual machine 3 created of the state that hereinafter do not reached capacity by Ethernet service port number are referred to as network virtual machine 4, a new service network 1 is created by network virtual machine 4, network virtual machine 4 arranges a new Ethernet service port on itself, and service network 1 is connected with network virtual machine 4 by this Ethernet service port.
Step 406: objective network virtual machine is that target service net adds virtual machine port set, and is connected with virtual machine port set by the network interface card of the business virtual machine of IP address to be allocated.
In an embodiment of the invention, after target service net has created by objective network virtual machine, the supervisory instruction that objective network virtual machine sends according to network management module, virtual machine port set is added on the net in target service, the number of virtual machine port set is identical with the number of business virtual machine, after virtual machine port set has been added, the network interface card of virtual machine port set with business virtual machine is connected, the network interface card of a corresponding business virtual machine of virtual machine port set.Such as, what network virtual machine 4 sent according to network management module is the supervisory instruction of 100 virtual machine distributing IP addresses, service network 1 adds 100 virtual machine port set, be respectively virtual machine port set 1 to virtual machine port set 100, the each virtual machine of virtual machine 1 to virtual machine 100 comprises a network interface card, virtual machine port set 1 to virtual machine port set 100 is connected with the network interface card of virtual machine 1 to virtual machine 100 respectively, the corresponding virtual machine of each virtual machine port set, the virtual machine port set of 100 virtual machines by respective network interface card and correspondence is connected with service network.
Step 407: the unoccupied IP address that network management module chooses respective amount from self IP address base sends to objective network virtual machine, and by the unoccupied IP address designation chosen for occupied.
In an embodiment of the invention, network management module comprises IP address base, IP address base comprises all occupied IP addresses and unoccupied IP address, the unoccupied IP address identical with the network interface card number of IP address virtual machine to be allocated is selected in network management module secondary IP address storehouse, each selected IP address is sent to objective network virtual machine by managerial grid, after being sent completely, each selected unoccupied IP is designated occupied by network management module.Such as, 100 unoccupied IP addresses are selected in network management module secondary IP address storehouse, be respectively 1 to IP address, IP address 100, these 100 unoccupied IP addresses are sent to network virtual machine 4, after being sent completely, these 100 unoccupied IP address designations are occupied by network management module.
Step 408: objective network virtual machine obtains the MAC Address of the network interface card of each business virtual machine, for each MAC Address distributes an IP address, forms the distribution instruction of MAC Address and IP address binding.
In an embodiment of the invention, objective network virtual machine obtains the MAC Address of the network interface card of each business virtual machine by target service net, each MAC Address is given in the IP address assignment of being sent by network management module, the corresponding IP address of each MAC Address, bind by each MAC Address and with the IP address of its pairing, form the distribution instruction of MAC Address and IP address binding.Such as, network virtual machine 4 obtains the MAC Address of each network interface card on virtual machine 1 to virtual machine 100 by target service net, get 100 MAC Address altogether, be respectively MAC Address 1 to MAC Address 100, correspond respectively to the network interface card on virtual machine 1 to virtual machine 100, 100 IP address assignments that network management module is sent these 100 MAC Address each, MAC Address 1 to MAC Address 100 is 1 to IP address, corresponding IP address 100 respectively, MAC Address after pairing and IP address are bound, form the distribution instruction of MAC Address and IP address binding, MAC Address 1 and IP address 1 are bound and are formed distribution instruction 1, MAC Address 2 and IP address 2 are bound and are formed distribution instruction 2, MAC Address 100 and IP address 100 are bound and are formed distribution instruction 100.
Step 409: each distribution instruction is sent to corresponding business virtual machine by objective network virtual machine.
In an embodiment of the invention, the MAC Address that objective network virtual machine is corresponding according to each distribution instruction, is sent to the business virtual machine at network interface card place corresponding to MAC Address by target service net by each distribution instruction.Such as, network virtual machine 4 is by target service net, distribution instruction 1 is sent to the virtual machine 1 at the network interface card place of MAC Address 1 correspondence, distribution instruction 2 is sent to the virtual machine 2 at the network interface card place of MAC Address 2 correspondence,, distribution instruction 100 is sent to the virtual machine 100 at the network interface card place of MAC Address 100 correspondence.
Step 410: the distribution instruction that business virtual machine sends according to objective network virtual machine, obtains corresponding IP address.
In an embodiment of the invention, each business virtual machine, after receiving the distribution instruction that target virtual machine sends, obtains the IP address in district according to distribution instruction, this IP address is set to the IP address of corresponding network interface card.Such as, virtual machine 1, after receiving the distribution instruction 1 that network virtual machine 4 sends, therefrom obtains IP address 1, IP address 1 is set to the IP address of virtual machine 1 card of surfing Internet; Virtual machine 2, after receiving the distribution instruction 2 that network virtual machine 4 sends, therefrom obtains IP address 2, IP address 2 is set to the IP address of virtual machine 2 card of surfing Internet; Virtual machine 100, after receiving the distribution instruction 100 that network virtual machine 4 sends, therefrom obtains IP address 100, IP address 100 is set to the IP address of virtual machine 100 card of surfing Internet.
It should be noted that, when business virtual machine stop using and releasing IP addresses time, network virtual machine remove want the MAC Address of the network interface card of releasing IP addresses virtual machine and the binding of IP address, network management module will relieve the IP address designation of binding for not used.
It should be noted that further, managerial grid and service network can be isolated into the different network segments, also can use same cross-talk net.
According to such scheme, the system of a kind of virtual machine IP address assignment that embodiments of the invention provide, method and network virtual machine, at least have following beneficial effect:
1, in the embodiment of the present invention, network management module is connected with at least one network virtual machine by managerial grid, each network virtual machine is connected with at least one service network, each service network is connected with at least one business virtual machine, after network management module receives point instruction of virtual machine IP address, supervisory instruction is sent to network virtual machine by managerial grid, network virtual machine is after receiving supervisory instruction, determine coupled service network, each business virtual machine is connected in this service network, network virtual machine is for being connected to this each business virtual machine distributing IP address operational, form distribution instruction, distribution instruction is sent to each business virtual machine by service network by network virtual machine, each business virtual machine is according to the distribution instruction received, obtain corresponding IP address, thus the distribution of finishing service virtual machine IP address, like this, after receiving IP address assignment instruction, realizing is each virtual machine distributing IP address automatically, arrange without the need to manually logining each virtual machine successively, improve the efficiency of virtual machine IP address assignment work.
2, in the embodiment of the present invention, by managerial grid, service network, network management module, network virtual machine and business virtual machine are coupled together, form hub-and-spoke network topology, by total control construction to dividing, more business virtual machine can be expanded by interpolation network virtual machine and service network, be convenient to the management to virtual machine IP address, improve the control to virtual machine IP address management.
3, in the embodiment of the present invention, there is a maximum in the number that each network virtual machine connects service network, when reaching this maximum, network virtual machine can not continue to connect service network again, needs to create new network virtual machine, like this, control the data traffic of each network virtual machine, avoid connecting service network number too many, cause network virtual machine I/O data to block, the normal execution of application virtual machine IP address assignment work, improves the stability of virtual machine IP address assignment.
4, in the embodiment of the present invention, by obtaining the MAC Address of each virtual machine network interface card, for each MAC Address distributes different IP addresses, because MAC Address is the unique mark of virtual machine network interface card, by the mode of this distributing IP address, ensure that the IP address distributing to each virtual machine network interface card is different, avoid causing conflict because virtual machine network interface card IP address is identical, the situation appearance causing virtual machine to network abnormal, improves the accuracy of virtual machine IP address assignment.
5, in the embodiment of the present invention, when network management module by IP address assignment to virtual machine after, by the IP address designation that dispenses for be used, avoid same IP address to be reused and cause the situation of IP address conflict to occur, and after virtual machine releasing IP addresses, again by IP address designation for not used, reusing of IP address can be realized like this, make rational use of resources.
6, in the embodiment of the present invention, managerial grid can be isolated into the different network segments from service network, namely managerial grid is not connected with service network, also same cross-talk net can be used, namely managerial grid is connected with service network, different internetwork connection modes can be met like this, to adapt to different use fields, expand the scope of application of this virtual machine IP address assignment system.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a system for virtual machine IP address assignment, is characterized in that, comprising: network management module, managerial grid, at least one network virtual machine, at least one service network and at least one business virtual machine;
Described network management module is connected with at least one network virtual machine described by described managerial grid;
Each network virtual machine is connected with at least one service network, and each service network is connected with at least one business virtual machine;
Described network management module, for according to outside ip address distribution instruction, sends supervisory instruction;
Described managerial grid, for transmitting described supervisory instruction;
Network virtual machine described in each, for when receiving described supervisory instruction, according to described supervisory instruction, determine coupled described service network, and for be connected with determined described service network each described in business virtual machine distributing IP address, form distribution instruction, and send described distribution instruction;
Service network described in each, for transmitting described distribution instruction;
Described business virtual machine, for according to the described distribution instruction received, obtains corresponding IP address.
2. system according to claim 1, it is characterized in that, each network virtual machine described is connected with described network management module by self ethernet management port, managerial grid, and, be connected from different service networks by self different Ethernet service port;
Described network management module, for after receiving described IP address assignment instruction, determines objective network virtual machine, by the ethernet management port of managerial grid, objective network virtual machine, supervisory instruction is sent to objective network virtual machine;
Each network virtual machine, for according to supervisory instruction, determines coupled target service net, by the Ethernet service port that is connected with target service net and target service net, distribution instruction is sent to each corresponding business virtual machine.
3. system according to claim 2, is characterized in that,
Described network management module, be further used for after receiving described IP address assignment instruction, judge whether to exist Ethernet service port number not reach capacity the network virtual machine of state, if, send described supervisory instruction to this network virtual machine, if not, create a new network virtual machine, be connected by the ethernet management port of managerial grid with this network virtual machine, and send described supervisory instruction to this network virtual machine.
4. system according to claim 1, is characterized in that,
Network virtual machine described in each, be further used for after determining coupled service network, determine that coupled service network adds at least one virtual machine port set for described, different described virtual machine port set is connected from the network interface card of different business virtual machines.
5. system according to claim 4, is characterized in that,
Network virtual machine described in each, for obtaining the MAC Address of the network interface card by business virtual machine described in coupled each of service network, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding, and distribution instruction described in each is sent to described business virtual machine corresponding to MAC Address.
6., according to the arbitrary described system of claim 1 to 5, it is characterized in that,
Described managerial grid is isolated into the different network segments from described service network;
Or,
Described managerial grid and described service network use same cross-talk net.
7. a network virtual machine, is characterized in that, comprising: receiving element, determining unit, allocation units and transmitting element;
Described receiving element, for receiving management instruction;
Described determining unit, for the supervisory instruction received according to described receiving element, determines target service net;
Described allocation units, for each business virtual machine distributing IP address be connected with the target service net that described determining unit is determined, form corresponding distribution instruction;
Described transmitting element, for described allocation units are formed each described in distribution instruction be sent to corresponding described business virtual machine.
8. network virtual machine according to claim 7, is characterized in that, comprise further: adding device;
Described adding device, for after described determining unit determination target service net, for described target service net adds at least one virtual machine port set, is connected from the network interface card of different business virtual machines by different described virtual machine port set;
And/or,
Described allocation units, for obtaining the MAC Address of the network interface card of business virtual machine described in each, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding;
Described transmitting element, for being sent to described business virtual machine corresponding to MAC Address by distribution instruction described in each.
9. a method for virtual machine IP address assignment, is characterized in that, comprising:
Obtain outside ip address distribution instruction;
According to described IP address assignment instruction, send supervisory instruction;
According to described supervisory instruction, determine target service net;
For each business virtual machine distributing IP address be connected with described target service net, form distribution instruction;
Described distribution instruction is sent to corresponding described business virtual machine;
Described business virtual machine, according to described distribution instruction, obtains corresponding IP address.
10. method according to claim 9, is characterized in that,
Described according to described supervisory instruction, after determining target service net, and described be each business virtual machine distributing IP address be connected with described target service net, before forming distribution instruction, comprise further: for described target service net adds at least one virtual machine port set, the network interface card of different described business virtual machines is connected from virtual machine port set described in different its;
And/or,
Described is each virtual machine distributing IP address be connected with described target service net, formation distribution instruction comprises: the MAC Address obtaining the network interface card of business virtual machine described in each, for MAC Address described in each distributes different IP addresses, form the distribution instruction of MAC Address and IP address binding;
The described described business virtual machine that described distribution instruction is sent son extremely corresponding comprises: distribution instruction described in each is sent to the described business virtual machine that MAC Address is corresponding.
CN201510588923.8A 2015-09-16 2015-09-16 System and method for allocating IP address for virtual machine and network virtual machine Pending CN105162897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510588923.8A CN105162897A (en) 2015-09-16 2015-09-16 System and method for allocating IP address for virtual machine and network virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510588923.8A CN105162897A (en) 2015-09-16 2015-09-16 System and method for allocating IP address for virtual machine and network virtual machine

Publications (1)

Publication Number Publication Date
CN105162897A true CN105162897A (en) 2015-12-16

Family

ID=54803649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510588923.8A Pending CN105162897A (en) 2015-09-16 2015-09-16 System and method for allocating IP address for virtual machine and network virtual machine

Country Status (1)

Country Link
CN (1) CN105162897A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713520A (en) * 2016-11-29 2017-05-24 上海斐讯数据通信技术有限公司 Method for configuring network addresses in batches, and terminal management system
CN107360041A (en) * 2017-08-18 2017-11-17 郑州云海信息技术有限公司 A kind of network management and device
CN108259634A (en) * 2017-07-14 2018-07-06 新华三云计算技术有限公司 A kind of virtual machine MAC Address multiplexing method and device
CN109697109A (en) * 2018-12-27 2019-04-30 深信服科技股份有限公司 A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN109729182A (en) * 2017-10-31 2019-05-07 中国电信股份有限公司 Network address assignment method, system and the VNFM of virtual network function
CN113162944A (en) * 2021-04-29 2021-07-23 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
US20230370453A1 (en) * 2022-05-13 2023-11-16 Cisco Technology, Inc. Authentication and enforcement of differentiated policies for a bridge mode virtual machine behind a wireless host in a mac based authentication network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315968A (en) * 2011-09-19 2012-01-11 华中科技大学 Network configuration method in virtual machine environment
CN102710814A (en) * 2012-06-21 2012-10-03 奇智软件(北京)有限公司 Method and device for controlling Internet protocol (IP) address of virtual machine
WO2015009318A1 (en) * 2013-07-19 2015-01-22 Hewlett-Packard Development Company, L.P. Virtual machine resource management system and method thereof
CN104796469A (en) * 2015-04-15 2015-07-22 北京中油瑞飞信息技术有限责任公司 Method and device for configuring cloud computing platforms

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315968A (en) * 2011-09-19 2012-01-11 华中科技大学 Network configuration method in virtual machine environment
CN102710814A (en) * 2012-06-21 2012-10-03 奇智软件(北京)有限公司 Method and device for controlling Internet protocol (IP) address of virtual machine
WO2015009318A1 (en) * 2013-07-19 2015-01-22 Hewlett-Packard Development Company, L.P. Virtual machine resource management system and method thereof
CN104796469A (en) * 2015-04-15 2015-07-22 北京中油瑞飞信息技术有限责任公司 Method and device for configuring cloud computing platforms

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713520A (en) * 2016-11-29 2017-05-24 上海斐讯数据通信技术有限公司 Method for configuring network addresses in batches, and terminal management system
CN108259634A (en) * 2017-07-14 2018-07-06 新华三云计算技术有限公司 A kind of virtual machine MAC Address multiplexing method and device
CN107360041A (en) * 2017-08-18 2017-11-17 郑州云海信息技术有限公司 A kind of network management and device
CN109729182A (en) * 2017-10-31 2019-05-07 中国电信股份有限公司 Network address assignment method, system and the VNFM of virtual network function
CN109729182B (en) * 2017-10-31 2022-01-18 中国电信股份有限公司 Network address allocation method and system of virtual network function and VNFM
CN109697109A (en) * 2018-12-27 2019-04-30 深信服科技股份有限公司 A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN109697109B (en) * 2018-12-27 2023-09-05 深信服科技股份有限公司 Method, system, device and storage medium for distinguishing and identifying conflict virtual machines
CN113162944A (en) * 2021-04-29 2021-07-23 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
CN113162944B (en) * 2021-04-29 2022-08-02 杭州安恒信息安全技术有限公司 Network communication method, device and equipment for security operation platform and security component
US20230370453A1 (en) * 2022-05-13 2023-11-16 Cisco Technology, Inc. Authentication and enforcement of differentiated policies for a bridge mode virtual machine behind a wireless host in a mac based authentication network

Similar Documents

Publication Publication Date Title
CN105162897A (en) System and method for allocating IP address for virtual machine and network virtual machine
US11704144B2 (en) Creating virtual machine groups based on request
JP6323733B2 (en) System and method for zoning in a software defined network
CN103703724B (en) Resource payment method
CN101404596B (en) Multi-topological environmental test method, system and equipment
CN103560967B (en) The virtual data center mapping method of a kind of business demand perception
CN103797463A (en) Method and apparatus for assignment of virtual resources within a cloud environment
CN103475722A (en) Implement system for business collaboration platform
CN102185706B (en) Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph
CN105515977B (en) Method, device and system for acquiring transmission path in network
TWI539776B (en) Dynamic planning method for server resources of data center
CN105099953A (en) Cloud data center virtual network isolation method and device
CN104618147A (en) Longitudinally stacked system management method and system
CN112448831B (en) Network management method and equipment
CN105099950A (en) Resource allocation method, message communication method and devices
CN103152200A (en) Migration method of virtual machine, switch, network management equipment and network system
CN104484279A (en) Centralized storage over-allotment using method suitable for cloud computing
CN102256362A (en) Link allocation method for multi-channel wireless network
CN104869011A (en) Circuit dispatching method and circuit dispatching device
CN103260196B (en) A kind of control method of transmission bandwidth, Apparatus and system
CN101420354B (en) Multicast spreading method oriented to wide area network remote virtual environment
CN105589749A (en) Method and device for allocating network IP resources in cloud computing environment
CN106713164A (en) System, method and apparatus for balancing flow between switch ports
CN105593814A (en) Method, apparatus and system for home management device virtualization
CN104270299A (en) Method and system for virtual network mapping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151216

WD01 Invention patent application deemed withdrawn after publication