Juniper JunOS

From Dave-Wiki
(Redirected from JunOS)

Summary

JunOS is the proprietary network operating system developed by Juniper Networks. It powers Juniper’s networking hardware, including routers, switches, and security devices. Known for its reliability, modularity, and robust feature set, JunOS is widely used in enterprise, service provider, and data center environments.

General

Show Interface Info

 show interfaces descriptions
 show ethernet-switching interface brief
 show lldp neighbors
 show lldp neighbors interface ge-0/2/2
 show interfaces media brief

Show MAC Addresses

 show ethernet-switching table | find 38:17:c3:ca:59:16
 show ethernet-switching table vlan-name [vlan-name]

Restart Web Management

 restart web-management

SFP/Optics

 show interfaces diagnostics optics
 show interfaces media brief

Configuration

Show Config Diff

Show differences between Candidate Config and Running Config

In Operational mode (display xml optional):

 show configuration | compare | display xml

In Configuration mode:

 show | compare (in configuration mode)

Load Config File From USB

 mount_msdosfs /dev/da1p1 /mnt
 cli
 configure
 load override /var/tmp/usb/[config_file].conf
 request system reboot

Load Config From Copy-&-Paste

 load replace terminal

(Type ^D at a new line to end input)

Save Config via SFTP

Location of the latest config; obtainable via SFTP:

/config/juniper.conf.gz

Virtual Chassis

Juniper Virtual Chassis is a networking technology that allows multiple physical Juniper switches to be interconnected and operate as a single logical switch. It simplifies network management by reducing the complexity of configuring and managing multiple individual switches. This technology is commonly used in data center and campus networks to achieve scalability, redundancy, and operational simplicity.

File:Crystal Clear filesystem file.png To Do: ToDo

Routing

BGP

Show BGP Neighbors

 show bgp summary

Show Routes Received from a BGP Neighbor

 show route receive-protocol bgp {neighbor}

Upgrading

Verify Partitions and File System Mounts

 show system storage

Verify Loader Software Version

 show chassis firmware

Verify Which Root Partition Is Active

 show system storage partitions

Verify the JunOS Version in Each Root Partition

 show system snapshot media internal

Copy OS from Active Partition to Backup Partition

 request system snapshot slice alternate

Upgrade JunOS from USB

Copy the .tgz file to a FAT32-formatted USB stick, and insert it into the switch. Note if it shows up as da0, da1, etc. on the console.

 mount_msdosfs /dev/da1s1 /mnt
 cli
 request system software add /mnt/jinstall-ex-4200-10.0S10.1-domestic-signed.tgz force unlink no-copy
 request system reboot at now
 show version