For the complete documentation index, see llms.txt. This page is also available as Markdown.

Networking

AceCloud networking provides a full software-defined networking stack for your cloud infrastructure. You can create isolated virtual networks, manage traffic with security groups, expose services with floating IPs, and distribute load across instances.

Resources

Resource
Command
Alias
Description

ace vpc

ace network

Virtual private clouds with subnets

ace vpc router

Connect VPCs and attach external gateways

ace security-group

ace sg

Firewall rules for instances

ace floating-ip

ace fip

Public IP addresses for instances

ace load-balancer

ace lb

Application and network load balancers

Typical Workflow

A standard networking setup follows this sequence:

# 1. Create a VPC with a subnet
ace vpc create --name prod-vpc \
  --subnet-name prod-subnet \
  --subnet-cidr 10.0.0.0/24

# 2. Create a router and attach the external gateway
ace vpc router create --name prod-router
ace vpc router set-gateway --router <router-id> --network <external-network-id>

# 3. Connect your subnet to the router
ace vpc router add-interface --router <router-id> --subnet <subnet-id>

# 4. Create a security group with SSH and HTTP access
ace sg create --name web-sg
ace sg rule-add --sg <sg-id> --protocol ssh
ace sg rule-add --sg <sg-id> --protocol http

# 5. Launch an instance (using the VPC and security group)
ace instance create --name web-server \
  --flavor C4i.medium \
  --image Ubuntu-24.04-LTS \
  --network <vpc-id> \
  --security-group <sg-id> \
  --key my-key

# 6. Allocate and associate a floating IP
ace fip create --network <external-network-id>
ace fip associate --ip <floating-ip> --instance <instance-id>

# 7. (Optional) Set up a load balancer
ace lb create --name web-lb --subnet <subnet-id> --type ALB
ace lb listener create --name http-listener --protocol HTTP --port 80 --lb <lb-id>
ace lb pool create --name web-pool --protocol HTTP --algorithm ROUND_ROBIN --listener <listener-id>

Global Flags

All networking commands support the standard global flags:

Flag
Short
Description

--output

-o

Output format: table (default), json, yaml

--verbose

-v

Enable verbose output

--project

Override project ID

--region

Override region

Last updated