CN112118327A - 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 PDFInfo
- Publication number
- CN112118327A CN112118327A CN202010771463.3A CN202010771463A CN112118327A CN 112118327 A CN112118327 A CN 112118327A CN 202010771463 A CN202010771463 A CN 202010771463A CN 112118327 A CN112118327 A CN 112118327A
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols 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 advantages 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.
Description
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 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 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 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 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 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 example to which private network IP belongs } { elastic public network IP } vpn-instance { public network vrf example } ac name { ac name } 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 an embodiment, the method includes calling and modifying a dnat interface by using a preset rule, judging whether the called and modified dnat interface returns an ID of a unbinding operation of a modified dnat operation or an ID of a binding operation, and if the called and modified dnat interface does not return an ID of a unbinding operation of a modified dnat operation or an ID of a binding 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 a new mapping relation between the private network IP and the public network IP of the elastic network card.
The configuration is as follows: nat server protocol { protocol type } global { elastic public network IP } { public network port number } vpn-instance { public network vrf instance } instance { instance of private network to be modified IP } { private network port number } vpn-instance { vrf instance to which private network IP belongs }
In one embodiment, 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 devices.
As shown in fig. 2, according to an embodiment of the present invention, there is further provided a system for conveniently and quickly modifying an IP of an elastic network card under a public cloud, 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 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 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 modifying the IP of the elastic network card conveniently and quickly 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 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.
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 a new mapping relation between the private network IP and the public network IP of the elastic network card.
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. The utility model provides a system for convenient and fast's modification elasticity network card IP under public cloud, its characterized in that, this system for convenient and fast's modification elasticity network card IP under public cloud includes:
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.
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 true CN112118327A (en) | 2020-12-22 |
CN112118327B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112968802A (en) * | 2021-02-25 | 2021-06-15 | 紫光云技术有限公司 | 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 |
CN113766042A (en) * | 2021-01-20 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Container address configuration method, system, device, equipment and medium |
Citations (3)
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 |
-
2020
- 2020-08-04 CN CN202010771463.3A patent/CN112118327B/en active Active
Patent Citations (3)
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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766042A (en) * | 2021-01-20 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Container address configuration method, system, device, equipment and medium |
CN112968802A (en) * | 2021-02-25 | 2021-06-15 | 紫光云技术有限公司 | 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 |
CN112968802B (en) * | 2021-02-25 | 2023-04-18 | 紫光云技术有限公司 | Universal method for managing IP state and relation of elastic public network |
Also Published As
Publication number | Publication date |
---|---|
CN112118327B (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
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 | |
CN109040207B (en) | Method, device and equipment for accessing user mode network file system | |
CN111010340B (en) | Data message forwarding control method and device and computing device | |
CN109787864A (en) | A kind of network automatic test approach, device, terminal and storage medium based on Netperf | |
CN102664958A (en) | Transparent computing system | |
CN114978910B (en) | Time sensitivity realization method and system of virtualization core network | |
CN115379010A (en) | Container network construction method, device, equipment and storage medium | |
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 | |
CN112702362B (en) | Method and device for enhancing TCP/IP protocol stack, electronic equipment and storage medium | |
CN114039930A (en) | Data packet processing method and system | |
CN113242299A (en) | Disaster recovery system, method, computer device and medium for multiple data centers | |
WO2023159956A1 (en) | Bare metal server inspection and deployment method and apparatus, and device and medium | |
CN114500341B (en) | Terminal real-time management and control method under wide area network and management and control server | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Configuration Commands | |
CN110868318B (en) | Method and device for generating network access relation, electronic equipment and storage medium | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Configuration Commands | |
Cisco | XRemote Commands |
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 |