Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

How Junos OS CLI Maps to Cisco IOS

How common Junos OS CLI commands map to Cisco IOS commands.

Junos OS incorporates standard networking functions that are common across network operating systems. The Junos OS CLI uses it's own unique hierarchy-based syntax to logically group networking functions. With this consistent syntax, you can easily identify where you are on the device, find what you want, move around the interface, and enter commands.

New users to Junos OS are often familiar with the Cisco IOS operating system. The following table shows common Junos OS CLI configuration statements and commands and their Cisco IOS equivalent commands:

Junos OS Command Cisco IOS Equivalent Junos OS Command Description

commit

write memory

Finalize and apply configuration changes.

configure

configure terminal

Move from operational mode to configuration mode.

set system host-name name

hostname name

Set the device hostname.

set system domain-name name

ip domain-name name

Configure the DNS domain name.

show configuration

show running-config

Display the active configuration.

show interfaces terse

show ip interface brief

Provide a summarized status of all interfaces.

edit interfaces interface

interface interface

Enter a configuration hierarchy for the specified interface.

set interfaces interface unit number family inet address address

ip address address

Configure an IPv4 address on an interface

Logical units such as unit 0 must be specified.

show version

show version

Show software version, model, and other system information.

set system root-authentication plain-text-password

enable secret password

Set the root user's password.

set system login user name class super-user authentication plain-text-password

username name privilege 15 secret password

Create a local user account with super-user privileges and a password.

request system reboot

reload

Trigger a system reboot.

show system uptime

show clock

Display the current time and system uptime.

set date date-time

clock set

Manually sets the system date and time.

set system time-zone time-zone

clock timezone

Configure the time zone.

show chassis hardware

show inventory

Display hardware components installed in the device.

show chassis environment

show environment

Show environmental status.

show system processes extensive

show processes cpu

show processes memory

Display a detailed process list, including CPU and memory usage.

show system users

show users

List the currently logged-in users and their sessions.

show log messages

show logging

Display the system log messages file.

monitor start messages

terminal monitor

Start streaming the live system log messages file to your terminal.

monitor stop

terminal no monitor

Stop monitoring the log on the terminal.

set cli screen-length 0

terminal length 0

Disable paging, so long outputs are shown without the ---(more)--- prompt.

start shell

terminal shell

Exit from the CLI environment and create a UNIX-level shell.

request support information

show tech-support

Generate a comprehensive support info snapshot with configuration, logs, and hardware information.

file copy source destination

copy source destination

Copy files from one location to another location.

save configuration file

copy running-config tftp://server/file

Save the current candidate configuration to a file

set interfaces name description text

description text

Set a textual description of the interface.

set interfaces name disable

shutdown

Administratively disable the interface.

show interfaces terse

show ip interface brief

Display a one-line summary of interfaces.

show interfaces descriptions

show interfaces description

List all interfaces with their administratively configured description and status.

clear interfaces statistics

clear counters

Clear the interface traffic statistics counters.

ping address rapid

ping address

Send ICMP echo requests to a host. The rapid option sends pings immediately after receiving a response.

traceroute address

traceroute address

Trace the route to a host hop-by-hop.

show arp

show ip arp

Display the ARP table.

clear arp

clear arp-cache

Clear the ARP cache.

show lldp neighbors

show cdp neighbors

Display neighbors discovered via LLDP.

set protocols lldp interface all

lldp run

Enable LLDP on all interfaces.

set system services telnet

line vty 0 4 transport input telnet

Enable the Telnet service.

load factory-default

write erase

Reset the device configuration to factory defaults.

set vlans name vlan-id id

vlan id name name

Create a VLAN with ID and name.

set protocols rstp

spanning-tree mode rapid-pvst

Enable Rapid Spanning Tree Protocol.

set protocols rstp interface interface1 edge

spanning-tree portfast

Configure an interface as an RSTP edge port.

show ethernet-switching table

show mac address-table

Display the Layer 2 forwarding table.

clear ethernet-switching table

clear mac address-table dynamic

Clear the dynamic entries in the Ethernet switching table.

set routing-options static route destination-prefix next-hop address

ip route

Configure a static route.

set protocols ospf area area interface interface

router ospf id network address wildcard area area

Enable OSPF.

set protocols ospf area area interface interface passive

passive-interface interface

Set an OSPF interface as passive.

set protocols ospf router-id id

router-id id (under OSPF router configuration)

Configure the OSPF router ID.

show ospf neighbor

show ip ospf neighbor

Display OSPF neighbor relationships.

show ospf database

show ip ospf database

Show the OSPF link-state database.

show ospf interface

show ip ospf interface

Display OSPF interface status and parameters.

set routing-options autonomous-system as-number

router bgp as-number

Set the local BGP autonomous system number.

set protocols bgp group name neighbor address peer-as as-number

neighbor address remote-as as-number

Configure a BGP neighbor.

show bgp summary

show ip bgp summary

Show a summary of BGP neighbor status.

show bgp neighbor

show ip bgp neighbors

Display detailed information about BGP neighbors.

show route protocol bgp

show ip bgp

Display the routing table entries learned through BGP.

show route advertising-protocol bgp neighbor-address

show ip bgp neighbors neighbor-address advertised-routes

Show the routes that are being advertised to a specific BGP neighbor.

clear bgp neighbor neighbor-address

clear ip bgp neighbor-address

Clear the BGP session with a given neighbor.

show isis adjacency

show clns neighbors

Display IS-IS neighbor relationships.

set firewall family family-name filter filter-name term term-name from source-address address then discard

access-list number deny address wildcard any

Define a firewall filter that drops traffic from a certain address.

set interfaces interface unit number family family-name filter input filter-name

ip access-group number in

Apply a firewall filter to an interface's input direction.

set snmp community name authorization read-only

snmp-server community name RO

Define an SNMP community with read-only access.

set snmp location "location"

snmp-server location location

Set the SNMP system location string.

set snmp contact contact

snmp-server contact contact

Set the SNMP contact information.

set system ntp server address prefer

ntp server address prefer

Configure an NTP server for time synchronization.

set system syslog host address

logging host address

Send system log messages to the specified remote syslog server.

ping address interface interface

ping address source interface

Specify a source interface for the ping.

show cli history

show history

Show the command history of the current CLI session.

delete interfaces interface unit number family family address address

no ip address address

Delete an IP address from an interface.

set routing-instances name instance-type vrf

ip vrf name

Create a new VRF routing instance.

set policy-options prefix-list name address

ip prefix-list name permit address

Define a prefix list.

show route forwarding-table

show ip cef

Display the forwarding table (FIB).

set interfaces interface ether-options no-auto-negotiation

no negotiation auto

Disable Ethernet auto-negotiation

set interfaces interface-range name member-range interface to interface

interface range interface-range

Group a range of identical interfaces into an interface range.

annotate statement comment

!

Add a comment to a statement in the configuration.

rollback number

configure replace

Revert the configuration to a previous version.

request system software add package

copy tftp flash

Install a software update package.

request system logout user

clear line number

Force a logout of a logged-in user.

commit confirmed minutes

reload in minutes

Commits the configuration with a rollback timer.