Skip to main content

Networks

CloudStack network types available through CMP. Each type has its own guest network model, routing behaviour, and package requirements.

Setup vs features

Admin setup for VPC packages and offerings: Virtual Router/VPC. Feature pages below cover how each network type works for customers and admins in CMP.

Network types​

Network typeSummaryPage
VPC NetworkPrivate cloud with tiers, virtual router, NAT, ACLs, VPNVPC Network β€” ready
Isolated NetworkDedicated guest network with its own virtual routerIsolated Network β€” ready
L2 NetworkLayer-2 only β€” no virtual router / UserData limitationsL2 Network
Shared NetworkShared guest network across accounts (zone-scoped)Shared Network
Documentation status

VPC Network and Isolated Network are documented end-to-end (CloudStack behaviour + CMP). L2 and Shared remain stubs until expanded.

Public IP association: Port Forwarding vs Static NAT​

CMP can attach a public IP to a VM using either Port Forwarding or Static NAT. Which method runs automatically is controlled by the Cloud Provider setting Default Network Strategy.

Public IP attach on Create Instance​

On the Create Instance page, when the customer requests a VM with public access, CMP does not leave networking as a separate manual step. Through CloudStack APIs it typically:

  1. Creates (or reuses) the guest network for the account
  2. Acquires a public IP address (or reuses Source NAT on an isolated network β€” see below)
  3. Attaches that IP to the new VM

How step 3 attaches the IP β€” Port Forwarding or Static NAT β€” is decided by Default Network Strategy on that Cloud Provider Setup. Customers do not pick the method on the Create Instance form; the admin setting drives this automated API flow.

Outside Create Instance, when a customer manually acquires or associates a public IP with a VM, they choose Port Forwarding or Static NAT themselves. Default Network Strategy does not force that choice.

What is Port Forwarding?​

Port Forwarding maps a specific public port to a specific private port on a VM.

  • A single public IP can be shared across multiple VMs
  • Different ports are forwarded to different VMs

Example:

Public endpointDestination
1.2.3.4:22VM1 port 22
1.2.3.4:80VM2 port 80

Use Port Forwarding when you want one public IP for multiple services or VMs.

What is Static NAT?​

Static NAT maps one public IP directly to one VM’s private IP.

  • The entire public IP is dedicated to a single VM
  • All ports are reachable on that IP (subject to firewall / ACL rules)
  • No need to configure individual port mappings

Use Static NAT when a VM needs a dedicated public IP.

Port ForwardingStatic NAT
Public IP to VMsOne IP β†’ many VMs (by port)One IP β†’ one VM
Port mappingExplicit public β†’ private portsAll ports (firewall permitting)
Best forSharing scarce public IPsDedicated IP per VM

Default Network Strategy (admin setting)​

Default Network Strategy tells CMP which CloudStack association method to use when it automatically attaches a public IP during Create Instance (network create/reuse β†’ acquire IP β†’ attach to VM via API).

Path: Settings β†’ Orchestrator β†’ Cloud Provider Setup β†’ open the setup β†’ Step 2: Provider Configuration β†’ Default Network Strategy

OptionEffect on Create Instance attach
Port ForwardingCMP creates port-forwarding rules from the public IP to the VM
Static NATCMP enables Static NAT so the public IP maps 1:1 to the VM
  • Who sets it β€” Admin on Cloud Provider Setup
  • When it applies β€” Automated public IP attach on Create Instance only
  • Manual association β€” Customer chooses Port Forwarding or Static NAT; strategy does not override
  • Exception β€” Isolated network Source NAT IP always uses Port Forwarding (see below)

Also documented in Connecting CMP to CloudStack β€” Provider Config.

Screenshot: CMP β€” Default Network Strategy in Provider Configuration

Important β€” Isolated Networks and Source NAT​

Source NAT always uses Port Forwarding

On Isolated Networks, the first public IP assigned to a VM is the network’s Source NAT IP.

That Source NAT IP supports Port Forwarding only β€” regardless of Default Network Strategy.

Static NAT (or Port Forwarding per the strategy) applies to additional acquired public IPs, not to the Source NAT address.

Details and reuse workflow: Isolated Network β€” Source NAT IP reuse.