Modifying The Configuration; Removing A Statement; Running Operational Mode Cli Commands From Configuration Mode - Juniper JUNOS - NETWORK OPERATION GUIDE REV1 Network Operation Manual

Internet software for m-series and t-series routing platforms
Table of Contents

Advertisement

Modifying the Configuration

To configure the router or to modify an existing router configuration, you add
statements to the configuration. For each statement hierarchy, you create the
hierarchy starting with a statement at the top level and continuing with statements
that move progressively lower in the hierarchy.
To modify the hierarchy, you use two configuration mode commands:
!
set
—Creates a statement hierarchy and sets identifier values. After you issue a
command, you remain at the same level in the hierarchy. The set command
set
has the following syntax:
set <statement-path> statement <identifier>
statement-path
is the hierarchy to the configuration statement and the statement itself.
If you have already moved to the statement's hierarchy level, you omit this.
the configuration statement itself.
statement.
!
—Moves to a particular hierarchy level. If that hierarchy level does not exist,
edit
the edit command creates it and then moves to it. The edit command has the
following syntax:
edit <statement-path> statement <identifier>

Removing a Statement

To delete a statement or identifier, use the delete configuration mode command.
Deleting a statement or an identifier effectively "unconfigures" the functionality
associated with that statement or identifier, returning that functionality to its default
condition. When you delete a statement, the statement and all its subordinate
statements and identifiers are removed from the configuration.
delete <statement-path> <identifier>
To delete the entire hierarchy starting at the current hierarchy level, do not specify a
statement or an identifier in the delete command:
[edit]
user@host# delete
Delete everything under this level? [yes, no] (no)
Possible completions:
no
Don't delete everything under this level
yes
Delete everything under this level
Delete everything under this level? [yes, no] (no)

Running Operational Mode CLI Commands from Configuration Mode

To display the output of an operational mode show or other command while
configuring the software, you can execute a single operational mode command by
issuing the run configuration mode command and specifying the operational mode
command:
[edit]
user@host# run operational-mode-command
Appendix A: Command-Line Interface Overview
identifier
is a string that identifies an instance of a
?
statement
is
!
649
CLI Configuration Mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos

Table of Contents