The application relates to the field of
network communication and discloses a communication method for
virtual machine elastic
public network IP based on multi-network card isolation, which comprises the following steps: constructing a
management plane logical domain and a business plane logical domain in a
cloud management platform, dynamically mounting two
virtual network cards for a target
virtual machine to access two logical domains; deploying a policy routing
daemon in the
virtual machine, establishing a two-way
communication channel with the cloud platform, and not containing a preset routing script in a virtual
machine image; in response to an elastic
public network IP binding request, establishing one-to-one NAT mapping in a network node, generating a structured parameter and delivering the structured parameter to the
daemon; the
daemon dynamically adds a routing entry in a kernel
routing table, maintains a connection tracking table, forces an established communication flow to use an initial exit network card, and dynamically adjusts a
timeout or cleans up a connection
record according to a binding or unbinding event. The application realizes physical isolation of management flow and business flow, session maintenance and zero-dependence on-demand configuration, and improves cloud platform security and operation and maintenance efficiency.