network create
limactl network create
Create a Lima network
limactl network create NETWORK [flags]
Examples
Create a network:
$ limactl network create foo --gateway 192.168.42.1/24
Connect VM instances to the newly created network:
$ limactl create --network lima:foo --name vm1
$ limactl create --network lima:foo --name vm2
Options
--gateway string gateway, e.g., "192.168.42.1/24"
-h, --help help for create
--interface string interface for bridged mode
--mode string mode (default "user-v2")
Options inherited from parent commands
--debug Debug mode
--log-format string Set the logging format [text, json] (default "text")
--log-level string Set the logging level [trace, debug, info, warn, error]
--tty Enable TUI interactions such as opening an editor. Defaults to true when stdout is a terminal. Set to false for automation.
-y, --yes Alias of --tty=false
SEE ALSO
- limactl network - Lima network management