(insecure playbook snippet):
load factory-default commit The root password is cleared. The switch reverts to root: (blank).
Introduction In the world of data center networking, Juniper’s QFX Series switches are ubiquitous. Designed for high-performance leaf-and-spine architectures, EVPN-VXLAN fabrics, and large-scale Layer 2/Layer 3 environments, these switches are powerful—but like all network devices, they begin their life in a vulnerable state. At the heart of that vulnerability lies a simple, often-overlooked question: What is the default password on a QFX switch? qfx default password
Press Enter . You will see:
set system login user admin uid 2000 set system login user admin class super-user set system login user admin authentication plain-text-password # (set admin password) set system root-authentication ssh-rsa "ssh-rsa AAAAB3..." # key-only, or set system root-authentication load-key-file /var/tmp/root_key.pub delete system root-authentication plain-text-password 4.3 Enforcing Password Policies set system login password format sha512 set system login password minimum-length 12 set system login password change-type user-set 4.4 Saving Configuration to Prevent Reversion After committing, save to both rescue and backup: You will see: set system login user admin
Every engineer who unboxes a QFX, performs a zeroize, or loads factory-default configuration must immediately set a strong root password or—preferably—disable root login entirely. Document the change, verify it, and include it in your configuration management database.
loader> boot -s Enter full pathname of shell: /bin/sh # mount -t msdosfs /dev/da0s1 /mnt # vi /mnt/etc/master.passwd # (remove the password hash after root::) # reboot This is complex and requires physical or out-of-band console access. 6.1 Ansible and Default Passwords When using Ansible to initially provision QFX switches, never rely on a default blank password. Instead, use console-based first-time setup or pre-staged SSH keys via USB autoinstall. In modern data centers
ssh root@<qfx-mgmt-ip> You will get Connection refused because the SSH service is disabled in factory state.
request system configuration rescue save request system snapshot slice alternate # for dual-root partitions 5.1 Reloading Factory Defaults If an engineer issues:
#!/bin/bash # qfx_check_default_pass.sh SWITCHES="qfx1 qfx2 spine1 spine2" for sw in $SWITCHES; do echo -n "$sw: " ssh -o BatchMode=yes -o ConnectTimeout=3 root@$sw "show version" 2>/dev/null && \ echo "SUCCESS (has SSH key)" || \ sshpass -p '' ssh -o StrictHostKeyChecking=no root@$sw "show version" 2>/dev/null && \ echo "FAIL - DEFAULT PASSWORD" || \ echo "OK - password protected or unreachable" done Alternatively, use Juniper’s health or audit automation scripts from the Junos Space platform. The QFX default password is not a secret—it’s the absence of a secret. A blank root password is a default that must be changed on day zero, hour zero, minute zero . In modern data centers, where east-west traffic dominates and compromised switches can eavesdrop on VXLAN tunnels, leaving a QFX with no password is equivalent to leaving the data center door unlocked with a sign saying “Valuable Servers Inside.”