Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
IJOS-12a-guide_pdf / IJOS-12.a_LGH (High-Level Lab Guide).pdf
Скачиваний:
318
Добавлен:
11.04.2015
Размер:
1.08 Mб
Скачать

Part 1: Logging In and Exploring the CLI

In this lab part, you become familiar with the access details used to connect to the lab equipment. Once you are familiar with the access details, you will use the CLI to log in to your team’s designated station and use the CLI to become familiar with operational mode and configuration mode. You also gain experience with some of the tools and functionality available within operational mode and configuration mode.

Note

Depending on the class, the lab equipment used might be remote from your physical location. The instructor will inform you as to the nature of your access and will provide you the details needed to access your assigned device.

Step 1.1

Ensure that you know to which student device you have been assigned. Check with your instructor if you are not certain. Consult the management network diagram to determine the management address of your student device

Question: What is the management address assigned to your station?

Step 1.2

Access the CLI at your station using either the console, Telnet, or SSH as directed by your instructor. Refer to the management network diagram for the IP address associated with your team’s station. The following example uses a simple Telnet access to srxA-1 with the Secure CRT program as a basis:

Lab 1–2 • The Junos CLI

www.juniper.net

Step 1.3

Log in to the student device with the username lab using a password of lab123. Note that both the name and password are case-sensitive. Issue the configure command to enter configuration mode and load the reset configuration file using the load override /var/home/lab/ijos/lab1-start.config command. After the configuration has been loaded, commit the changes and return to operational mode using the commit and-quit command.

Step 1.4

Determine what system information you can clear from the operational mode command prompt.

Question: Which command do you use to clear the contents of a system log (syslog) file?

Step 1.5

Experiment with command completion by entering show i<space>.

Step 1.6

Add characters to disambiguate your command so that you can display interface-related information; use the Spacebar or Tab key for automatic command completion.

Note

You can return to the command prompt without scrolling through all of the generated output from a command. Enter the Ctrl+c key sequence or the q key to abort the operation and return to the command prompt.

Step 1.7

Try to clear SNMP statistics by entering the clear snmp command.

Question: What do you think the resulting display means?

Step 1.8

Verify that the CLI does not let you complete invalid commands by trying to enter the command show ip interface brief.

www.juniper.net

The Junos CLI • Lab 1–3

Question: What happens when you try to enter this command?

Step 1.9

Enter a show route command followed by a show system users command. You are entering these commands to demonstrate command history recall. When finished, enter the keyboard sequences indicated to answer the related questions.

Question: What happens when you press Ctrl+p twice?

Question: What happens when you press Ctrl+n?

Question: What happens when you use the Up

Arrow and Down Arrow keys?

Step 1.10

In many cases, the output of a command might exceed one full screen. For example, the show interfaces interface-name extensive command displays a lot of information about the specified interface. Enter this command now for your system’s ge-0/0/0 interface, and answer the following questions. Use the h key as needed to obtain help when CLI output is paused at the ---(more)--- prompt.

Question: What effect does pressing the Spacebar have?

Question: What effect does pressing the Enter key have on the paused output?

Question: What effect does pressing the b key have?

Lab 1–4 • The Junos CLI

www.juniper.net

Question: What effect does pressing the u key have?

Question: Which key would you press to search forward through a display that consists of multiple screens of output?

Step 1.11

Use the pipe (|) and match functions of the Junos CLI to list all interfaces that are physically down.

Question: Are any of your interfaces listed as Down?

Question: Can you think of a way to have the Junos OS count the number of interfaces that are physically down? (Hint: Remember that you can use the results of one pipe as input to another pipe operation.)

Step 1.12

A large portion of the Junos OS documentation is available directly from the CLI. You can retrieve high-level topics using the help topic command, whereas you can obtain detailed configuration-related information with the help reference command.

Use the help reference command along with the CLI question-mark operator (?) to find detailed information about configuring a system hostname.

Question: Which CLI command displays reference information about configuration of the system’s hostname?

Step 1.13

Enter configuration mode.

www.juniper.net

The Junos CLI • Lab 1–5