Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents

Troubleshoot Your Switch Connectivity

date_range 10-Dec-24

You can get real-time statistics for a given switch interface by selecting the switch and clicking the Live Traffic Counters button, or drilling down on a specific interface or virtual chassis member and then doing the same. Traffic statistics include input and output, L2 and L3 errors, and BUM traffic.

Figure 1: Live Traffic Counters Live Traffic Counters

Viewing Switch Processes

Real-time statistics for the processes running on a given switch are available by selecting the switch and then drilling down to the switch Insights page. Click the View Live Process Detail button. Supports virtual chassis and virtual machines in addition to physical devices.

Figure 2: Live Process Detail Live Process Detail

Troubleshooting Switches

If the Juniper Mist™ portal shows a switch as disconnected when it is online and reachable locally, you can troubleshoot the issue. You need console access or SSH access to the switch to perform the troubleshooting steps listed in this topic.

To troubleshoot your switch:

  1. Ensure that the Junos OS version running on the switch supports zero-touch provisioning (ZTP). For example, the EX2300 and EX3400 switches require Junos OS version 18.2R3-S2 or later. The EX4300 switch requires Junos OS 18.4R2-S2 or later. The EX4600 and EX4650 switches require Junos OS 20.4R3 or later.
  2. Log in to the switch CLI and run show interfaces terse.
    content_copy zoom_out_map
    user@switch> show interface terse
    Interface        Admin  Link   Proto        Local
    ge-0/0/0         up     up
    irb.0            up     up     inet         192.168.3.24/24
    me0              up     down   
    me0.0            up     down   inet         192.168.3.24/24
    ...truncated...

    You should see the integrated routing and bridging (IRB) interface (irb.0) with an IP address. You might see multiple IRB interfaces, depending on the switch model (or in the case of a Virtual Chassis).

    At least one IRB interface needs to have a valid IP address. The switch can also connect using a management IP address, which you can see on the me0 interface. Ensure that either the irb0 or me0 interface has a valid IP address and has its Admin and Link states up.

  3. Ensure that the switch can reach the gateway.
  4. Use a ping test, as follows, to ensure that the switch can reach the Internet:
    content_copy zoom_out_map
    user@switch> ping 8.8.8.8 
    PING 8.8.8.8 (8.8.8.8): 56 data bytes
    64 bytes from 8.8.8.8: icmp_seq=0 ttl=117 time=22.996 ms
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=24.747 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=16.528 ms
    
    --- 8.8.8.8 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 16.528/21.424/24.747/3.535 ms
  5. Check if the switch can resolve oc-term.mistsys.net and jma-term.xx.mistsys.net by using a ping test. Sample ping tests are shown below:
    content_copy zoom_out_map
    user@switch> ping oc-term.mistsys.net 
    PING ab847c3d0fcd311e9b3ae02d80612151-659eb20beaaa3ea3.elb.us-west-1.amazonaws.com (13.56.90.212): 56 data bytes
    content_copy zoom_out_map
    user@switch> ping jma-terminator-staging.mistsys.net 
    PING a8481a00030ad459aac15af07d5f2c5b-75855524.us-east-1.elb.amazonaws.com (3.210.247.53): 56 data bytes
    ^C
    --- a8481a00030ad459aac15af07d5f2c5b-75855524.us-east-1.elb.amazonaws.com ping statistics ---
    1 packets transmitted, 0 packets received, 100% packet loss
    

    If the switch is not resolving oc-term.mistsys.net or jma-term.xx.mistsys.net, make sure that the switch has a DNS server configured.

    content_copy zoom_out_map
    user@switch> show configuration | display set | grep name-server 
    set system name-server 202.56.230.2
    set system name-server 202.56.230.7
    set system name-server 8.8.8.8

    If the switch doesn't have a DNS server, configure the server as shown in the following example: user@switch# set system name-server 8.8.8.8

  6. Ensure that the required firewall port (TCP port 2200 for oc-term.mistsys.net) is open.
    content_copy zoom_out_map
    user@switch> show system connections | grep 2200
    tcp4 0 0 192.168.3.24.64647 13.56.90.212.2200 ESTABLISHED

    See Device-to-Cloud Addresses and Ports to determine which port to enable, depending on your cloud environment.

    Note:

    The EX2300, EX3400, EX4100, EX4400, EX4650, EX5120 switches no loner need the port 2200. These switches connect to Mist cloud over HTTPS port 443. See also: Troubleshooting Juniper CloudX.

  7. Check the system time on the switch to make sure the time is correct.
    content_copy zoom_out_map
    user@switch> show system uptime 
    fpc0:
    --------------------------------------------------------------------------
    Current time: 2020-09-01 21:49:05 UTC
    Time Source: LOCAL CLOCK 
    System booted: 2020-08-27 06:57:04 UTC (5d 14:52 ago)
    Protocols started: 2020-08-27 07:01:35 UTC (5d 14:47 ago)
    Last configured: 2020-09-01 17:21:59 UTC (04:27:06 ago) by mist
    9:49PM up 5 days, 14:52, 2 users, load averages: 0.79, 0.65, 0.58

    If the system time is not correct, configure it. For more information, see Configure Date and Time Locally.

  8. Check device-id to make sure it is in the format <org_id>.<mac_addr>, as shown below:
    content_copy zoom_out_map
    user@switch# show system services outbound-ssh 
    traceoptions {
    file outbound-ssh.log size 64k files 5;
    flag all;
    }
    client mist {
    device-id ca01ea19-afde-49a4-ad33-2d9902f14a7e.e8a2453e672e;
    secret "$9$L7i7-wgoJUDkg49Ap0IRrevW-VYgoDHqWLGDkqQzRhcreWLX-Vs2XxGDHkPfn/Cp0IcSeMLxn/LxN-ws5Qz6tuRhSv8Xrl87dVY2TzF/uOEcyKWLleUjikPfIEhSrvxNdbYgRhK8x7Vbk.mf5F9CuOBEtp0IcSMWoJZjmfFn/CA05TIEhSeK4aJUjqP5Q9tu4an/CtOB7-dboJZUjHmfaJn/ApREevW8X-YgoiqmxNb2gaUD69Cp1RSyKMLxCtORSrvM7-VboJDjqPTzNdmfzF/9vW8LdbY2aZGisY4ZDif5z3690BylKWX7KvZUHkTQlKvW-VJGDiqmGU/CtuEhKM87wYaJDkqfoaQFn6At1RhrM8xNd"; ## SECRET-DATA
    keep-alive {
    retry 3;
    timeout 5;
    }
    services netconf;
    oc-term.mistsys.net {
    port 2200;
    retry 1000;
    timeout 60;
    }
    }

    See outbound-ssh for more information.

    You can also examine the log messages by using the command show log messages.

  9. If you are adding the switch for the first time, do the following:
    • Delete the present Juniper Mist configuration from the switch using the delete command.

    • Onboard the switch again using the claim or adopt workflow.

    • Verify the system connection using the show system connections | grep 2200 command. If the switch remains disconnected with the sessions stuck in FIN_WAIT state, but is able to reach the Internet and resolve DNS, check for any maximum transmission unit (MTU) issues.

  10. To check for any MTU issues, initiate a ping test toward any public server (for example, 8.8.8.8).

    Another way to check for MTU issues is to review the uplink packet capture file from the switch. A failing transaction due to an MTU issue would look like the following example. The example shows that the packets with a size of 1514 are being retried.

    To troubleshoot this issue further, do a ping test from the switch. Use different ping sizes as shown in the following example:

    content_copy zoom_out_map
    user@switch> ping size 1450 8.8.8.8   
    PING 8.8.8.8 (8.8.8.8): 1450 data bytes
    76 bytes from 8.8.8.8: icmp_seq=0 ttl=59 time=12.444 ms
    — 8.8.8.8 ping statistics —
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 12.318/12.381/12.444/0.063 ms
    

    As you can see below, the ping test with the size of 1480 has failed.

    content_copy zoom_out_map
    user@switch> ping size 1480 8.8.8.8   
    PING 8.8.8.8 (8.8.8.8): 1480 data bytes
    
    — 8.8.8.8 ping statistics —
    4 packets transmitted, 0 packets received, 100% packet loss

    To resolve this issue, you can adjust the MTU on the uplink, based on the byte size at which packets are getting timed out.

  11. Deactivate and then reactivate the outbound SSH, as shown below:
    content_copy zoom_out_map
    user@switch# deactivate system services outbound-ssh client mist
    user@switch# activate system services outbound-ssh client mist
    user@switch# commit

Watch the following video as well for more information on how to troubleshoot a switch:

Video 1: Wired Assurance Troubleshooting
Show Transcript
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right
footer-navigation
keyboard_arrow_down
file_download
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
language