Introduction
A network instance (NI) enables network connectivity for edge applications, allowing them to connect with external networks and other apps on the same node. This article explains how to manage NIs using the ZEDEDA CLI, including creation, updates, and deletion commands, with examples for each action.
Prerequisites
This is a series of articles. You will likely follow them in this order.
- Network Instance Overview
- Create a Network Instance
- Manage a Network Instance
- Use the ZEDEDA CLI to Manage a Network Instance - You are here!
Create a network instance
Create a network instance from the ZCLI.
zcli network-instance create <name> [--title=title] --edge-node=<edge-node> [--default] [--port=port] --kind=[switch|local|cloud] --ip-type=[v4|v6] [--subnet=<subnet-id>] [--gateway=<gateway>] [--domain=<domain>] [--ntp=<ntp>] [--nameserver=<dns>...] [--dhcp-range=<range>] [--static-dns=<hostname:ip-list>...] [--config=<path>] [--tags=<key:value>...]
zcli network-instance create MY-NET-INST --edge-node=MY-NODE --kind=local --ip-type=v4 --port=uplink
View a network instance
After you create network instances, you can view them.
zcli network-instance show
Update a network instance
After you create a network instance, you can update it whenever things change.
zcli network-instance update <name> [--default] [--port=port] [--title=title] [--subnet=<subnet-id>] [--gateway=<gateway>] [--domain=<domain>] [--ntp=<ntp>] [--nameserver=<dns>...] [--dhcp-range=<range>] [--static-dns=<hostname:ip-list>...] [--config=<path>] [--tags=<key:value>...]
zcli network-instance update MY-NET-INST --ntp=192.168.1.10
Delete a network instance
After you add a network instance, you can delete it if you no longer need it. If you don’t use the -f option, you’ll be prompted to confirm.
zcli network-instance delete <name> [-f]
zcli network-instance delete MY-NET-INST -f
Next steps
This is a series of articles. You will likely follow them in this order.
- Network Instance Overview
- Create a Network Instance
- Manage a Network Instance
- Use the ZEDEDA CLI to Manage a Network Instance - You are here!
After you’ve completed the series, you might be interested in the following articles.
- See Network Instances: a use case for an example of using adapter labels to implement multi-path routing with failover and port-forwarding restrictions.
- Deploy the edge application instance on the edge node to instantiate the app.
- Manage edge nodes and manage edge apps.