CN111614790B - Virtual machine address configuration system, method and device - Google Patents

Virtual machine address configuration system, method and device Download PDF

Info

Publication number
CN111614790B
CN111614790B CN201910141761.1A CN201910141761A CN111614790B CN 111614790 B CN111614790 B CN 111614790B CN 201910141761 A CN201910141761 A CN 201910141761A CN 111614790 B CN111614790 B CN 111614790B
Authority
CN
China
Prior art keywords
network card
virtual machine
address information
card
network
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
CN201910141761.1A
Other languages
Chinese (zh)
Other versions
CN111614790A (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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201910141761.1A priority Critical patent/CN111614790B/en
Publication of CN111614790A publication Critical patent/CN111614790A/en
Application granted granted Critical
Publication of CN111614790B publication Critical patent/CN111614790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • 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/5046Resolving address allocation conflicts; Testing of addresses

Abstract

The embodiment of the application provides a virtual machine address configuration system, method and device, wherein when a virtual machine is established, a virtualization platform acquires network card information of the virtual machine; the virtualization platform determines a main network card needing to be configured with a gateway route and a sub network card not needing to be configured with the gateway route according to the network card information when the number of the network cards to be configured in the virtual machine is more than one; the virtualization platform determines the address information of the main network card and the address information of the subnet card, and sends the address information of the main network card and the address information of the subnet card to the DHCP server; after acquiring the configuration request sent by the network card of the virtual machine, the DHCP server returns corresponding address information to the network card of the virtual machine according to the identification of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration. Communication faults caused by gateway routing configuration conflicts of the multi-network card virtual machine can be reduced.

Description

Virtual machine address configuration system, method and device
Technical Field
The present application relates to the field of computer virtualization technologies, and in particular, to a system, a method, and an apparatus for virtual machine address configuration.
Background
A DHCP (Dynamic Host Configuration Protocol) server is used as a tool for performing address allocation management of a virtual machine IP (Internet Protocol) in a virtualization environment, and is widely used in management platforms of various cloud computing, DNSmasq is used as an open-source lightweight DNS (Domain Name System) forwarding and DHCP, TFTP (simple File Transfer Protocol) server, is designed for small-sized local area networks such as home local area networks, has low resource occupation and is easy to configure, and can provide functions such as DHCP, DNS, static routing and the like for virtual machines in the platforms.
In order to facilitate management of an IP address in a virtualization environment, a virtualization platform configures a static IP address and a gateway route in a DHCP server for different network segments, so that a virtual machine applies for an IP and a route from the DHCP server, and a request process is shown in fig. 1. However, when the virtual machine includes a plurality of network cards of different network segments, each network card receives the gateway route of the corresponding network segment from the DHCP server when acquiring the IP from the DHCP server. Because only one default route can be configured in the system, the received multiple gateway routes cause the conflict of the default route configuration, and particularly in a virtual machine with a coexisting private network and an external network, the default gateway route configuration is configured as the private network route, so that the virtual machine cannot carry out external network communication.
Disclosure of Invention
The embodiment of the application aims to provide a virtual machine address configuration system, a virtual machine address configuration method and a virtual machine address configuration device, so that communication faults of a multi-network card virtual machine are reduced. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a virtual machine address configuration system, where the system includes:
the virtualization platform and the dynamic host set a protocol DHCP server;
when a virtual machine is created, the virtualization platform acquires network card information of the virtual machine;
the virtualization platform determines a main network card needing to be configured with a gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one according to the network card information, wherein the number of the main network cards is one;
the virtualization platform determines the address information of the main network card and the address information of the sub-network card, and sends the address information of the main network card and the address information of the sub-network card to the DHCP server;
after the DHCP server obtains the configuration request sent by the network card of the virtual machine, corresponding address information is returned to the network card of the virtual machine according to the identification of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, the determining, by the virtualization platform, according to the network card information, that the number of network cards to be configured in the virtual machine is greater than one, a master network card that needs to configure a gateway route and a subnet card that does not need to configure a gateway route includes:
the virtualization platform determines the number of network cards to be configured in the virtual machine according to the network card information;
and when the number of the network cards to be configured in the virtual machine is more than one, the virtualization platform determines a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine.
Optionally, the virtualization platform is further configured to:
when the number of the network cards to be configured in the virtual machine is one, determining address information of the network cards of the virtual machine, and sending the address information of the network cards of the virtual machine to the DHCP server, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network cards of the virtual machine comprises gateway routing.
Optionally, after acquiring the configuration request sent by the network card of the virtual machine, the DHCP server returns corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, including:
after the DHCP server acquires the configuration request sent by the main network card, the DHCP server returns the address information of the main network card carrying the gateway route according to the identification of the main network card;
and after acquiring the configuration request sent by the subnet card, the DHCP server returns the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card.
Optionally, the returning address information of the sub-network card, which does not carry the gateway route, according to the identifier of the sub-network card includes:
the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled;
and returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
In a second aspect, an embodiment of the present application provides a virtual machine address configuration method, where the method includes:
when a virtual machine is created, network card information of the virtual machine is acquired;
according to the network card information, when the number of the network cards to be configured in the virtual machine is more than one, determining a main network card needing to be configured with the gateway route and a sub-network card not needing to be configured with the gateway route, wherein the number of the main network cards is one;
determining the address information of the main network card and the address information of the sub-network card;
and sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server completes the address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card.
Optionally, the method for configuring the address of the virtual machine according to the embodiment of the present application further includes:
when the number of the network cards required to be configured by the virtual machine is one, determining address information of the network cards of the virtual machine, and sending the address information of the network cards of the virtual machine to the DHCP server, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network cards of the virtual machine comprises gateway routing.
Optionally, according to the network card information, when the number of the network cards to be configured in the virtual machine is greater than one, determining a master network card that needs to configure a gateway route and a subnet card that does not need to configure the gateway route, including:
determining the number of network cards to be configured in the virtual machine according to the network card information;
and when the number of the network cards to be configured in the virtual machine is more than one, determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine.
In a third aspect, an embodiment of the present application provides a virtual machine address configuration method, where the method includes:
when a virtual machine is created, when the number of network cards to be configured in the virtual machine is more than one, acquiring address information of a main network card and address information of a sub-network card of the virtual machine, wherein the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route;
after receiving a configuration request sent by the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, after receiving the configuration request sent by the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, where the method includes:
after a configuration request sent by the main network card is obtained, address information carrying gateway routing of the main network card is returned according to the identification of the main network card;
and after the configuration request sent by the subnet card is obtained, returning the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card.
Optionally, the returning address information of the sub-network card, which does not carry the gateway route, according to the identifier of the sub-network card includes:
the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled;
and returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
In a fourth aspect, an embodiment of the present application provides a virtual machine address configuration apparatus, where the apparatus includes:
the network card information acquisition module is used for acquiring the network card information of the virtual machine when the virtual machine is created;
the network card classifying module is used for determining a main network card needing to be configured with the gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one according to the network card information, wherein the number of the main network cards is one;
the first address determining module is used for determining the address information of the main network card and the address information of the sub-network card;
and the network card address sending module is used for sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server completes the address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card.
Optionally, the network card classifying module includes:
the quantity determining submodule is used for determining the quantity of the network cards to be configured in the virtual machine according to the network card information;
and the type determining submodule is used for determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine when the number of the network cards to be configured in the virtual machine is more than one.
Optionally, the virtual machine address configuration apparatus according to this embodiment of the present application further includes:
the second address determining module is configured to determine address information of the network card of the virtual machine when the number of the network cards to be configured by the virtual machine is one, and send the address information of the network card of the virtual machine to the DHCP server, where the address information of the network card of the virtual machine includes a gateway route when the number of the network cards to be configured in the virtual machine is one.
In a fifth aspect, an embodiment of the present application provides a virtual machine address configuration apparatus, where the apparatus includes:
the virtual machine management system comprises an address information acquisition module, a virtual machine management module and a virtual machine management module, wherein the address information acquisition module is used for acquiring the address information of a main network card of the virtual machine and the address information of a sub-network card when the number of network cards to be configured in the virtual machine is more than one, the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route;
and the address information configuration module is used for returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine after receiving the configuration request sent by the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, the address information configuring module includes:
the main network card address configuration submodule is used for returning the address information of the main network card carrying the gateway route according to the identification of the main network card after acquiring the configuration request sent by the main network card;
and the subnet card address configuration submodule is used for returning the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card after acquiring the configuration request sent by the subnet card.
Optionally, the subnet card address configuration sub-module includes:
the routing gateway vacancy unit is used for nulling the gateway routing in the DHCP acknowledgement character ACK message of the subnet card after the configuration request sent by the subnet card is obtained;
and the ACK message sending unit is used for returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the virtual machine address configuration method according to any one of the second aspects when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the virtual machine address configuration method according to any one of the third aspect when executing the program stored in the memory.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for configuring an address of a virtual machine according to any one of the foregoing second aspects is implemented.
In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the virtual machine address configuration method according to any one of the third aspects.
According to the virtual machine address configuration system, the virtual machine address configuration method and the virtual machine address configuration device, when a virtual machine is established, a virtualization platform obtains network card information of the virtual machine; the virtualization platform determines a main network card needing to be configured with a gateway route and a sub network card not needing to be configured with the gateway route according to the network card information when the number of the network cards to be configured in the virtual machine is more than one; the virtualization platform determines the address information of the main network card and the address information of the subnet card, and sends the address information of the main network card and the address information of the subnet card to the DHCP server; after acquiring the configuration request sent by the network card of the virtual machine, the DHCP server returns corresponding address information to the network card of the virtual machine according to the identification of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration. Determining a main network card needing to be configured with the gateway route and a sub-network card without being configured with the routing gateway, wherein the address information of the main network card carries the gateway route, and the address information of other network cards does not carry the gateway route, thereby reducing communication faults caused by the configuration conflict of the gateway routes of the multi-network-card virtual machine. Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a configuration of virtual machine addresses in the related art;
FIG. 2 is a schematic diagram of a virtual machine address configuration system according to an embodiment of the present disclosure;
fig. 3 is a first flowchart illustrating a virtual machine address configuration method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a second method for configuring a virtual machine address according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a third method for configuring a virtual machine address according to an embodiment of the present application;
fig. 6 is a first schematic diagram of a virtual machine address configuration apparatus according to an embodiment of the present application;
fig. 7 is a second schematic diagram of a virtual machine address configuration apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Terms in the embodiments of the present application are explained first.
DHCP: the dynamic host setup Protocol, a network Protocol of a local area network, works using UDP (User Datagram Protocol), is used for an internal network or a network service provider to automatically assign an IP address to a User.
Dnsmasq: an open source software tool can provide DNS caching and DHCP service functions.
And (3) gateway routing: the option of DHCP ACK (Acknowledgement character) returns a router field indicating the gateway address of the network segment.
In order to solve the problem of communication failure of a multi-network card virtual machine due to gateway routing configuration conflict, an embodiment of the present application provides a virtual machine address configuration system, and referring to fig. 2, the system includes:
a virtualization platform 201 and a DHCP server 202;
when a virtual machine is created, the virtualization platform 201 obtains network card information of the virtual machine;
the virtualization platform 201 determines, according to the network card information, a main network card that needs to be configured with a gateway route and a sub network card that does not need to be configured with the gateway route when the number of network cards to be configured in the virtual machine is greater than one, where the number of the main network cards is one;
the virtualization platform 201 determines the address information of the main network card and the address information of the sub-network card, and sends the address information of the main network card and the address information of the sub-network card to the DHCP server 202;
after acquiring the configuration request sent by the network card of the virtual machine, the DHCP server 202 returns corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
The main network card is a network card which needs to perform external network communication, and the subnet card is a network card only used for private network (intranet) communication. When creating a virtual machine, the virtualization platform 201 obtains network card information of the virtual machine, thereby determining a network card (i.e., a main network card) used by the virtual machine for external network communication, and determining a network card (i.e., a sub-network card) used by the virtual machine only for internal network communication. Only one network card in one virtual machine is used for external network communication, so the number of the main network cards in one virtual machine is one. The virtualization platform 201 allocates address information to the main network card and the sub-network card, where the address information of the main network card includes a gateway route, a Media Access Control (MAC) address, an Internet Protocol (IP) address, a Domain Name System (DNS), and the like; the address information of the sub-network card comprises an MAC address, an IP address, a DNS and the like, and does not comprise gateway routing. The virtualization platform 201 sends the address information of the main network card and the subnet card to the DHCP server 202, and after obtaining the configuration request of the virtual machine network card, the DHCP server 202 returns the corresponding address information to the virtual machine network card, so that the virtual machine network card completes address configuration.
In the embodiment of the application, a main network card needing to be configured with the gateway route and a sub-network card not needing to be configured with the routing gateway are determined, the gateway route is carried in the address information of the main network card, and the gateway route is not carried in the address information of other network cards (sub-network cards), so that the gateway route of the main network card is configured by default when the gateway route is configured, and the communication fault caused by the gateway route configuration conflict of a multi-network-card virtual machine can be reduced.
Optionally, according to the network card information, the virtualization platform 201 determines, when the number of network cards to be configured in the virtual machine is greater than one, a master network card that needs to configure a gateway route and a subnet card that does not need to configure a gateway route, including:
step one, the virtualization platform 201 determines the number of network cards to be configured in the virtual machine according to the network card information.
Step two, when the number of the network cards to be configured in the virtual machine is greater than one, the virtualization platform 201 determines a main network card for extranet communication and a sub-network card for intranet communication among the network cards of the virtual machine.
Optionally, the virtualization platform 201 is further configured to:
when the number of the network cards to be configured in the virtual machine is one, determining address information of the network card of the virtual machine, and sending the address information of the network card of the virtual machine to the DHCP server 202, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network card of the virtual machine includes a gateway route.
When the number of the network cards to be configured in the virtual machine is one, the network cards need to be allocated with complete address information, namely the address information comprises gateway routing.
Optionally, after acquiring the configuration request sent by the network card of the virtual machine, the DHCP server 202 returns corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, where the method includes:
in the first step, after acquiring the configuration request sent by the main network card, the DHCP server 202 returns the address information of the main network card carrying the gateway route according to the identifier of the main network card.
Step two, after acquiring the configuration request sent by the subnet card, the DHCP server 202 returns the address information of the subnet card not carrying the gateway route according to the identifier of the subnet card.
Optionally, the returning address information of the sub-network card, which does not carry the gateway route, according to the identifier of the sub-network card includes:
step one, the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled.
And step two, returning a DHCP ACK message with empty gateway routing to the sub-network card according to the identifier of the sub-network card.
The address configuration information may be a DHCP ACK message. The inventor finds that the gateway route of the network is sent to the virtual machine through the option field of the DHCP ACK, so that when the multi-network-card virtual machine is configured, when each network card requests DHCP, the server only returns the gateway route to the network card of the specified network segment, and does not return the gateway route to other network cards, that is, returns the gateway route only to the main network card, and does not return the gateway route to the subnet card. The contents of a DHCP ACK message may be as shown in table 1.
TABLE 1
Figure BDA0001978769650000101
Figure BDA0001978769650000111
Wherein, DHCP option 3:192.168.1.1router is gateway route, and the gateway route is nulled in DHCP ACK message returned to the subnet card. After receiving a DHCP ACK message with null gateway routing, the subnet card configures the address of the subnet card according to the DHCP ACK message, and because the DHCP ACK message does not include the gateway routing, the gateway routing in the address of the subnet card is null, thereby reducing communication faults caused by gateway routing configuration conflict of a multi-network card virtual machine.
An embodiment of the present application further provides a virtual machine address configuration method, referring to fig. 3, where the method includes:
s301, when a virtual machine is created, network card information of the virtual machine is obtained.
The virtual machine address configuration method of the embodiment of the application can be realized through a virtualization platform. When a virtual machine is created, the virtualization platform acquires network card information of the virtual machine, wherein the network card information represents information of a network card required to be configured in the virtual machine.
And S302, according to the network card information, determining a main network card needing to be configured with the gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one, wherein the number of the main network cards is one.
The virtualization platform determines a main network card needing to be configured with the gateway route and a sub-network card not needing to be configured with the gateway route in each network card of the virtual machine, wherein the number of the main network cards is one, and the number of the sub-network cards is one or more. For example, an external network card is used as a main network card, and an internal network card is used as a sub-network card; or the network card of the gateway route of the designated network segment is used as a main network card, and the network cards of the gateway routes of other network segments are used as sub-network cards, and the like.
S303, determining the address information of the main network card and the address information of the sub network card.
The virtualization platform allocates address information including gateway routing to the main network card and allocates address information not including gateway routing to the sub-network card.
And S304, sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server completes the address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card.
And the virtualization platform sends the address information of the main network card and the address information of the sub-network card to the DHCP server so that the DHCP server can subsequently carry out address configuration on the network card of the virtual machine.
In the embodiment of the application, for one multi-network-card virtual machine, a network card (a main network card) which needs to configure a gateway route in the virtual machine is determined, the gateway route is carried in address information of the network card which needs to configure the gateway route, and the gateway route is not carried in address information of other network cards (sub-network cards), and when the address configuration of the network card of the virtual machine is subsequently performed, because only the main network card comprises the gateway route, a default route is configured as the gateway route of the main network card, and communication faults caused by the conflict of the gateway route configuration of the multi-network-card virtual machine can be reduced.
Optionally, the determining, according to the network card information, that the number of the network cards to be configured in the virtual machine is greater than one, a master network card that needs to configure a gateway route and a subnet card that does not need to configure the gateway route includes:
step one, determining the number of network cards to be configured in the virtual machine according to the network card information.
And step two, when the number of the network cards to be configured in the virtual machine is more than one, determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine.
When the number of the network cards required to be configured by the virtual machine is more than one, determining a network card used for extranet communication, namely a main network card, and determining a network card only used for intranet communication, namely a sub-network card, in each network card of the virtual machine.
Optionally, the method for configuring the address of the virtual machine according to the embodiment of the present application further includes:
when the number of the network cards required to be configured by the virtual machine is one, determining address information of the network cards of the virtual machine, and sending the address information of the network cards of the virtual machine to the DHCP server, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network cards of the virtual machine comprises gateway routing.
An embodiment of the present application further provides a virtual machine address configuration method, referring to fig. 4, where the method includes:
s401, when a virtual machine is created, when the number of network cards to be configured in the virtual machine is more than one, acquiring address information of a main network card and address information of a sub-network card of the virtual machine, wherein the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route.
The virtual machine address configuration method is applied to the DHCP server, and therefore the virtual machine address configuration method can be achieved through the DHCP server.
S402, after receiving the configuration request sent by the network card of the virtual machine, according to the identification of the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, after receiving the configuration request sent by the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, where the method includes:
step one, after a configuration request sent by the main network card is obtained, address information carrying gateway routing of the main network card is returned according to the identification of the main network card.
And step two, after the configuration request sent by the sub-network card is obtained, the address information of the sub-network card, which does not carry the gateway route, is returned according to the identifier of the sub-network card.
For example, a virtual machine configured with two network cards of an external network and an internal network only returns a gateway route configuration of the external network to a default route, but for the network card of the internal network, a gateway route is not configured, and for a bridge mode commonly used for the internal network of the virtual machine, the internal network communication is forwarded through a bridge.
Optionally, the returning address information of the sub-network card, which does not carry the gateway route, according to the identifier of the sub-network card includes:
step one, the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled;
and step two, returning a DHCP ACK message with empty gateway routing to the sub-network card according to the identifier of the sub-network card.
In the embodiment of the application, the situation that the external network communication cannot be carried out due to gateway conflict in the use process of the virtual machine is reduced, and the routing management of the virtual machine in a multi-network environment can be effectively carried out.
As shown in fig. 5, the method for configuring a virtual machine address according to the embodiment of the present application may further include:
step one, when the network card configuration of the virtual machine is needed, the network card information of the virtual machine is obtained.
And step two, judging the number of the network cards required to be configured by the virtual machine according to the network card information, executing step eight when the number is one, and executing step three when the number is multiple.
And step three, judging whether all network card configuration is finished, if all network card configuration is finished, executing the step ten, and if all network card configuration is not finished, executing the step four.
And step four, configuring the address information of the virtual machine network card.
And step five, judging whether the network card which is currently configured with the address information needs to be configured with the gateway route, if so, executing the step six, and if not, executing the step seven.
And step six, configuring the static IP by the DHCP server, not marking, and returning to execute the step three. And the DHCP server configures a static IP for the network card needing to configure the gateway route, and the DHCP ACK message is not marked.
And step seven, configuring a static IP by the DHCP server, marking that the gateway route is not sent, and returning to execute the step three. And the DHCP server configures a static IP for the network card which does not need to configure the gateway route, and the gateway route in the DHCP ACK message is empty.
And step eight, configuring the address information of the virtual machine network card.
And step nine, configuring the static IP by the DHCP server without marking.
Step ten, after receiving the configuration request of the network card of the virtual machine, sending a corresponding DHCP ACK message to the network card of the virtual machine. And the DHCP server sends a DHCP ACK message to the virtual machine, wherein the DHCP ACK message comprises address information of a corresponding network card, so that the virtual machine configures the address of the network card after receiving the configuration information.
In the embodiment of the application, the network card needing to configure the gateway route is determined, the gateway route is carried in the address configuration information of the network card needing to configure the gateway route, and the gateway route is not carried in the address configuration information of other network cards, so that communication faults caused by gateway route configuration conflicts of a multi-network-card virtual machine are reduced.
An embodiment of the present application further provides a virtual machine address configuration apparatus, referring to fig. 6, the apparatus includes:
a network card information obtaining module 601, configured to obtain network card information of a virtual machine when the virtual machine is created;
a network card classification module 602, configured to determine, according to the network card information, that when the number of network cards to be configured in the virtual machine is greater than one, a main network card that needs to configure a gateway route and a sub-network card that does not need to configure a gateway route, where the number of the main network cards is one;
a first address determining module 603, configured to determine address information of the main network card and address information of the sub-network card;
a network card address sending module 604, configured to send the address information of the main network card and the address information of the sub-network card to a DHCP server, so that the DHCP server completes address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card.
Optionally, the network card classifying module 602 includes:
the quantity determining submodule is used for determining the quantity of the network cards to be configured in the virtual machine according to the network card information;
and the type determining submodule is used for determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine when the number of the network cards to be configured in the virtual machine is more than one.
Optionally, the virtual machine address configuration apparatus according to this embodiment of the present application further includes:
the second address determining module is configured to determine address information of the network card of the virtual machine when the number of the network cards to be configured by the virtual machine is one, and send the address information of the network card of the virtual machine to the DHCP server, where the address information of the network card of the virtual machine includes a gateway route when the number of the network cards to be configured in the virtual machine is one.
An embodiment of the present application further provides a virtual machine address configuration apparatus, referring to fig. 7, the apparatus includes:
an address information obtaining module 701, configured to, when a virtual machine is created, obtain, when the number of network cards to be configured in the virtual machine is greater than one, address information of a main network card and address information of a sub-network card of the virtual machine, where the address information of the main network card includes a gateway route, and the address information of the sub-network card does not include the gateway route;
an address information configuration module 702, configured to, after receiving a configuration request sent by the network card of the virtual machine, return corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, the address information configuring module 702 includes:
the main network card address configuration submodule is used for returning the address information of the main network card carrying the gateway route according to the identification of the main network card after acquiring the configuration request sent by the main network card;
and the subnet card address configuration submodule is used for returning the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card after acquiring the configuration request sent by the subnet card.
Optionally, the sub-network card address configuration sub-module includes:
a routing gateway idling unit, configured to idle a gateway route in a DHCP acknowledge character ACK message of the subnet card after acquiring the configuration request sent by the subnet card;
and the ACK message sending unit is used for returning a DHCP ACK message with empty gateway routing to the sub-network card according to the identifier of the sub-network card.
An embodiment of the present application further provides an electronic device, and specifically, the electronic device may be a virtualization platform, see fig. 8, including: a processor 801 and a memory 802.
The memory 801 stores a computer program.
The processor 802 is configured to implement the following steps when executing the program stored in the memory 802:
when a virtual machine is created, network card information of the virtual machine is acquired;
according to the network card information, determining a main network card needing to be configured with a gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one, wherein the number of the main network cards is one;
determining the address information of the main network card and the address information of the sub-network card;
and sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server completes the address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card.
Optionally, the processor 801 is configured to implement any one of the virtual machine address configuration methods when executing the program stored in the memory 802.
Optionally, the server further includes a communication interface and a communication bus, where the processor 801, the communication interface, and the memory 802 complete communication with each other through the communication bus.
The embodiment of the present application further provides an electronic device, and specifically, the electronic device may be a DHCP server, including: a processor and a memory.
A memory for storing a computer program.
The processor is used for realizing the following steps when executing the program stored in the memory:
when a virtual machine is created, when the number of network cards to be configured in the virtual machine is more than one, acquiring address information of a main network card and address information of a sub-network card of the virtual machine, wherein the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route;
after receiving the configuration request sent by the network card of the virtual machine, according to the identifier of the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine, so that the network card in the virtual machine completes address configuration.
Optionally, the processor is configured to implement any virtual machine address configuration method when executing the program stored in the memory.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for configuring an address of any virtual machine is implemented.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (17)

1. A virtual machine address configuration system, the system comprising:
the virtualization platform and the dynamic host set a protocol DHCP server;
when a virtual machine is created, the virtualization platform acquires network card information of the virtual machine;
the virtualization platform determines a main network card needing to be configured with a gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one according to the network card information, wherein the number of the main network cards is one;
the virtualization platform determines the address information of the main network card and the address information of the sub-network card, and sends the address information of the main network card and the address information of the sub-network card to the DHCP server;
after the DHCP server acquires a configuration request sent by a network card of the virtual machine, corresponding address information is returned to the network card of the virtual machine according to the identification of the network card of the virtual machine, so that the network card in the virtual machine completes address configuration; and the address information returned by the DHCP server to the subnet card does not carry the gateway route.
2. The system of claim 1, wherein the determining, by the virtualization platform according to the network card information and when the number of network cards to be configured in the virtual machine is greater than one, a master network card that needs to configure a gateway route and a subnet card that does not need to configure a gateway route includes:
the virtualization platform determines the number of network cards to be configured in the virtual machine according to the network card information;
and when the number of the network cards to be configured in the virtual machine is more than one, the virtualization platform determines a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine.
3. The system of claim 1 or 2, further configured to, at the virtualization platform:
when the number of the network cards to be configured in the virtual machine is one, determining address information of the network cards of the virtual machine, and sending the address information of the network cards of the virtual machine to the DHCP server, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network cards of the virtual machine comprises gateway routing.
4. The system according to claim 1, wherein the DHCP server returns corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine after acquiring the configuration request sent by the network card of the virtual machine, including:
after the DHCP server acquires the configuration request sent by the main network card, the DHCP server returns the address information of the main network card carrying the gateway route according to the identification of the main network card;
and after acquiring the configuration request sent by the subnet card, the DHCP server returns the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card.
5. The system according to claim 4, wherein the returning address information of the sub-network card not carrying the gateway route according to the identifier of the sub-network card comprises:
the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled;
and returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
6. A virtual machine address configuration method is characterized by comprising the following steps:
when a virtual machine is created, network card information of the virtual machine is acquired;
according to the network card information, when the number of the network cards to be configured in the virtual machine is more than one, determining a main network card needing to be configured with the gateway route and a sub-network card not needing to be configured with the gateway route, wherein the number of the main network cards is one;
determining the address information of the main network card and the address information of the sub-network card;
sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server completes address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card; and the address information returned by the DHCP server to the subnet card does not carry the gateway route.
7. The method according to claim 6, wherein determining, according to the network card information, a master network card that needs to configure a gateway route and a subnet card that does not need to configure a gateway route when the number of network cards to be configured in the virtual machine is greater than one includes:
determining the number of network cards to be configured in the virtual machine according to the network card information;
and when the number of the network cards to be configured in the virtual machine is more than one, determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
when the number of the network cards required to be configured by the virtual machine is one, determining address information of the network cards of the virtual machine, and sending the address information of the network cards of the virtual machine to the DHCP server, wherein when the number of the network cards to be configured in the virtual machine is one, the address information of the network cards of the virtual machine comprises gateway routing.
9. A virtual machine address configuration method is characterized by comprising the following steps:
when a virtual machine is created, when the number of network cards to be configured in the virtual machine is more than one, acquiring address information of a main network card and address information of a sub-network card of the virtual machine, wherein the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route;
after receiving a configuration request sent by a network card of the virtual machine, returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine so as to enable the network card in the virtual machine to complete address configuration; and the address information returned to the subnet card does not carry the gateway route.
10. The method according to claim 9, wherein after receiving the configuration request sent by the network card of the virtual machine, returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine, includes:
after a configuration request sent by the main network card is obtained, address information of the main network card carrying a gateway route is returned according to the identification of the main network card;
and after the configuration request sent by the subnet card is obtained, returning the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card.
11. The method according to claim 10, wherein the returning address information of the sub-network card not carrying the gateway route according to the identifier of the sub-network card comprises:
the gateway route in the DHCP acknowledgement character ACK message of the sub-network card is nulled;
and returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
12. An apparatus for virtual machine address configuration, the apparatus comprising:
the network card information acquisition module is used for acquiring the network card information of the virtual machine when the virtual machine is created;
the network card classifying module is used for determining a main network card needing to be configured with the gateway route and a sub network card not needing to be configured with the gateway route when the number of the network cards to be configured in the virtual machine is more than one according to the network card information, wherein the number of the main network cards is one;
the first address determining module is used for determining the address information of the main network card and the address information of the sub-network card;
the network card address sending module is used for sending the address information of the main network card and the address information of the sub-network card to a DHCP server so that the DHCP server can complete the address configuration of the virtual machine network card according to the address information of the main network card and the address information of the sub-network card; and the address information returned by the DHCP server to the subnet card does not carry the gateway route.
13. The apparatus of claim 12, wherein the network card classifying module comprises:
the quantity determining submodule is used for determining the quantity of the network cards to be configured in the virtual machine according to the network card information;
and the type determining submodule is used for determining a main network card for extranet communication and a sub-network card for intranet communication in each network card of the virtual machine when the number of the network cards to be configured in the virtual machine is more than one.
14. The apparatus of claim 12 or 13, further comprising:
the second address determining module is configured to determine address information of the network card of the virtual machine when the number of the network cards to be configured by the virtual machine is one, and send the address information of the network card of the virtual machine to the DHCP server, where the address information of the network card of the virtual machine includes a gateway route when the number of the network cards to be configured in the virtual machine is one.
15. An apparatus for virtual machine address configuration, the apparatus comprising:
the virtual machine management system comprises an address information acquisition module, a network management module and a network management module, wherein the address information acquisition module is used for acquiring the address information of a main network card and the address information of a sub-network card of a virtual machine when the virtual machine is created and when the number of the network cards to be configured in the virtual machine is more than one, the address information of the main network card comprises a gateway route, and the address information of the sub-network card does not comprise the gateway route;
the address information configuration module is used for returning corresponding address information to the network card of the virtual machine according to the identifier of the network card of the virtual machine after receiving a configuration request sent by the network card of the virtual machine, so that the network card in the virtual machine completes address configuration; and the address information returned to the subnet card does not carry the gateway route.
16. The apparatus of claim 15, wherein the address information configuration module comprises:
the main network card address configuration submodule is used for returning the address information of the main network card carrying the gateway route according to the identification of the main network card after acquiring the configuration request sent by the main network card;
and the subnet card address configuration submodule is used for returning the address information of the subnet card, which does not carry the gateway route, according to the identifier of the subnet card after acquiring the configuration request sent by the subnet card.
17. The apparatus of claim 16, wherein the sub-network card address configuration sub-module comprises:
the routing gateway vacancy unit is used for nulling the gateway routing in the DHCP acknowledgement character ACK message of the subnet card after the configuration request sent by the subnet card is obtained;
and the ACK message sending unit is used for returning a DHCP ACK message with empty gateway routing to the subnet card according to the identifier of the subnet card.
CN201910141761.1A 2019-02-26 2019-02-26 Virtual machine address configuration system, method and device Active CN111614790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910141761.1A CN111614790B (en) 2019-02-26 2019-02-26 Virtual machine address configuration system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910141761.1A CN111614790B (en) 2019-02-26 2019-02-26 Virtual machine address configuration system, method and device

Publications (2)

Publication Number Publication Date
CN111614790A CN111614790A (en) 2020-09-01
CN111614790B true CN111614790B (en) 2022-08-05

Family

ID=72201966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910141761.1A Active CN111614790B (en) 2019-02-26 2019-02-26 Virtual machine address configuration system, method and device

Country Status (1)

Country Link
CN (1) CN111614790B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333933B (en) * 2022-08-11 2024-04-19 北京蔚领时代科技有限公司 Automatic management method, medium and equipment for servers on machine room

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668022A (en) * 2009-09-14 2010-03-10 陈博东 Virtual network isolation system established on virtual machine and implementation method thereof
CN103475704A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Method for virtual node configuration for virtual cluster application
CN103703724A (en) * 2013-08-15 2014-04-02 华为技术有限公司 Resource payment method
CN104270464A (en) * 2014-10-22 2015-01-07 西安未来国际信息股份有限公司 Cloud computing virtualized network architecture and optimization method
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines
CN105577702A (en) * 2016-03-15 2016-05-11 耿童童 Virtual machine level security protection system and method
CN105978781A (en) * 2016-06-28 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for establishing network connection of Docker container, and client side
CN106375486A (en) * 2016-11-24 2017-02-01 国云科技股份有限公司 System for defining DHCP service by use of cloud platform software
CN107426348A (en) * 2017-07-27 2017-12-01 郑州云海信息技术有限公司 A kind of automatic management method and system of IP address
CN108206750A (en) * 2016-12-16 2018-06-26 北京国双科技有限公司 The configuration method and device of virtual machine network interface card
CN109150638A (en) * 2018-11-01 2019-01-04 郑州云海信息技术有限公司 A kind of route management method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9887961B2 (en) * 2015-05-22 2018-02-06 International Business Machines Corporation Multi-tenant aware dynamic host configuration protocol (DHCP) mechanism for cloud networking

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668022A (en) * 2009-09-14 2010-03-10 陈博东 Virtual network isolation system established on virtual machine and implementation method thereof
CN103703724A (en) * 2013-08-15 2014-04-02 华为技术有限公司 Resource payment method
CN103475704A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Method for virtual node configuration for virtual cluster application
CN104270464A (en) * 2014-10-22 2015-01-07 西安未来国际信息股份有限公司 Cloud computing virtualized network architecture and optimization method
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines
CN105577702A (en) * 2016-03-15 2016-05-11 耿童童 Virtual machine level security protection system and method
CN105978781A (en) * 2016-06-28 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for establishing network connection of Docker container, and client side
CN106375486A (en) * 2016-11-24 2017-02-01 国云科技股份有限公司 System for defining DHCP service by use of cloud platform software
CN108206750A (en) * 2016-12-16 2018-06-26 北京国双科技有限公司 The configuration method and device of virtual machine network interface card
CN107426348A (en) * 2017-07-27 2017-12-01 郑州云海信息技术有限公司 A kind of automatic management method and system of IP address
CN109150638A (en) * 2018-11-01 2019-01-04 郑州云海信息技术有限公司 A kind of route management method and device

Also Published As

Publication number Publication date
CN111614790A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN111460460B (en) Task access method, device, proxy server and machine-readable storage medium
US11265368B2 (en) Load balancing method, apparatus, and system
CN108449282B (en) Load balancing method and device
CN109561141B (en) CDN node selection method and equipment
US7873711B2 (en) Method, system and program product for managing assignment of MAC addresses in a virtual machine environment
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN106878482B (en) Network address translation method and device
CN109981493B (en) Method and device for configuring virtual machine network
CN112235175B (en) Access method and access device of network bridge equipment and network bridge equipment
CN109495369B (en) Message forwarding method and device
CN107809386B (en) IP address translation method, routing device and communication system
US20170171147A1 (en) Method and electronic device for implementing domain name system
CN111031129B (en) Access request processing method, processing device, electronic equipment and storage medium
CN111614790B (en) Virtual machine address configuration system, method and device
CN106878485B (en) Message processing method and device
CN109347743B (en) Special line communication method, computer readable storage medium and terminal equipment
US10623421B2 (en) Detecting IP address theft in data center networks
CN103856573A (en) Method, device and system for configuring internet protocol address
CN115150106B (en) Safety protection method of physical machine and network node equipment
CN114338809A (en) Access control method, device, electronic equipment and storage medium
CN110611678B (en) Method for identifying message and access network equipment
WO2016179960A1 (en) Domain name system (dns) resolution processing method and device
US20160248596A1 (en) Reflecting mdns packets
CN113079128A (en) Information plugging method and device, computing equipment and computer storage medium
CN110650222A (en) Network access method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant