Example: Running Operational Mode Commands On Logical Systems - Juniper EX9200 Features Manual

Vpls feature guide ex series
Hide thumbs Also See for EX9200:
Table of Contents

Advertisement

VPLS Feature Guide for EX9200 Switches

Example: Running Operational Mode Commands on Logical Systems

Step-by-Step
Procedure
172
This example shows how to set the CLI to a specified logical system view, run
operational-mode commands for the logical system, and then return to the main router
view.
Requirements on page 172
Overview on page 172
Configuration on page 172
Requirements
You must have the
privilege for the logical system.
view
Overview
For some operational-mode commands, you can include a
narrow the output of the command or to limit the operation of the command to the
specified logical system. For example, the
option. To run this command on a logical system called LS3, you can use
. However, some commands, such as
logical-system LS3
logical-system
option. For commands like this, you need another approach.
You can place yourself into the context of a specific logical system. To configure a logical
system context, issue the
set cli logical-system logical-system-name
When the CLI is in logical system context mode and you enter an operational-mode
command, the output of the command displays information related to the logical system
only.
Configuration
The following example requires you to navigate various levels in the configuration
hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration
Mode in the CLI User Guide.
To set the CLI to a specific logical system context:
From the main router, configure the logical system.
1.
[edit]
user@host# set logical-systems LS3
If you are done configuring the device, commit the configuration.
2.
[edit]
user@host# commit
user@host# exit
Set the CLI to view the logical system.
3.
user@host> set cli logical-system LS3
Logical system: LS3
user@host:LS3>
logical-system
show route
command has a
show interfaces
command.
Copyright © 2016, Juniper Networks, Inc.
option to
logical-system
show route
, do not have a

Advertisement

Table of Contents
loading

Table of Contents