Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Navigating in configuration mode

How to navigate in configuration mode and the related commands.

You can tell where you are in the configuration tree by the [edit] prompt, which is context sensitive.

At the top of the configuration tree, the [edit] prompt looks like this:

[edit]

When you are in another location, the edit prompt indicates your location by showing the node hierarchy in order, like this:

[edit protocols bgp 65537]

Commands for navigating in configuration mode shows the commands for navigating in configuration mode.

Table 1. Commands for navigating in configuration mode
Command Result

edit config-node

Navigates to the specified configuration node for editing.

The node must already be created the configuration committed.

exit

Jumps to the top of the configuration tree.

If you are already at the top of the configuration tree, exit from configuration mode and return to operational mode.

top

Jumps to the top of the configuration tree.

up

Moves up one node in the configuration tree.

Using the edit command lets you navigate to the part of the hierarchy in which you are interested and run commands relative to your location. This navigation saves typing if you need to work on a particular part of the configuration hierarchy.

The following example shows how to navigate to the configuration node for the dp0p1p3 data plane interface. After you have navigated to the node, you can show configuration directly without specifying the full path.

vyatta@R1# edit interfaces dataplane dp0p1p2
[edit interfaces dataplane dp0p1p2]
vyatta@R1# show
 hw-id 00:13:46:e6:f6:87
[edit interfaces dataplane dp0p1p3]
vyatta@R1#