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

lab@srxA-1> show interfaces | match down | match Physical | count

Count: 11 lines

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.

lab@srxA-1> help reference ?

Possible completions: access accounting-options ancp

applications bfd

bgp bridge-domains chassis class-of-service connections diameter

dlsw dot1x dvmrp

dynamic-profiles esis event-options firewall

forwarding-options igmp

interfaces isis l2-learning l2circuit l2vpn layer2-control

layer2-vpns Use the 'help reference l2vpn' command layer3-vpns

ldp link-management lldp logical-systems mld

mpls msdp mvpn oam ospf ospf3 pgm pim

www.juniper.net

The Junos CLI (Detailed) • Lab 1–11

poe policy-options ppp protection-group rip

ripng router-advertisement router-discovery routing-instances routing-options

rsvp sap

schedulers security services snmp

stp switch-options system

vpls vpns vrrp

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

Answer: The help reference system host-name command displays information regarding system hostnames:

lab@srxA-1> help reference system host-name host-name

Syntax

host-name hostname;

Hierarchy Level

[edit system]

Release Information

Statement introduced before JUNOS Release 7.4.

Statement introduced in JUNOS Release 9.0 for EX Series switches.

Description

Set the hostname of the router or switch.

Lab 1–12 • The Junos CLI (Detailed)

www.juniper.net

Options

hostname--Name of the router or switch. Required Privilege Level

system--To view this statement in the configuration. system-control--To add this statement to the configuration.

Related Topics

* Configuring the Hostname of the Router

Step 1.13

Enter configuration mode.

lab@srxA-1> configure Entering configuration mode

[edit] lab@srxA-1#

Question: What happens to your prompt?

Answer: A pound sign (#) replaces the angle bracket (>), and a configuration hierarchy banner displays.

Question: According to the prompt, what is your position in the configuration hierarchy?

Answer: The display indicates that you are now at the [edit] hierarchy, which is the root of the configuration tree.

Step 1.14

Display the interfaces portion of the candidate configuration.

[edit]

lab@srxA-1# show interfaces

www.juniper.net

The Junos CLI (Detailed) • Lab 1–13

ge-0/0/0 {

description "MGMT Interface - DO NOT DELETE"; unit 0 {

family inet {

address 10.210.14.131/27;

}

}

}

Step 1.15

Position yourself at the [edit interfaces] configuration hierarchy.

[edit]

lab@srxA-1# edit interfaces

[edit interfaces] lab@srxA-1#

Question: What happens to the banner?

Answer: The banner now correctly shows that the user is at the [edit interfaces] portion of the configuration hierarchy.

Question: What is the result of a show command now?

Answer: A show command displays information pertaining only to configuration statements at and below the current hierarchy. In this case, the software displays only the configuration statements for the system’s ge-0/0/0 interface:

[edit interfaces] lab@srxA-1# show ge-0/0/0 {

description "MGMT Interface - DO NOT DELETE"; unit 0 {

family inet {

address 10.210.14.131/27;

}

}

}

Lab 1–14 • The Junos CLI (Detailed)

www.juniper.net