28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the CLI (on the router) or by using any ASCII text editor (on a server). From J-Web,<br />

the configuration is saved in an ASCII file that you can read using J-Web, the CLI, or<br />

an ASCII text editor.<br />

JUNOS CLI Modes<br />

Throughout this book, we’ll show you how to use the JUNOS CLI to configure and<br />

monitor the router. While it is beyond the scope of this book to describe the design<br />

of the CLI and all its capabilities, this section gives an overview of the CLI modes<br />

and describes a few of the basic features. Throughout the rest of this chapter, we’ll<br />

give more examples of CLI features. For complete information about the JUNOS<br />

CLI, refer to the JUNOS product documentation on the Juniper Networks web site,<br />

http://www.juniper.net/techpubs.<br />

The underlying operating system for the JUNOS software is FreeBSD. As we talk<br />

about the various CLI commands, if a command is derived from FreeBSD or a standard<br />

Unix utility, or is simply the FreeBSD or Unix command packaged with a<br />

JUNOS name, we will mention the command it is based on. If you are already familiar<br />

with the FreeBSD or Unix equivalent, this will help you understand the JUNOS<br />

command.<br />

The CLI has two modes: operational mode and configuration mode. Both modes<br />

have distinct commands. In operational mode, you monitor everything about the<br />

router’s hardware and software and check on network operation. In configuration<br />

mode, the commands let you define the behavior of the router, such as indicating<br />

what network addresses to use and protocols to run. It is important for you to understand<br />

the differences between these two modes, what types of actions you can take in<br />

which mode, and how to keep track of which mode you are working in. Throughout<br />

the rest of this book, we’ll show you how to work in both modes as you configure<br />

the router and verify its operation.<br />

On the router, you can identify which mode you are in by looking at the CLI<br />

prompt. The base prompt has the format username@router-name. When you are in<br />

operational mode, the prompt ends with a >; when you are in configuration mode,<br />

the prompt ends with a #. We follow this same convention throughout this book, so<br />

by paying attention to the prompt that precedes each command, you can determine<br />

whether you issue the command in operational or configuration mode.<br />

When you first log in to a JUNOS router, you are in operational mode. The commands<br />

available in operational mode let you monitor router and network operations.<br />

For example, you can get information about the router’s hardware and<br />

software, the network traffic that is coming to the router, and configured routing<br />

protocols. Throughout this book, we’ll show you how to use operational mode commands<br />

to check what is happening on the router.<br />

2 | Chapter 1: Router Configuration and File Management<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!