CN114500452B - Method, device and equipment for determining virtual system IP address in bridge mode - Google Patents

Method, device and equipment for determining virtual system IP address in bridge mode Download PDF

Info

Publication number
CN114500452B
CN114500452B CN202210100207.0A CN202210100207A CN114500452B CN 114500452 B CN114500452 B CN 114500452B CN 202210100207 A CN202210100207 A CN 202210100207A CN 114500452 B CN114500452 B CN 114500452B
Authority
CN
China
Prior art keywords
address
virtual system
address information
format
determining
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
CN202210100207.0A
Other languages
Chinese (zh)
Other versions
CN114500452A (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.)
Kashgar Zhongxinjia Big Data Service Co.,Ltd.
Luoyang Zhongxinjia Artificial Intelligence Technology Innovation Research Institute Co ltd
Original Assignee
Luoyang Zhongxinjia Intelligent Network 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 Luoyang Zhongxinjia Intelligent Network Technology Co ltd filed Critical Luoyang Zhongxinjia Intelligent Network Technology Co ltd
Priority to CN202210100207.0A priority Critical patent/CN114500452B/en
Publication of CN114500452A publication Critical patent/CN114500452A/en
Application granted granted Critical
Publication of CN114500452B publication Critical patent/CN114500452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]

Landscapes

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

Abstract

The application provides a method, a device and equipment for determining an IP address of a virtual system in a bridge mode, which relate to the technical field of computers and comprise the steps of obtaining first address information of the virtual system; the first address information is address information corresponding to an initial format; performing format conversion on the first address information corresponding to the initial format to determine second address information; and initiating an address request to a target switch based on the second address information, and determining the IP address corresponding to the virtual system. According to the method and the device, the IP address corresponding to the virtual system can be inquired without human, and the inquiring efficiency of the IP address of the virtual system in the physical machine is improved.

Description

Method, device and equipment for determining virtual system IP address in bridge mode
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for determining an IP address of a virtual system in a bridge mode.
Background
Kernel-based virtual machine (Kernel-basedVirtual Machine, KVM) is a virtualization infrastructure used in Linux kernels, and multiple completely isolated virtual systems with independent kernels can be virtualized in a set of physical servers. The network solution provided by the KVM for the virtual system includes a bridging function, which can fully borrow the physical network to provide network support for the virtual system, but introduces the problem that the physical machine cannot control the IP address of the virtual system. After the deployment of the KVM is completed, the actual IP address corresponding to the virtual system running in the physical machine cannot be known, and only the virtual system can be manually recorded or logged in for inquiry.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for determining an IP address of a virtual system in a bridging mode, which do not need to manually query the IP address corresponding to the virtual system, and improve the query efficiency of the IP address of the virtual system in a physical machine.
In a first aspect, the present invention provides a method for determining an IP address of a virtual system in a bridge mode, where the method is applied to a physical machine; at least one virtual system is operated on the physical machine; the method comprises the following steps:
acquiring first address information of a virtual system; the first address information is address information corresponding to an initial format;
converting the format of the first address information corresponding to the initial format to determine second address information;
and initiating an address request to the target switch based on the second address information, and determining the IP address corresponding to the virtual system.
In an alternative embodiment, the step of obtaining the first address information of the virtual system includes:
acquiring first address information corresponding to a virtual system name in a state of logging in a physical system; wherein the initial format comprises a Unix format and the first address information comprises a MAC address.
In an optional embodiment, the first address information corresponding to the initial format is a MAC address in Unix format; the step of converting the format of the first address information corresponding to the initial format and determining the second address information comprises the following steps:
deleting the colon identification of the MAC address in the Unix format;
and separating the MAC addresses deleted with the colon marks according to 4 characters, connecting the MAC addresses with the dot numbers, and determining second address information.
In an alternative embodiment, the step of initiating an address request to the target switch based on the second address information, and determining the IP address corresponding to the virtual system includes:
when the virtual system is one, calling a standard development library to initiate a reverse address conversion protocol based on the second address information, and determining an address pair corresponding to the virtual system; the address pair comprises an address pair consisting of a MAC address and an IP address;
when the number of the virtual systems is multiple, second address information of the multiple virtual systems is sent to the core three-layer switch to initiate an address request, and an address pair set returned by the core three-layer switch is received; the address pair set comprises address pairs which are composed of a MAC address and an IP address and correspond to each virtual system.
In an alternative embodiment, the method further comprises:
acquiring attribute information of a virtual system; the attribute information includes a system name and a login status of the virtual system.
In an alternative embodiment, the method further comprises: before the first address information of the virtual system is acquired, the method further comprises:
identifying whether the login state of the virtual system is online;
if so, the first address information of the virtual system is acquired.
In an alternative embodiment, the system name of the virtual system and the first address information have a corresponding relationship; the method further comprises the steps of:
and determining the mapping relation between the IP address in the address pair or the address pair set and the virtual system based on the corresponding relation between the system name of the virtual system and the first address information.
In a second aspect, the present invention provides a device for determining an IP address of a virtual system in a bridge mode, where the device is disposed in a physical machine; at least one virtual system is operated on the physical machine; the device comprises:
acquiring first address information of a virtual system; the first address information is address information corresponding to an initial format;
converting the format of the first address information corresponding to the initial format to determine second address information;
and initiating an address request to the target switch based on the second address information, and determining the IP address corresponding to the virtual system.
In a third aspect, the invention provides an electronic device comprising a processor and a memory storing computer executable instructions executable by the processor to implement any of the methods of the previous embodiments.
In a fourth aspect, the invention provides a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of any of the preceding embodiments.
The method, the device and the equipment for determining the IP address of the virtual system in the bridge mode provided by the embodiment of the invention firstly acquire the first address information of the virtual system, wherein the first address information is the address information corresponding to the initial format, the first address information corresponding to the initial format is subjected to format conversion, the second address information is determined, an address request is initiated to a target switch based on the second address information, and the IP address corresponding to the virtual system is determined. The method can determine the network IP address corresponding to the virtual system through the physical machine, and improves the query efficiency of querying the IP addresses corresponding to all the virtual systems running in the physical machine.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a method for determining an IP address of a virtual system in a bridge mode according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method for determining an IP address of a virtual system in another bridge mode according to an embodiment of the present invention;
fig. 3 is a block diagram of a device for determining an IP address of a virtual system in a bridge mode according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the descriptions of "first," "second," etc. in the embodiments of the present invention are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order in which the steps are performed, but are merely used to facilitate description of the present invention and to distinguish between each step, and thus should not be construed as limiting the present invention.
Various embodiments are provided below to describe page content determination methods, apparatuses, devices, and computer-readable storage media in detail.
Embodiment one:
the network solution provided by the KVM for the virtual system includes a bridging function, which can fully borrow the physical network to provide network support for the virtual system, but introduces the problem that the physical machine cannot control the IP address of the virtual system. In order to solve the problem that the IP address of the virtual system cannot be queried in the physical machine in the existing bridge mode, the embodiment of the application provides a method for determining the IP address of the virtual system in the bridge mode, which is applied to the physical machine, and at least one virtual system is operated on the physical machine. Comprising the following steps:
step S102, obtaining first address information of a virtual system; the first address information is address information corresponding to an initial format.
The physical machine can be simultaneously operated with a plurality of virtual systems, and when the first address information of the virtual systems is acquired, the first address information corresponding to the virtual system name can be acquired under the state of logging in the physical system, wherein the initial format comprises a Unix format, and the first address information comprises an MAC address.
Step S104, converting the format of the first address information corresponding to the initial format, and determining the second address information.
When the first address information corresponding to the initial format is a Unix format MAC address, the colon identification of the Unix format MAC address can be deleted first, then the MAC address deleted with the colon identification is separated according to 4 characters and connected by a dot number, and the second address information is determined.
In one example, for example, the first address information (i.e. the MAC address in Unix format) is a6:cb:ea:bc:de:ad, by removing the colon of the MAC address of the Unix system, and dividing the characters of the MAC address function of the Unix system into a group according to 4 characters, and connecting the divided characters through a dot number, so as to obtain a6cb.
And step S106, initiating an address request to the target switch based on the second address information, and determining the IP address corresponding to the virtual system.
Because the number of the virtual systems in the physical machine can be one or more, different address request modes can be adopted for different numbers of virtual systems:
in one embodiment, when the virtual system is one, the standard development library is called based on the second address information to initiate a reverse address conversion protocol, and an address pair corresponding to the virtual system is determined, wherein the address pair comprises an address pair consisting of a MAC address and an IP address;
in another embodiment, when the number of the virtual systems is multiple, the second address information of the multiple virtual systems is sent to the core three-layer switch to initiate an address request, and an address pair set returned by the core three-layer switch is received, wherein the address pair set comprises an address pair consisting of a MAC address and an IP address corresponding to each virtual system.
The initiation request may be made by invoking a standard development library when initiating a reverse address translation protocol (RARP) that allows the physical machine of the local area network to request its IP address from the cache of the gateway server.
In addition, when the first address information of the virtual system is acquired in a state of logging in the physical system, attribute information of the virtual system may also be acquired, where the attribute information includes a system name of the virtual system and a logging-in state, that is, whether the corresponding virtual system is online. For example, when there are a plurality of virtual systems, the virtual systems are named "A1", "B2", "C3", etc., for convenience of description, by acquiring the attribute information, a login state corresponding to each virtual system can be determined, so that the above-described IP address query method can be executed for the virtual system on line. The query efficiency is improved.
In one example, referring to fig. 2, comprising:
step S202, obtain the virtual system name and Unix format MAC address.
In step S204, the Unix format MAC address is converted into a network MAC address.
Step S206, initiating reverse conversion protocol to the core three-layer switch according to the network MAC address.
Step S208, outputting the complete virtual system name and the corresponding IP address.
In one example, since the attribute information further includes the login status of the virtual system, it may be first identified whether the login status of the virtual system is online before the first address information of the virtual system is acquired, and if so, the first address information of the virtual system is acquired.
In practical application, the corresponding IP address is returned according to the requested network MAC address, and if the request result is not obtained after the request is initiated, the request is returned to be null.
The system name of the virtual system and the first address information have a corresponding relationship, that is, when the virtual system is initially acquired, it can be determined which virtual system corresponds to which MAC address in the Unix format. Thus in one embodiment, the above method further comprises:
and determining the mapping relation between the IP address in the address pair or the address pair set and the virtual system based on the corresponding relation between the system name of the virtual system and the first address information.
The address pair is returned information when one virtual system is used, the address pair set is returned information when a plurality of virtual systems are used, and the address pair set comprises address pairs which are equal to the number of the virtual systems, and the address pairs can be address pairs according to the request sequence or address pairs which are not arranged according to the request sequence. The address pair includes an address pair composed of the second address information (i.e., the MAC address under the network protocol) of the originating request and the corresponding IP address. The IP address corresponding to the MAC address under the network protocol can be determined through the address pair, and the mapping relation between the IP address and the virtual system can be determined according to the corresponding relation between the system name and the first address information and the information of the address pair, so that the problem that the physical system cannot know the IP address actually operated by the virtual system in the bridge mode is solved, meanwhile, the IP address of the virtual system is conveniently inquired, and the management efficiency and the user satisfaction of daily operation and maintenance work are improved.
Embodiment two:
the application provides a device for determining an IP address of a virtual system in a bridge mode, as shown in fig. 3, where the device is disposed in a physical machine; at least one virtual system is operated on the physical machine; the device comprises the following parts:
an obtaining module 302, configured to obtain first address information of a virtual system; the first address information is address information corresponding to an initial format;
the format conversion module 304 is configured to perform format conversion on the first address information corresponding to the initial format, and determine second address information;
and the address request module 306 is configured to initiate an address request to the target switch based on the second address information, and determine an IP address corresponding to the virtual system.
In some embodiments, the obtaining module 302 is further configured to obtain first address information corresponding to a virtual system name in a state of logging in a physical system; wherein the initial format comprises a Unix format and the first address information comprises a MAC address.
In some embodiments, the first address information corresponding to the initial format is a MAC address in Unix format; the format conversion module 304 is further configured to: deleting the colon identification of the MAC address in the Unix format;
and separating the MAC addresses deleted with the colon marks according to 4 characters, connecting the MAC addresses with the dot numbers, and determining second address information.
In some implementations, the address request module 306 is further configured to:
when the virtual system is one, calling a standard development library to initiate a reverse address conversion protocol based on the second address information, and determining an address pair corresponding to the virtual system; the address pair comprises an address pair consisting of a MAC address and an IP address;
when the number of the virtual systems is multiple, second address information of the multiple virtual systems is sent to the core three-layer switch to initiate an address request, and an address pair set returned by the core three-layer switch is received; the address pair set comprises address pairs which are composed of a MAC address and an IP address and correspond to each virtual system.
In some embodiments, the above-mentioned acquisition module is further configured to:
acquiring attribute information of a virtual system; the attribute information includes a system name and a login status of the virtual system.
In some embodiments, before the first address information of the virtual system is acquired, the apparatus further includes: an identification module for
Identifying whether the login state of the virtual system is online;
if so, the first address information of the virtual system is acquired.
In some embodiments, the system name and the first address information of the virtual system have a correspondence; the device further comprises a determining module for:
and determining the mapping relation between the IP address in the address pair or the address pair set and the virtual system based on the corresponding relation between the system name of the virtual system and the first address information.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
Embodiment III:
based on the same inventive concept, the embodiment of the application provides an electronic device, in particular, the electronic device comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the embodiments described above.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, the processor 40, the communication interface 43 and the memory 41 being connected by the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The memory 41 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and the at least one other network element is achieved via at least one communication interface 43 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc.
Bus 42 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The memory 41 is configured to store a program, and the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus for flow defining disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40 or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in processor 40. The processor 40 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 41 and the processor 40 reads the information in the memory 41 and in combination with its hardware performs the steps of the method described above.
The computer program product of the method, the device and the equipment for determining the virtual system IP address in the bridge mode provided by the embodiments of the present invention includes a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood by those skilled in the art in specific cases.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (4)

1. A method for determining the IP address of a virtual system in a bridge mode is characterized in that the method is applied to a physical machine; at least one virtual system is operated on the physical machine; the method comprises the following steps:
identifying whether the login state of the virtual system is online; if yes, acquiring first address information, a system name and a login state corresponding to the virtual system name in the state of logging in the physical system; the system name of the virtual system and the first address information have a corresponding relation; the first address information is address information corresponding to an initial format, the initial format comprises a Unix format, and the first address information comprises an MAC address;
performing format conversion on the first address information corresponding to the initial format to determine second address information;
initiating an address request to a target switch based on the second address information, and determining an IP address corresponding to the virtual system;
the first address information corresponding to the initial format is a MAC address of a Unix format; the step of converting the format of the first address information corresponding to the initial format and determining the second address information comprises the following steps: deleting the colon identification of the MAC address in the Unix format; separating the MAC addresses deleted with the colon marks according to 4 characters, connecting the MAC addresses with the dot marks, and determining the second address information;
and initiating an address request to a target switch based on the second address information, and determining an IP address corresponding to the virtual system, wherein the step comprises the following steps: when the virtual system is one, initiating a reverse address conversion protocol based on the second address information call standard development library, and determining an address pair corresponding to the virtual system; the address pair comprises an address pair consisting of a MAC address and an IP address; when the number of the virtual systems is multiple, initiating address requests to the core three-layer switch by the second address information of the multiple virtual systems, and receiving an address pair set returned by the core three-layer switch; the address pair set comprises address pairs which are formed by MAC addresses and IP addresses and correspond to each virtual system;
acquiring attribute information of the virtual system; the attribute information comprises a system name and a login state of the virtual system;
and determining the mapping relation between the IP address in the address pair or the address pair set and the virtual system based on the corresponding relation between the system name of the virtual system and the first address information.
2. The device for determining the IP address of the virtual system in the bridge mode is characterized in that the device is arranged in a physical machine; at least one virtual system is operated on the physical machine; the device comprises:
the identification module is used for identifying whether the login state of the virtual system is online;
the acquisition module is used for acquiring the first address information, the system name and the login state corresponding to the virtual system name in the login state of the physical system if the virtual system is online; the system name of the virtual system and the first address information have a corresponding relation; the first address information is address information corresponding to an initial format, the initial format comprises a Unix format, and the first address information comprises an MAC address;
the format conversion module is used for carrying out format conversion on the first address information corresponding to the initial format and determining second address information;
the address request module is used for initiating an address request to a target switch based on the second address information and determining an IP address corresponding to the virtual system;
the first address information corresponding to the initial format is a MAC address of a Unix format; the format conversion module is further used for: deleting the colon identification of the MAC address in the Unix format; separating the MAC addresses deleted with the colon marks according to 4 characters, connecting the MAC addresses with the dot marks, and determining the second address information;
the address request module is further configured to: when the virtual system is one, initiating a reverse address conversion protocol based on the second address information call standard development library, and determining an address pair corresponding to the virtual system; the address pair comprises an address pair consisting of a MAC address and an IP address; when the number of the virtual systems is multiple, initiating address requests to the core three-layer switch by the second address information of the multiple virtual systems, and receiving an address pair set returned by the core three-layer switch; the address pair set comprises address pairs which are formed by MAC addresses and IP addresses and correspond to each virtual system;
the acquisition module is also used for acquiring attribute information of the virtual system; the attribute information comprises a system name and a login state of the virtual system;
and the determining module is used for determining the mapping relation between the IP address in the address pair or the address pair set and the virtual system based on the corresponding relation between the system name of the virtual system and the first address information.
3. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of claim 1.
4. A computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of claim 1.
CN202210100207.0A 2022-01-27 2022-01-27 Method, device and equipment for determining virtual system IP address in bridge mode Active CN114500452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210100207.0A CN114500452B (en) 2022-01-27 2022-01-27 Method, device and equipment for determining virtual system IP address in bridge mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210100207.0A CN114500452B (en) 2022-01-27 2022-01-27 Method, device and equipment for determining virtual system IP address in bridge mode

Publications (2)

Publication Number Publication Date
CN114500452A CN114500452A (en) 2022-05-13
CN114500452B true CN114500452B (en) 2024-03-22

Family

ID=81476342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210100207.0A Active CN114500452B (en) 2022-01-27 2022-01-27 Method, device and equipment for determining virtual system IP address in bridge mode

Country Status (1)

Country Link
CN (1) CN114500452B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013183243A (en) * 2012-03-01 2013-09-12 Kddi Corp Program, method, and physical server for allocating address to virtual machine
CN104683491A (en) * 2013-11-29 2015-06-03 铁道部信息技术中心 Method and system for obtaining Internet protocol addresses of virtual machines
CN110049148A (en) * 2019-04-19 2019-07-23 浙江中烟工业有限责任公司 Virtual machine IP address acquisition methods in a kind of Vcenter environment
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform
CN110913028A (en) * 2018-09-14 2020-03-24 阿里巴巴集团控股有限公司 Method, device and system for processing virtual address
CN111427662A (en) * 2020-03-23 2020-07-17 深信服科技股份有限公司 Method for allocating IP addresses of virtual machines, terminal equipment and DHCP server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013183243A (en) * 2012-03-01 2013-09-12 Kddi Corp Program, method, and physical server for allocating address to virtual machine
CN104683491A (en) * 2013-11-29 2015-06-03 铁道部信息技术中心 Method and system for obtaining Internet protocol addresses of virtual machines
CN110913028A (en) * 2018-09-14 2020-03-24 阿里巴巴集团控股有限公司 Method, device and system for processing virtual address
CN110049148A (en) * 2019-04-19 2019-07-23 浙江中烟工业有限责任公司 Virtual machine IP address acquisition methods in a kind of Vcenter environment
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform
CN111427662A (en) * 2020-03-23 2020-07-17 深信服科技股份有限公司 Method for allocating IP addresses of virtual machines, terminal equipment and DHCP server

Also Published As

Publication number Publication date
CN114500452A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN109547286B (en) CDN node selection method, device and storage medium
CN110677492B (en) Access request processing method and device, electronic equipment and storage medium
CN107689987B (en) Virtual network service exposure method and device
CN106648838B (en) Resource pool management configuration method and device
CN111625319A (en) Virtual machine monitoring data acquisition method and device and host machine
CN113890879A (en) Load balancing method and device for data access, computer equipment and medium
CN110933191B (en) IP address obtaining method and device, upper computer and storage medium
WO2016095644A1 (en) High availability solution method and device for database
CN112398738B (en) Method and device for acquiring connection relation, equipment and computer readable storage medium
CN114500452B (en) Method, device and equipment for determining virtual system IP address in bridge mode
CN111177053B (en) Data communication method, device and system and computer readable storage medium
CN106685708B (en) Method, device and system for determining service relationship
CN111767481B (en) Access processing method, device, equipment and storage medium
CN108563492B (en) Data acquisition method, virtual machine and electronic equipment
WO2022267759A1 (en) Configuration method and configuration apparatus for domain name service (dns)
CN114257426B (en) Background flow generation method, device, electronic equipment and storage medium
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN115587053A (en) Memory area determination method and device, electronic equipment and computer readable medium
CN112738175B (en) Request processing method and related equipment
US20210273907A1 (en) Method for Domain Name Query, Electronic Device, and Storage Medium
CN110855782B (en) Service calling system, method, electronic equipment and readable storage medium
WO2015192497A1 (en) Communication link sending method and apparatus, and terminal
CN108667769B (en) Domain name tracing method and device
CN116501450B (en) Translation control method, binary translation method, instruction execution method and device
CN108289084B (en) Access traffic blocking method and apparatus, and non-transitory computer-readable storage medium

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 471000 5th floor, building 3, Shunxing Information Technology Park, Luolong District, Luoyang City, Henan Province

Patentee after: Luoyang Zhongxinjia Artificial Intelligence Technology Innovation Research Institute Co.,Ltd.

Country or region after: China

Address before: 471000 5th floor, building 3, Shunxing Information Technology Park, Luolong District, Luoyang City, Henan Province

Patentee before: Luoyang zhongxinjia Intelligent Network Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240322

Address after: 844000, 3rd Floor, Building S1, No. 197 Chaoyang Road, Village 17, Duolaitebage Township, Kashgar City, Xinjiang Uygur Autonomous Region

Patentee after: Kashgar Zhongxinjia Big Data Service Co.,Ltd.

Country or region after: China

Address before: 471000 5th floor, building 3, Shunxing Information Technology Park, Luolong District, Luoyang City, Henan Province

Patentee before: Luoyang Zhongxinjia Artificial Intelligence Technology Innovation Research Institute Co.,Ltd.

Country or region before: China