Sunday, August 25, 2013

Working on Configuration Mode - II

Double Negative Syntax: If we issue a command 'set interface <interface-name> disable' statement, the result of the syntax will delete the disable statement placed into effect with the reference 'set' command.

Using Configuration Mode Efficiently1
rename: To rename a configuration statement. Eg. #rename interfaces ge-0/0/10 to ge-0/0/11
replace: To replace the pattern of configuration statements. Eg. #replace pattern ge-0/0/10 with ge-0/0/11
copy: To copy a configuration statement to another statement. Eg. #copy interfaces ge-0/0/10 to ge-0/0/11
P.S. Please do not forget to issue the commit command to activate the changes.

Using Configuration Mode Efficiently2
deactivate: To ignore or deactivate a configuration statement. Eg. #deactivate interfaces ge-0/0/10
insert: To insert a configuration statement in another location. Eg. #insert term three before term two
annotate: To comment to a configuration statement. Eg. #annotate name-server "adding new name servers"

[edit]
user@router# deactivate interfaces ge-0/0/0
[edit]
user@router# commit
commit complete
[edit]
user@router# show interfaces ge-0/0/0
##
## inactive: interfaces ge-0/0/0
##
unit 0 {
family inet {
address 10.210.11.177/28;
}
family inet6;
}
[edit]
user@router# activate interfaces ge-0/0/0
[edit]
user@router# commit
commit complete
[edit]
user@router# show interfaces ge-0/0/0
unit 0 {
family inet {
address 10.210.11.177/28;
}
family inet6;
}
[edit system]
user@router# annotate name-server "added new name servers"
[edit system name-server]
user@router# show
/* added new name servers */
JNCIA-Junos Study Guide—Part 1
Chapter 2–20 • User Interface Options © 2012 Juniper Networks, Inc. All rights reserved.
205.152.144.23;
205.152.132.23;

Viewing the Candidate Configuration
We can display the portions that concern us from the root of the hierarchy or use edit command to go to a specific sub-hierarchy.


Another time-saving command is 'run' command, which allows us to issue an operational command from within configuration mode. For example, the 'run show route' command from configuration mode is the same as the 'show route' command from operational mode. 


Saving Configuration File:

Loading Configuration File:
The 'load' command is used to load a configuration file. It can be used to load a complete or partial configuration from a local file, from a file on a remote machine, or from a terminal emulation program's capture buffer. It provides a list of arguments to the load command:

  • factory-default: Replaces the full current configuration with the factory-default configuration.
  • merge: Combines the current configuration with the configuration you load.
  • override: Completely overwrites the current configuration with the configuration you load. You must perform override operations at the root of the configuration hierarchy.

A 'commit' command must be issued to activate the changes made to the configuration after the load operation is complete.

No comments:

Post a Comment