The embodiment of the invention relates to the technical field of
virtual network resource scheduling, and provides a port mapping method and device for multiple private clouds to share an elastic
public network IP, and the method comprises the steps: creating multiple private clouds in a Cloud platform, and configuring and sharing one elastic
public network IP for the multiple private clouds; an ARP
pickup flow table of the elastic
public network IP is configured on a gateway node of the elastic public network IP through a breip network bridge of the Cloud pods platform, the ARP
pickup flow table is used for guiding a
data center network to guide the flow accessing the elastic public network IP to the gateway node of the elastic public network IP, the gateway node is a node deployed in a centralized manner on the Cloud pods platform, and the flow of the elastic public network IP is guided by the
data center network to the gateway node of the elastic public network IP. The public network flow
processing module is used for uniformly
processing public network flow of all private clouds sharing an elastic public network IP; and configuring a
network address translation rule on the breip network bridge, and mapping a specified port of the elastic public network IP to an
intranet IP of the target
virtual machine in the corresponding private cloud and a port of the corresponding service. An elastic public network IP is shared in a
virtual machine service scene of multiple tenants and multiple private clouds.