O'Reilly logo

Junos Security by James Quinn, Timothy Eberhard, Patricio Giecco, Brad Woodberg, Rob Cameron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuration Mode

The other mode in which to operate the Junos CLI is configuration mode. In configuration mode, you can make configuration changes to the device. Configuration mode is extremely versatile in the methods it allows you to use. Junos was designed to manage configurations comprising thousands of lines directly from the CLI, so in today’s world of GUIs, this may seem like a Herculean task, but it’s why the most common way to manage configuration is through the CLI.

To enter configuration mode from operational mode, you simply use the command configure. You will know you are in configuration mode because the prompt will end with # (instead of >, which indicates operational mode). As an alternative, you can use the hidden command edit, which is allowed because it is also used heavily throughout configuration mode.

There are actually several types of configuration modes. Each mode provides you with a different level of access into the configuration.

The default mode is shared mode. This means the configuration you are editing is shared among all of the other users on the device. When the configuration is finally made active, all of the users’ changes will be made active.

You can also request exclusive access to the configuration by using the command configure exclusive. This means only that user can gain access to the configuration, and no one else can edit it. You can gain exclusive access only when no other users have an active configuration.

Alternatively, you can request ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required