Table of Contents
- About This Guide
- Introduction
- Introducing the CLI
- Getting Started: A Quick Tour of the CLI
- Getting Started with the JUNOS Command-Line Interface
- Switching Between JUNOS CLI Operational and Configuration Modes
- Configuring a User Account on a Device Running JUNOS Software
- Checking the Status of a Device Running JUNOS Software
- Configuring a Routing Protocol
- Rolling Back JUNOS Software Configuration Changes
- Getting Online Help
- Operational Mode and Configuration Mode
- Using CLI Operational Commands to Monitor the Router
- Overview of JUNOS CLI Operational Mode Commands
- JUNOS Operational Mode Commands That Combine Other Commands
- Understanding the brief, detail, extensive, and terse Options of JUNOS Operational Commands
- Interface Naming Conventions Used in the JUNOS Software Operational Commands
- Controlling the Scope of a Command
- Monitoring Who Uses the CLI
- Viewing Files and Directories on a Device Running JUNOS Software
- Displaying JUNOS Software Information
- Managing Programs and Processes Using JUNOS Operational Mode Commands
- Using the JUNOS Software CLI Comment Character # for Operational Mode Commands
- Example: Using Comments in JUNOS Operational Mode Commands
- Using Commands and Statements to Configure a Device Running JUNOS Software
- Understanding JUNOS CLI Configuration Mode
- Entering and Exiting the JUNOS CLI Configuration Mode
- Modification of the JUNOS Software Configuration
- Displaying the Current JUNOS Software Configuration
- Example: Displaying the Current JUNOS Configuration
- Adding JUNOS Configuration Statements and Identifiers
- Deleting a Statement from a JUNOS Configuration
- Example: Deleting a Statement from the JUNOS Configuration
- Copying a JUNOS Statement in the Configuration
- Example: Copying a Statement in the JUNOS Configuration
- Issuing Relative JUNOS Configuration Commands
- Renaming an Identifier in a JUNOS Configuration
- Example: Renaming an Identifier in a JUNOS Configuration
- Inserting a New Identifier in a JUNOS Configuration
- Example: Inserting a New Identifier in a JUNOS Configuration
- Deactivating and Reactivating Statements and Identifiers in a JUNOS Configuration
- Examples: Deactivating and Reactivating Statements and Identifiers in a JUNOS Configuration
- Adding Comments in a JUNOS Configuration
- Example: Including Comments in a JUNOS Configurations
- Verifying a JUNOS Configuration
- Committing a JUNOS Configuration
- Committing a JUNOS Configuration and Exiting Configuration Mode
- Activating a JUNOS Configuration but Requiring Confirmation
- Scheduling a JUNOS Commit Operation
- Monitoring the JUNOS Commit Process
- Adding a Comment to Describe the Committed Configuration
- Backing Up the Committed Configuration on the Alternate Boot Drive
- Commit Operation When Multiple Users Configure the Software
- Forms of the configure Command
- Example: Using the configure Command
- Displaying Users Currently Editing the Configuration
- Using the configure exclusive Command
- Updating the configure private Configuration
- Displaying set Commands from the JUNOS Software Configuration
- Displaying Additional Information About the Configuration
- Managing Configurations
- Understanding How the JUNOS Configuration Is Stored
- Returning to the Most Recently Committed Configuration
- Returning to a Previously Committed JUNOS Configuration
- Loading a Configuration from a File
- Examples: Loading a Configuration from a File
- Additional Details About Specifying JUNOS Statements and Identifiers
- Synchronizing Routing Engines
- Filtering Command Output
- Using the Pipe ( | ) Symbol to Filter JUNOS Command Output
- Using Regular Expressions with the Pipe ( | ) Symbol to Filter JUNOS Command Output
- Pipe ( | ) Filter Functions in the JUNOS Command-Line Interface
- Comparing Configurations
- Counting the Number of Lines of Output
- Displaying Output in XML Tag Format
- Displaying the RPC tags for a Command
- Ignoring Output That Does Not Match a Regular Expression
- Displaying Output from the First Match of a Regular Expression
- Retaining Output After the Last Screen
- Displaying Output Beginning with the Last Entries
- Displaying Output That Matches a Regular Expression
- Preventing Output from Being Paginated
- Sending Command Output to Other Users
- Resolving IP Addresses
- Saving Output to a File
- Trimming Output by Specifying the Starting Column
- Controlling the CLI Environment
- Advanced Features
- Using Shortcuts, Wildcards, and Regular Expressions
- Using Keyboard Sequences to Move Around and Edit the JUNOS CLI
- Using Wildcard Characters in Interface Names
- Using Global Replace in a JUNOS Configuration
- Common Regular Expressions to Use with the replace Command
- Example: Using Global Replace in a JUNOS Configuration—Using the \n Back Reference
- Example: Using Global Replace in a JUNOS Configuration—Replacing an Interface Name
- Example: Using Global Replace in a JUNOS Configuration—Using the upto Option
- Using Regular Expressions to Delete Related Items from a JUNOS Configuration
- Configuration Groups
- Understanding the JUNOS Configuration Groups
- Creating a JUNOS Configuration Group
- Applying a JUNOS Configuration Group
- Example: Configuring and Applying JUNOS Configuration Groups
- Example: Creating and Applying Configuration Groups on a TX Matrix Router
- Disabling Inheritance of a JUNOS Configuration Group
- Using Wildcards with Configuration Groups
- Example : Configuring Sets of Statements with Configuration Groups
- Example: Configuring Interfaces Using JUNOS Configuration Groups
- Example: Configuring a Consistent IP Address for the Management Interface
- Example: Configuring Peer Entities
- Establishing Regional Configurations
- Selecting Wildcard Names
- Using JUNOS Defaults Groups
- Example: Referencing the Preset Statement From the JUNOS defaults Group
- Example: Viewing Default Statements That Have Been Applied to the Configuration
- Summary of Configuration Group Statements
- CLI Command Summaries
- Index