create
Create a LAN
Usage
ionosctl compute lan create [flags]Aliases
For lan command:
[l]For create command:
[c]Description
Use this command to create a new LAN inside a Virtual Data Center (VDC). A LAN is a virtual network segment that connects the NICs attached to it within a single datacenter (--datacenter-id).
Decide at creation time whether the LAN is:
private (
--public=false, the default): internal, datacenter-local traffic only, no direct internet route. This is the type required to later join a Cross-Connect.public (
--public=true): attached to an internet gateway; NICs on it can send/receive public internet traffic and be assigned public IPv4 addresses.
Optionally pass --ipv4-cidr to choose the private LAN's IPv4 range. Without it, IONOS assigns one automatically. The assigned block is shown in the IPv4CidrBlock column.
Optionally pass --pcc-id to immediately attach the LAN to a Cross-Connect (Private Cross-Connect), bridging it with private LANs in other VDCs in the same region. The LAN must be private and its IP range must not overlap the other members of the Cross-Connect.
NOTE: IP failover groups (a reserved IP that floats between servers for high availability) are NOT set here; configure them on a NIC after the LAN exists.
Use --wait (-w) to wait for the resource to reach AVAILABLE state.
Required values to run command:
Data Center Id
Options
Examples
Last updated
Was this helpful?