This Help Center is no longer being updated. It stays available as a reference for the classic ZEDEDA Cloud GUI. For the new console and current releases, see the ZEDEDA documentation at docs.zededa.com for doc updates and info about new releases.

Use the ZEDEDA CLI to Manage a Network

Introduction

A network handles routing for edge node hardware to pass traffic to and from ZEDEDA Cloud for management purposes, for example. This article explains how to manage a network using the ZEDEDA CLI, including creation, updates, and deletion commands, with examples for each action.

Prerequisites

ZCLI is running.

This is a series of articles. You will likely follow them in this order.

  1. Network Overview
  2. Network Connectivity Details
  3. Create a Network
  4. Manage a Network
  5. Use the ZEDEDA CLI to Manage a Network - You are here!

Create a Network

Create a network from ZCLI.

zcli network create <name> --project=<project> --kind=[Portv4|Portv6] --dhcp=[client|server|static|passthrough|static-adapter-specific] [--wifi-config=<file-path> | --cellular-config=<APN>] [--static-dns=<hostname:ip>...] [--subnet=<subnet-id>] [--gateway=<gateway>] [--domain=<domain>] [--nameserver=<dns>...] [--dhcp-range=<range>] [--title=title] [--description=<description>] [--proxy-network=on|off | --proxy-pacfile=<pacfilepath> | --proxy-static=<filepath> | --proxy-url=<pacfileurl>] [--proxy-certificate=<proxy-certificate>...]
Example Static
zcli network create MY-STATIC-NET --project=MY-PROJ --kind=Portv4 --dhcp=static
Example Adapter Specific
zcli network create MY_ADAP_SPEC_NET --project=MY-PROJ --kind=Portv4 --dhcp=static-adapter-specific

View a Network

After you create networks, you can view them.

zcli network show

Update a Network

After you create a network, you can update it whenever things change.

zcli network update <name> [--title=title] [--description=<description>] [--wifi-config=<file-path> | --cellular-config=<APN>] [--disable-proxy=[true|false] | --proxy-network=[on|off] | --proxy-pacfile=<pacfilepath> | --proxy-static=<filepath> | --proxy-url=<pacfileurl>] [--proxy-certificate=<proxy-certificate>...][--mtu=<mtu>]
Example
zcli network update MY-NET –-disable-proxy=true

Delete a Network

After you add a network, 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 delete <name> [-f]
Example
zcli network delete MY-NET -f

 

Next Steps

This is a series of articles. You will likely follow them in this order.

  1. Network Overview
  2. Network Connectivity Details
  3. Create a Network
  4. Manage a Network
  5. Use the ZEDEDA CLI to Manage a Network - You are here!

 

After you’ve completed the series, you might be interested in the following articles. 

  1. See Network Instances: a use case for an example of using adapter labels to implement multi-path routing with failover and port-forwarding restrictions.
  2. Deploy the edge application instance on the edge node to instantiate the app.
  3. Manage edge nodes and manage edge apps.
Was this article helpful?
0 out of 0 found this helpful