Ways to connect the interfaces:
CLI: 1. Out-of-band(OoB) Serial console connection.
2. Over in band network using Access protocols. eg. Telnet, SSH.
3. Dedicated management ethernet port, varies between platforms.
J-Web Interface: Access by HTTP or HTTPS. It is installed and enabled by default in most of the platforms.
If you are familiar with the Cisco CLI, you’ll find that many Junos CLI commands are the same. The only difference is that you don’t need to use the keyword IP.
✓ Operational mode: A set of commands to manage and monitor device
operations. For example, you can monitor the status of the hardware
and software and perform maintenance tasks, such as upgrading soft-
ware or managing device files.
In operational mode, the prompt is a > symbol:
✓ Configuration mode: A set of commands to set up the device and the
network. For example, you can configure user access, the system prop-
erties, and the device’s interfaces, protocols, and services.
In configuration mode, the prompt is a # symbol:
✓ Get help: Type a question mark(?), and don’t need to press Enter. The CLI lists the available commands and options.
- Help topic :Displays usage guidelines for the statement.
root# help topic rip timers ?
<[Enter]> Execute this command
| Pipe through a command
root# help topic rip ?
any-sender Accept RIP messages from senders on other subnets
authentication-type RIP authentication
bfd-liveness-detection Bidirectional forwarding detection for RIP
check-zero Check reserved fields on incoming RIP packets
example Sample RIP configuration
export Policies for routes exported to RIP neighbors
graceful-restart Graceful restart
in eg1 you can see the <[Enter]>, means that can be a complete command. eg2 there is no <[Enter]>, means that is an incomplete comman.
- Help reference: displays summary information for the referenced configuration statement.
- Help apropos: displays the contexts(typically set commands) that reference a specified variable. :
[email protected]# help apropos archive
List of archive destinations
set archive-sites <url> password <password>
Password for login into the archive site
Navigate between levels of configuration hierarchy
- Edit (like a CD command ):move to a specific position
[email protected]#edit protocols ospf area 51 stub
[edit protocols ospf area 0.0.0.51 stub]
- up:move one or more levels up
[edit protocols ospf area 0.0.0.51 stub
[edit protocols ospf area 0.0.0.51]
[email protected]#up 2
- top: move to the top
We can combine top with edit to move a different hierarchy or with show to display the details in the new hierarchy. eg:
- Exit: Take me back to where I was before, or exits configuration mode if at the top of the hierarchy