upctl network create
Create a network
Examples
upctl network create --name "My Network" --zone pl-waw1 --ip-network address=10.0.1.0/24
upctl network create --name my_net --zone pl-waw1 --ip-network address=10.0.2.0/24,dhcp=true
Options
Option | Description |
---|---|
--name |
Names the network. |
--zone |
Zone where to create the network. Run upctl zone list to list all available zones. |
--router |
Add this network to an existing router. |
--ip-network |
A network interface for the server, multiple can be declared. Fields: address: string family: string gateway: string dhcp: true/false dhcp-default-route: true/false dhcp-dns: array of strings Default: [] |
--help , -h |
help for create Default: false |
Global options
Option | Description |
---|---|
--client-timeout , -t |
Client timeout to use in API calls. Default: 0s |
--config |
Configuration file path. |
--debug |
Print out more verbose debug logs. Default: false |
--force-colours |
Force coloured output despite detected terminal support. |
--no-colours |
Disable coloured output despite detected terminal support. Colours can also be disabled by setting NO_COLOR environment variable. |
--output , -o |
Output format (supported: json, yaml and human) Default: human |
Related commands
Command | Description |
---|---|
upctl network | Manage networks |