CN112118327B - Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud - Google Patents

Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud Download PDF

Info

Publication number
CN112118327B
CN112118327B CN202010771463.3A CN202010771463A CN112118327B CN 112118327 B CN112118327 B CN 112118327B CN 202010771463 A CN202010771463 A CN 202010771463A CN 112118327 B CN112118327 B CN 112118327B
Authority
CN
China
Prior art keywords
elastic
unbinding
interface
public network
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
CN202010771463.3A
Other languages
Chinese (zh)
Other versions
CN112118327A (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.)
Unicloud Nanjing Digital Technology Co Ltd
Original Assignee
Unicloud Nanjing Digital 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 Unicloud Nanjing Digital Technology Co Ltd filed Critical Unicloud Nanjing Digital Technology Co Ltd
Priority to CN202010771463.3A priority Critical patent/CN112118327B/en
Publication of CN112118327A publication Critical patent/CN112118327A/en
Application granted granted Critical
Publication of CN112118327B publication Critical patent/CN112118327B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

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

Abstract

The invention discloses a method and a system for conveniently and quickly modifying an elastic network card IP under a public cloud. Has the beneficial effects that: the invention can modify the IP of the elastic network card, so that the bound IP and dnat of the elastic public network are not influenced; by adopting the method of the invention, the private network IP of the elastic network card can be flexibly modified, and when the private network IP is bound to a specific virtual machine and the elastic public network IP or the dnat rule is bound, the existing service is not influenced when the private network IP or the dnat rule is modified, and various binding relations are kept unchanged.

Description

Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud
Technical Field
The invention relates to the technical field of elastic network card IP modification, in particular to a method and a system for conveniently and quickly modifying an elastic network card IP under public cloud.
Background
An Elastic Network Interface (ENI) is a virtual Network card that can be bound to a private Network VPC type ECS instance. The network card can be used as a network card, the most representative characteristic is the IP address and the MAC address of the network card, and both the MAC address and the IP address can be modified.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a method and a system for conveniently and quickly modifying an elastic network card IP under a public cloud so as to overcome the technical problems in the prior related art.
Therefore, the invention adopts the following specific technical scheme:
according to one aspect of the invention, a method for conveniently and quickly modifying the IP of the elastic network card under a public cloud is provided, and the method for conveniently and quickly modifying the IP of the elastic network card under the public cloud comprises the following steps:
s1, calling an unbinding elastic public network IP (Internet Protocol) interface, and judging whether the unbinding elastic public network IP interface returns the ID (Identity document) of the unbinding operation and the ID of the elastic public network IP;
if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card;
if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful;
s2, if the ID polling of the unbinding operation is successful, executing and calling the IP address interface of the modified elastic network card, and if the ID polling of the unbinding operation is failed, ending the process;
S3, after calling and modifying the IP Address interface of the elastic Network card, judging whether the IP interface of the unbinding elastic public Network returns the ID of the unbinding operation and the ID of the floating IP, if the IP interface of the unbinding elastic public Network returns the ID of the unbinding operation and the ID of the floating IP, continuing calling and binding the IP interface of the elastic public Network, otherwise calling and modifying a dnat (Destination Address Translation) interface;
s4, if the binding elastic public network IP interface is called continuously, judging whether ID polling binding of the binding operation of the elastic public network IP is successful again, if the ID polling binding of the binding operation is successful, calling and modifying the dnat interface continuously, otherwise, ending the process;
s5, calling and modifying a dnat interface by adopting a preset rule, judging whether the called and modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the called and modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, continuing to execute other operations;
if the dnat interface is called to return the ID of the unbinding operation or the ID of the binding operation of the modified dnat operation, whether the polling dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful or not is judged, if the polling dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
Further, the steps of calling the unbundling elastic public network IP interface, and judging whether the unbundling elastic public network IP interface returns the ID of the unbundling operation and the ID of the elastic public network IP further include:
the interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card is modified.
Further, the calling and unbinding the elastic public network IP interface, and determining whether the unbinding elastic public network IP interface returns to the ID of the unbinding operation and the ID of the elastic public network IP, where the unbinding operation further includes the following steps:
and the mapping relation between the elastic public Network IP and the private Network IP before the elastic Network card is modified is released, and NAT (Network Address Translation) configuration in the virtual firewall is deleted.
Further, after the calling and modifying the IP address interface of the elastic network card, judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, continuing to call and bind the elastic public network IP interface, otherwise, calling and modifying the dnat interface, wherein the binding operation comprises the following steps:
and establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
Further, the invoking of the modified dnat interface by using the preset rule determines whether the invoking of the modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the invoking of the modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, the execution of other operations is continued, and the step of using the preset rule further includes:
and replacing the NAT configuration in the virtual firewall with a new mapping relation between the private network IP and the public network IP of the elastic network card.
Furthermore, unbinding of the elastic public network IP, binding of the elastic public network IP and modification of the dnat are all operations of asynchronously issuing equipment.
According to another aspect of the present invention, a system for conveniently and quickly modifying an IP of an elastic network card under a public cloud is provided, and the system for conveniently and quickly modifying the IP of the elastic network card under the public cloud comprises:
the elastic public network IP unbinding module is used for calling an unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP; if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card; if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful;
The polling unbinding module is used for executing calling and modifying the IP address interface of the elastic network card if the ID polling unbinding of the unbinding operation is successful after the elastic public network IP interface returns the ID of the unbinding operation, and ending the process if the ID polling unbinding of the unbinding operation fails;
the IP address module of the modified elastic network card is used for calling and modifying the IP address interface of the elastic network card and then judging whether the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, the IP interface of the bound elastic public network is continuously called, and if not, the dnat interface is called and modified;
the polling binding module is used for judging whether ID polling binding of the binding operation of the elastic public network IP is successful again if the elastic public network IP interface is called continuously, and calling and modifying the dnat interface continuously if the ID polling binding of the binding operation is successful, otherwise, ending the process;
the modified dnat module is used for calling and modifying a dnat interface by adopting a preset rule, judging whether the called and modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the called and modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, continuing to execute other operations; if the dnat interface is called to modify and return the ID of the unbinding operation of the dnat operation or the ID of the binding operation is successful, whether the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful is judged, if the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
Further, the step of calling the unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP further includes the following steps:
the interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card to the outside is modified.
Further, the calling and unbinding the elastic public network IP interface, and determining whether the unbinding elastic public network IP interface returns to the ID of the unbinding operation and the ID of the elastic public network IP, where the unbinding operation further includes the following steps:
and the mapping relation between the elastic public network IP and the private network IP before the elastic network card is modified is released, and the NAT configuration in the virtual firewall is deleted.
Further, after the calling and modifying the IP address interface of the elastic network card, judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, continuing to call and bind the elastic public network IP interface, otherwise, calling and modifying the dnat interface, wherein the binding operation comprises the following steps:
and establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
The invention has the beneficial effects that:
the invention can modify the IP of the elastic network card, so that the bound IP and dnat of the elastic public network are not affected. By adopting the method of the invention, the private network IP of the elastic network card can be flexibly modified, and when the private network IP is bound to a specific virtual machine and the elastic public network IP or the dnat rule is bound, the existing service is not influenced when the private network IP or the dnat rule is modified, and various binding relations are kept unchanged.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for conveniently and quickly modifying an IP of an elastic network card under a public cloud according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a system for conveniently and quickly modifying an IP of an elastic network card under a public cloud according to an embodiment of the present invention.
Detailed Description
For further explanation of the various embodiments, the drawings which form a part of the disclosure and which are incorporated in and constitute a part of this specification, illustrate embodiments and, together with the description, serve to explain the principles of operation of the embodiments, and to enable others of ordinary skill in the art to understand the various embodiments and advantages of the invention, and, by reference to these figures, reference is made to the accompanying drawings, which are not to scale and wherein like reference numerals generally refer to like elements.
According to the embodiment of the invention, the method and the system for modifying the IP of the elastic network card conveniently and quickly under the public cloud are provided.
Referring to the drawings and the detailed description, the invention will be further described, as shown in fig. 1, according to the method for conveniently and quickly modifying the IP of the resilient network card in the public cloud, the method includes the following steps:
s1, calling the unbinding elastic public network IP interface, and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP;
if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card;
if the unbinding elastic public network IP interface returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful or not;
s2, if the ID polling of the unbinding operation is successful, executing and calling the IP address interface of the modified elastic network card, and if the ID polling of the unbinding operation is failed, ending the process;
s3, after calling and modifying the IP address interface of the elastic network card, judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, continuing calling and binding the elastic public network IP interface, otherwise calling and modifying the dnat interface;
S4, if the binding elastic public network IP interface is called continuously, judging whether the ID polling binding of the binding operation of the elastic public network IP is successful again, if the ID polling binding of the binding operation is successful, calling the modified dnat interface continuously, otherwise, ending the process;
s5, calling and modifying a dnat interface by adopting a preset rule, judging whether the called and modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the called and modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, continuing to execute other operations;
if the dnat interface is called to modify and return the ID of the unbinding operation of the dnat operation or the ID of the binding operation is successful, whether the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful is judged, if the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
In one embodiment, before the calling the unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP, the method further includes the following steps:
the interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card to the outside is modified.
In one embodiment, the invoking of the unbundling elastic public network IP interface and the judging of whether the unbundling elastic public network IP interface returns the ID of the unbundling operation and the ID of the elastic public network IP, because the elastic network card may bind the elastic public network IP, a special unbundling and binding interface is provided for the elastic network card to replace the NAT mapping relationship between the private network IP of the elastic network card and the elastic public network IP, the unbundling operation further includes the following steps:
and the mapping relation between the elastic public network IP and the private network IP before the elastic network card is modified is released, and the NAT configuration in the virtual firewall is deleted.
The configuration is as follows: nat static outgoing { private network IP to be modified } vpn-instance { vrf instance to which private network IP belongs } { elastic public network IP } vpn-instance { outbound public network vrf instance } acllname { acllname } reversible.
In one embodiment, after the IP address interface of the elastic network card is modified, whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP is judged, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, the elastic public network IP interface is continuously called, otherwise, the dnat interface is modified, and the binding operation includes the following steps:
and establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
In one embodiment, the method includes calling and modifying a dnat interface by a preset rule, judging whether the called and modified dnat interface returns an ID of a unbinding operation or an ID of a binding operation of a modified dnat operation, and if the called and modified dnat interface does not return an ID of a unbinding operation or an ID of a binding operation of a modified dnat operation, continuing to execute other operations.
The step of adopting the preset rule further comprises:
and replacing the NAT configuration in the virtual firewall with the mapping relation between the new private network IP of the elastic network card and the public network IP.
The configuration is as follows: nat server protocol type global public network IP public network port number vpn instance public network port number foreign network vrf instance entity private network IP private network port number to be modified vpn instance entity vrf instance private network IP belongs to.
In one embodiment, unbinding of the elastic public network IP, binding of the elastic public network IP, and modification of the dnat are operations of asynchronous issuing equipment.
As shown in fig. 2, according to an embodiment of the present invention, a system for conveniently and quickly modifying an IP of an elastic network card under a public cloud is further provided, including:
The elastic public network IP unbinding module 1 is used for calling an unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP; if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card; if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful;
the polling unbinding module 2 is configured to, after the elastic public network IP interface returns the ID of the unbinding operation, execute a call to modify the IP address interface of the elastic network card if the ID of the unbinding operation is successfully polled and unbound, and end the process if the ID of the unbinding operation is failed in polling and unbound;
the IP address module 3 of the modified elastic network card is used for calling and modifying the IP address interface of the elastic network card and then judging whether the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, the IP interface of the bound elastic public network is continuously called, and if not, the dnat interface is called and modified;
the polling binding module 4 is used for judging whether the ID polling binding of the binding operation of the elastic public network IP is successful again if the elastic public network IP interface is called and bound continuously, and calling and modifying the dnat interface continuously if the ID polling binding of the binding operation is successful, otherwise, ending the process;
A modified dnat module 5, configured to call a modified dnat interface by using a preset rule, determine whether the call of the modified dnat interface returns an ID of a unbinding operation of the modified dnat operation or an ID of a binding operation, and if the call of the modified dnat interface does not return an ID of a unbinding operation of the modified dnat operation or an ID of a binding operation, continue to execute other operations; if the dnat interface is called to modify and return the ID of the unbinding operation of the dnat operation or the ID of the binding operation is successful, whether the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful is judged, if the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
In one embodiment, before the calling the unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP, the method further includes the following steps:
the interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card to the outside is modified.
In one embodiment, the calling unbundling the elastic public network IP interface and determining whether the unbundling elastic public network IP interface returns to the ID of the unbundling operation and the ID of the elastic public network IP, where the unbundling operation further includes the following steps:
And the mapping relation between the elastic public network IP and the private network IP before the elastic network card is modified is released, and the NAT configuration in the virtual firewall is deleted.
In one embodiment, after the IP address interface of the elastic network card is modified, whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP is judged, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, the elastic public network IP interface is continuously called, otherwise, the dnat interface is modified, and the binding operation includes the following steps:
and establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
ActionId: ID of unbind or bind operation, EIP: elastic public network IP, EipId: ID of resilient public network IP.
In summary, with the above technical solution of the present invention, the present invention can modify the IP of the resilient network card, so that the bound resilient public network IP and dnat are not affected. By adopting the method of the invention, the private network IP of the elastic network card can be flexibly modified, and when the private network IP is bound to a specific virtual machine and the elastic public network IP or the dnat rule is bound, the existing service is not influenced when the private network IP or the dnat rule is modified, and various binding relations are kept unchanged.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for conveniently and quickly modifying an IP (Internet protocol) of an elastic network card under a public cloud is characterized by comprising the following steps:
s1, calling the unbinding elastic public network IP interface, and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP;
if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card;
if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful;
s2, if the ID polling of the unbinding operation is successful, executing and calling the IP address interface of the modified elastic network card, and if the ID polling of the unbinding operation is failed, ending the process;
s3, after calling and modifying the IP address interface of the elastic network card, judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, if the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the floating IP, continuing calling and binding the elastic public network IP interface, otherwise calling and modifying the dnat interface;
S4, if the binding elastic public network IP interface is called continuously, judging whether the ID polling binding of the binding operation of the elastic public network IP is successful again, if the ID polling binding of the binding operation is successful, calling the modified dnat interface continuously, otherwise, ending the process;
s5, calling and modifying a dnat interface by adopting a preset rule, judging whether the called and modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the called and modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, continuing to execute other operations;
if the dnat interface is called to modify and return the ID of the unbinding operation of the dnat operation or the ID of the binding operation is successful, whether the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful is judged, if the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
2. The method for conveniently and rapidly modifying the IP of the elastic network card under the public cloud according to claim 1, wherein the steps of calling the unbinding elastic public network IP interface, judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP or not further comprise:
The interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card to the outside is modified.
3. The method for modifying the IP of the elastic network card conveniently and quickly under the public cloud according to claim 2, wherein the step of calling the IP interface of the unbinding elastic public network and judging whether the IP interface of the unbinding elastic public network returns to the ID of the unbinding operation and the ID of the IP of the elastic public network comprises the following steps:
and the mapping relation between the elastic public network IP and the private network IP before the elastic network card is modified is released, and the NAT configuration in the virtual firewall is deleted.
4. The method for conveniently and quickly modifying the IP of the elastic network card under the public cloud according to claim 3, wherein after the IP address interface of the elastic network card is called and modified, whether the IP interface of the unbundling elastic public network returns the ID of the unbundling operation and the ID of the floating IP is judged, if the ID of the unbundling operation and the ID of the floating IP are returned by the unbundling elastic public network IP interface, the IP interface of the binding elastic public network is continuously called, otherwise, the dnat interface is called and modified, and the binding operation comprises the following steps:
and establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
5. The method for modifying the IP of the elastic network card conveniently and quickly under the public cloud according to claim 4, wherein the modifying dnat interface is called by adopting a preset rule, whether the ID of the unbinding operation of the modifying dnat operation or the ID of the binding operation is returned by calling the modifying dnat interface is judged, if the ID of the unbinding operation of the modifying dnat operation or the ID of the binding operation is not returned by calling the modifying dnat interface, other operations are continuously executed, and the step of adopting the preset rule further comprises the following steps:
and replacing the NAT configuration in the virtual firewall with the mapping relation between the new private network IP of the elastic network card and the public network IP.
6. The method for conveniently and rapidly modifying the IP of the elastic network card under the public cloud according to claim 5, wherein the unbinding of the IP of the elastic public network, the binding of the IP of the elastic public network and the modification of the dnat are asynchronous operation of issuing equipment.
7. A system for conveniently and quickly modifying the IP of an elastic network card under public cloud is characterized by comprising the following steps:
the elastic public network IP unbinding module is used for calling an unbinding elastic public network IP interface and judging whether the unbinding elastic public network IP interface returns the ID of the unbinding operation and the ID of the elastic public network IP; if the IP interface of the unbinding elastic public network does not return the ID of the unbinding operation, executing calling and modifying the IP address interface of the elastic network card; if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation, judging whether the ID polling of the unbinding operation is successful;
The polling unbinding module is used for executing calling and modifying the IP address interface of the elastic network card if the ID polling unbinding of the unbinding operation is successful after the elastic public network IP interface returns the ID of the unbinding operation, and ending the process if the ID polling unbinding of the unbinding operation fails;
the IP address module of the modified elastic network card is used for calling and modifying the IP address interface of the elastic network card and then judging whether the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, if the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP, the IP interface of the bound elastic public network is continuously called, and if not, the dnat interface is called and modified;
the polling binding module is used for judging whether ID polling binding of the binding operation of the elastic public network IP is successful again if the elastic public network IP interface is called continuously, and calling and modifying the dnat interface continuously if the ID polling binding of the binding operation is successful, otherwise, ending the process;
the modified dnat module is used for calling and modifying a dnat interface by adopting a preset rule, judging whether the called and modified dnat interface returns the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, and if the called and modified dnat interface does not return the ID of the unbinding operation of the modified dnat operation or the ID of the binding operation, continuing to execute other operations; if the dnat interface is called to modify and return the ID of the unbinding operation of the dnat operation or the ID of the binding operation is successful, whether the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful is judged, if the polling modification dnat operation of the ID of the unbinding operation or the ID of the binding operation is successful, other operations are continuously executed, and if not, the flow is ended.
8. The system for modifying the IP of the elastic network card conveniently and quickly under the public cloud according to claim 7, wherein the step of calling the IP interface of the unbinding elastic public network and judging whether the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the IP of the elastic public network further comprises the following steps:
the interface capable of modifying the private network IP is set for the elastic network card through a pre-configured technology, and the IP address parameter displayed by the elastic network card to the outside is modified.
9. The system for modifying the IP of the elastic network card conveniently and quickly under the public cloud according to claim 7, wherein the calling and unbinding the IP interface of the elastic public network and judging whether the IP interface of the unbinding elastic public network returns to the ID of the unbinding operation and the ID of the IP of the elastic public network, the unbinding operation further comprises the following steps:
and the mapping relation between the elastic public network IP and the private network IP before the elastic network card is modified is released, and the NAT configuration in the virtual firewall is deleted.
10. The system for modifying the IP of the elastic network card conveniently and quickly under the public cloud according to claim 7, wherein after the IP address interface of the elastic network card is called and modified, whether the IP interface of the unbinding elastic public network returns the ID of the unbinding operation and the ID of the floating IP is judged, if the ID of the unbinding operation and the ID of the floating IP are returned by the IP interface of the unbinding elastic public network, the IP interface of the binding elastic public network is continuously called, otherwise, the dnat interface is called and modified, and the binding operation comprises the following steps:
And establishing an NAT mapping relation between the elastic public network IP and the private network IP modified by the elastic network card, adding the NAT configuration in the virtual firewall, and recovering the binding relation between the elastic network card and the elastic public network IP.
CN202010771463.3A 2020-08-04 2020-08-04 Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud Active CN112118327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010771463.3A CN112118327B (en) 2020-08-04 2020-08-04 Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010771463.3A CN112118327B (en) 2020-08-04 2020-08-04 Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud

Publications (2)

Publication Number Publication Date
CN112118327A CN112118327A (en) 2020-12-22
CN112118327B true CN112118327B (en) 2022-05-31

Family

ID=73799607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010771463.3A Active CN112118327B (en) 2020-08-04 2020-08-04 Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud

Country Status (1)

Country Link
CN (1) CN112118327B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968802B (en) * 2021-02-25 2023-04-18 紫光云技术有限公司 Universal method for managing IP state and relation of elastic public network
CN113037815A (en) * 2021-02-25 2021-06-25 紫光云技术有限公司 Method for operating EIP (extended Access Point) under BWS (broadband remote Access Server) service interruption or EIP service interruption scene

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047256A1 (en) * 2009-08-21 2011-02-24 Babu Prakash Port chunk allocation in network address translation
CN103905302A (en) * 2012-12-28 2014-07-02 上海格尔软件股份有限公司 Method for binding source IP on Windows host adopting virtual network interface card
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047256A1 (en) * 2009-08-21 2011-02-24 Babu Prakash Port chunk allocation in network address translation
CN103905302A (en) * 2012-12-28 2014-07-02 上海格尔软件股份有限公司 Method for binding source IP on Windows host adopting virtual network interface card
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system

Also Published As

Publication number Publication date
CN112118327A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
EP0381365B1 (en) A system and method for interconnecting applications across different networks of data processing systems
CN112118327B (en) Method and system for conveniently and quickly modifying IP (Internet protocol) of elastic network card under public cloud
JP5676655B2 (en) Mobile broadband device and method for managing mobile broadband device
CN108540674B (en) Automatic testing method and device, computer equipment and storage medium
US10666503B1 (en) Network connection and termination system
CN113452686B (en) Data processing method, data processing device, proxy server and storage medium
CN111010340B (en) Data message forwarding control method and device and computing device
CN111045834A (en) Method, device and storage medium for accessing USB storage device under cloud desktop
CN114095430A (en) Processing method, system and working node of access message
CN111371897B (en) Reverse connection method, device and storage medium based on networking system
CN113268308B (en) Information processing method, device and storage medium
CN114095415B (en) Route determination method, device, gateway equipment and storage medium
CN115379010A (en) Container network construction method, device, equipment and storage medium
CN107911496A (en) A kind of VPN service terminal acts on behalf of the method and device of DNS
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN112003794B (en) Floating IP current limiting method, system, terminal and storage medium
CN109474525B (en) Message processing method, device, equipment and readable storage medium
CN114978910B (en) Time sensitivity realization method and system of virtualization core network
WO2023159956A1 (en) Bare metal server inspection and deployment method and apparatus, and device and medium
KR101432326B1 (en) Host posing network device and method thereof
CN114039930B (en) Data packet processing method and system
CN113242299A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN115499358B (en) SRv6-TE message forwarding method and forwarding equipment
CN115086216B (en) Test method and system for multiple virtual terminals
CN112689011B (en) Service transmission method, device, equipment and medium based on NFS protocol

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