Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Connect a Switch to Mist Cloud via a Proxy Server Using Cloudx

Follow this workflow to connect an EX Series switch to the Mist cloud by using a proxy server.

Juniper CloudX Overview

Juniper CloudX, integrated natively into Junos OS, is an advanced architecture that ensures faster and secure communication between Juniper switches and the Mist cloud. It is responsible for creating a secure connection between the switch and the Mist cloud. CloudX-enabled switches can be monitored and managed by cloud services.

CloudX applies to both new and existing switches. It enables the new switches to communicate directly over HTTPS 443 when they are onboarded to Mist cloud via ZTP. With CloudX enabled, the existing switches that are connected to the Mist cloud via TCP port 2200 will have their connection switched to CloudX with no impact on the data plane. For switches to connect and communicate using CloudX over TCP 443, the following firewall port must be opened: jma-terminator.[xx].mist.com(TCP 443). The variable [xx] should be replaced by the environment name.

Benefits of CloudX:

  • Keeps the data on the cloud up to date. Events are sent to the cloud every 10-15 seconds and stats are updated every 60 seconds.
  • Leverages the Junos Telemetry Interface (JTI), which ensures asynchronous and faster communication by bypassing any polling from the cloud to the switch.
  • Enables switches to connect to the cloud over HTTPS port 443, like Mist APs. You do not need to open any non-standard ports on the firewall.
  • Enables switches to communicate with the Mist cloud via a proxy server. You can statically define a proxy server or dynamically send proxy server details via DHCP Option 43. For more information, see Connect a Switch to Mist Cloud via a Proxy Server Using Cloudx.
  • Offers packet capture for switches on the Mist Cloud. You can initiate packet capture on a single switch port or a range of ports. You can leverage the on-demand packet capture feature in Mist to view transit traffic or control traffic. For more information, refer to Enable Packet Capture on a Switch.

Availability of CloudX

The following table lists the platforms that support CloudX in different Junos releases. The table lists multiple Junos versions for each platform. Different models (variants) within each platform are also supported. So, the EX4100-F variant of the EX4100 Series is also supported. We recommend that you upgrade the switch to a Junos suggested release for the CloudX support.

Note:

For CloudX to work, you must ensure that the firewall port towards jma-terminator.xx.mist.com is open and SSL decryption is disabled on the firewall (for more information, refer to Juniper Mist Firewall Ports and IP Addresses for Firewall Configuration). To check if your switch is communicating with Mist cloud by using CloudX, refer to the steps listed in Troubleshooting Juniper CloudX. If you still don't see CloudX enabled on your switch even after upgrading it to a supported Junos release, contact Juniper support.

Table 1: CloudX-Supported Platforms

Platforms

Supported Junos Release

CloudX Availability

EX2300/EX3400

23.4R2-S4 and above

24.2R1-S2 and above

Generally Available
EX4000

24.4R1 and above

24.4R1-S2 and above

Generally Available

EX4400/EX4100

22.4R2-S1 and above

22.4R3 and above

23.4R2 and above

24.2R1 and above

Generally Available

EX4650/QFX5120

23.4R2-S4 and above

24.2R1-S2 and above

Generally Available
Note:
  • The following Junos versions do not support CloudX: 23.1R1 and 22.1-22.3.

  • All variants of each switch model listed in this table also support CloudX. For example, if the table lists EX4100, assume that the EX4100-F switches also support CloudX.

If you face any issues with CloudX, you can troubleshoot it by following the steps listed in Troubleshooting Juniper CloudX.

Connect a Switch to Mist Cloud via a Dynamic Proxy Server

Before you connect the switch to the Mist cloud via a dynamic proxy server, ensure that the following prerequisites are met:

  • The switch is onboarded to the Mist cloud using the claim code or activation code.

  • The switch is running a CloudX-supported Junos version. For more information, see Juniper CloudX Overview.

  • The DHCP server is able to hand out the proxy server information (via Option 43) and other elements such as IP Address, DNS, and default route.

  • The switch can reach the HTTP proxy server over an IP network.

  • The HTTP proxy server can redirect traffic to the Mist cloud. This example shows how to configure the proxy server:

To connect a switch to Mist cloud via a dynamic proxy server:

  1. Power on the switch.
  2. Connect the switch to the uplink (via OOB or in-band port).

    The switch sends a DHCP Discover message and accepts the Offer message along with DHCP proxy server information sent via Option 43. The switch stores the proxy server information at /var/etc/phc_vendor_specific_info.xml. The switch reaches out to the proxy server during the ZTP boot-up process and connects to the Mist cloud via HTTP proxy server.

  3. Log in to the switch and verify the connectivity to the Mist cloud by using the following CLI command:

    show system connections | grep port used for connectivity between switch and proxy offered by DHCP

  4. In case the switch does not connect to the cloud, collect logs from the following files on the switch and create a support ticket:
    /var/log/mcd.log, /var/log/messages and RSI

Connect a Switch to Mist Cloud via a Static Proxy Server

If a switch cannot receive the proxy information via DHCP, you can configure it with a static proxy server through which the switch can connect to the Mist cloud. In this case, the DHCP server does not hand out the proxy server information via Option 43.

Before you connect the switch to the Mist cloud via a static proxy server, ensure that the following prerequisites are met:

  • The switch is onboarded to the Mist cloud using the claim code or activation code.

  • The switch has the configuration management option enabled in Mist. If not, you will need to use the switch CLI to configure the proxy server.

  • The switch is running the Junos version 21.4R3-S4, 22.4R2-S1, or above.

  • The local DHCP server is able to hand out IP address, DNS, default route, or statically defined route on the switch. This process involves staging the switch before establishing the cloud connectivity. If this prerequisite is met, the switch will be able to reach the HTTP proxy server over an IP network.

To connect a switch to Mist cloud via a static proxy server:

  1. Log in to the Mist portal (manage.mist.com).
  2. Click Organization > Site Configuration > site-name to navigate to the site where the switch is onboarded.
  3. On the Site Proxy tile of the site configuration page, configure the proxy information, as shown below:
  4. Stage the switch in a non-proxy environment to connect to the cloud. If the switches are staged, they can gather the proxy information from the Mist cloud (which you configured in the previous step). Staging in this context means connecting the switch to the Mist cloud in a non-proxy environment before deployment.

    When you complete the above steps, the switch will be able to reach the proxy server during the ZTP process.

  5. If the switch is not connecting to the proxy server during the ZTP process, flap the uplink port to force the switch to connect to the proxy server.
  6. Log in to the switch and verify the connectivity to Mist cloud by using the following CLI command:
    show system connections | grep port used for connectivity between switch and proxy
  7. In case the switch is not connecting to the cloud, collect logs from the following files on the switch and open a support case with Juniper support:
    /var/log/mcd.log, /var/log/messages and RSI