home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Adding or modifying configuration

How to add or modify the configuration and the related commands.

Add new configuration by creating a configuration node by using the set command in configuration mode. Modify existing configuration by using the set command in configuration mode, as in the following example.

vyatta@R1# set interfaces dataplane dp0p1p3 address 192.168.1.100/24
vyatta@R1#

Then use the show command to see the change.

vyatta@R1# show interfaces dataplane dp0p1p3
+address 192.168.1.100/24
 hw-id 00:13:46:e6:f6:87
vyatta@R1#

Notice the plus sign (+) in front of the new statement. This + shows that this statement has been added to the configuration, but the change is not yet committed. The change does not take effect until configuration is committed by using the commit command.

Another option is to use the compare command to see the change.

vyatta@R1# compare
[edit interfaces dataplane dp0p1p3]
+address 192.168.1.100/24
vyatta@R1#

You can change configuration from the root of the configuration tree or use the edit command to navigate to the part of the tree where you want to modify or add configuration.

The configuration tree is nearly empty when you first start up, except for a few automatically configured nodes. You must create a node for any functionality you want to configure on the system. When a node is created, any default values that exist for its attributes are applied to the node.