JunOS: Difference between revisions

From Dave-Wiki
Jump to navigation Jump to search
(Created page with "=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...")
 
No edit summary
Line 54: Line 54:


/config/juniper.conf.gz
/config/juniper.conf.gz
=Routing=
==BGP==
  show bgp summary
  show route receive-protocol bgp <neighbor>


=Upgrading=
=Upgrading=
Line 80: Line 88:
   request system reboot at now
   request system reboot at now
   show version
   show version
=BGP=
  show bgp summary
  show route receive-protocol bgp <neighbor>

Revision as of 01:56, 15 February 2024

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

Routing

BGP

 show bgp summary
 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