Technical Documentation

Issuing Relative JUNOS Configuration Commands

The top or up command followed by another configuration command, including edit, insert, delete, deactivate, annotate, or show enables you to quickly move to the top of the hierarchy or to a level above the area you are configuring.

To issue configuration mode commands from the top of the hierarchy, use the top command; then specify a configuration command. For example:

[edit interfaces fxp0 unit 0 family inet]user@host# top edit system login [edit system login]user@host#

To issue configuration mode commands from a location higher up in the hierarchy, use the up configuration mode command; specify the number of levels you want to move up the hierarchy and then specify a configuration command. For example:

[edit protocols bgp]user@host# up 2 activate system

Published: 2010-01-17