Virtual IP realization method

A network card and application service technology, applied in electrical components, transmission systems, etc., can solve the problems of increasing network construction and maintenance costs, labor costs, etc., and achieve good scalability, save labor costs, and reduce construction and maintenance costs. Effect

Active Publication Date: 2015-02-25
FEITIAN TECHNOLOGIES
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Existing virtual IP implementation methods, taking a computer cluster system composed of multiple servers as an example, are mostly implemented through manual configuration of virtual IP, which consumes labor costs; the existing virtual IP implementation methods also have By adding a network address translation (NAT) device to convert the IP

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtual IP realization method
  • Virtual IP realization method
  • Virtual IP realization method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0045] Example 1

[0046] In order to have a deeper understanding of the implementation method of a virtual IP provided by the present invention, first, in Embodiment 1, the use of the implementation method of the virtual IP proposed by the present invention in the dual-system hot standby application scenario is described, as shown in figure 1 As shown, the details are as follows:

[0047] Step 101: start the machine, start the regular heartbeat monitoring and record the monitoring log in real time;

[0048] Step 102: Determine the preset switching mode and the state of the machine. If it is the master host mode / master, go to step 103; if it is the master backup mode / master, go to step 107; if it is the master backup mode / standby, go to step 105;

[0049] In this embodiment, preferably, the preset switching modes shown include host host mode, host standby mode, and host standby mode, and the state of the local machine can be host or standby.

[0050] Step 103: Detect whe

Example Embodiment

[0085] Example 2

[0086] like image 3 Shown is a kind of virtual IP realization method based on Windows platform provided by this embodiment 2, including the following contents:

[0087] Step 301: Obtain the network card ID and network card description information bound to the IP from the database according to its own IP;

[0088] For example, its own IP is 192.168.16.47.

[0089] Step 302: Obtain the virtual IP and virtual IP subnet mask from the database;

[0090] For example: the virtual IP is 192.168.25.200, and the virtual IP subnet mask is 255.255.255.0.

[0091] Step 303: Obtain the field value indicating whether the virtual IP has been set from the database;

[0092] For example: the obtained field value is flag.

[0093] Step 304: Call the SetupDiGetClassDevs function to obtain the installed device information set;

[0094] For example: the obtained installed device information collection is:

[0095] ({650D5BB1-9BB4-45CD-90C8-ECE70B72EB35},

[0096] {E90A38FA-

Example Embodiment

[0134] Example 3

[0135] This embodiment is provided on the basis of the dual-system hot backup solution provided in Embodiment 1, wherein figure 1 The process of automatic configuration to realize virtual IP and start application service described in the specific implementation based on linux platform is as follows Pic 4-1 shown, including the following steps:

[0136] Step 401: Obtain the network card ID bound to its own IP from the database according to its own IP, and obtain the virtual IP and virtual IP subnet mask from the database;

[0137] For example, the obtained network card ID is eth0, the obtained virtual IP is 192.168.25.100, and the obtained virtual IP subnet mask is 255.255.255.0.

[0138] Step 402: Execute the query configuration information command;

[0139] For example: the query configuration information command is: ifconfig eth0:0.

[0140] Step 403: Judging whether the configuration information of the network card corresponding to the network card ID i

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a virtual IP realization method and belongs to the technical field of a computer communication network. The method includes allowing a computer to acquire a network card ID boned with the computer and the network card description information from a database according to the own IP, acquiring a virtual IP and a virtual IP subnet mask from the database, forbidding the network card corresponding to the network card ID by invoking an equipment drive program, bonding the virtual IP and the virtual IP subnet mask which are acquired from the database with the network card corresponding to the network card ID by invoking the drive program, or deleting the virtual IP and the virtual IP subnet mask which correspond to register tables of the network card corresponding to the network card ID, then starting the network card corresponding to the network card ID by invoking the equipment drive program, and realizing the virtual IP adding and deleting functions of the computer. Manual operation is omitted, and labor force cost is saved.

Description

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Owner FEITIAN TECHNOLOGIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products