Vyatta NOS documentation

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

Basic configuration synchronization

This section sets up configuration synchronization with the scenario shown in the following figure.

Figure 1. Configuration synchronization

In this example:

  • The master system is R1.
  • The standby system is R2. The remote system is to be accessed by using the default username and password: vyatta.
  • Firewall configuration is to be synchronized.

To configure R1 for configuration synchronization in this way, perform the following steps in configuration mode.

Table 1. Configuring R1 for configuration synchronization

Step

Command

Create the configuration synchronization service and a synchronization map (TEST) with a rule (2) within the synchronization map. Specify a node (firewall) as a node on which to take action.

vyatta@R1# set system config-sync sync-map TEST rule 2 location security firewall 

Specify the synchronization action to take on the firewall configuration node during configuration synchronization. The firewall node is to be included in configuration synchronization.

vyatta@R1# set system config-sync sync-map TEST rule 2 action include

Define the remote system with which to synchronize and set the username (vyatta) to be used for connecting to the remote system.

vyatta@R1# set system config-sync remote-router 192.168.1.22 username vyatta

Set the password (vyatta) to be used for connecting to the remote system.

vyatta@R1# set system config-sync remote-router 192.168.1.22 password vyatta

Set TEST as the synchronization map to be used for configuration synchronization with the remote system.

vyatta@R1# set system config-sync remote-router 192.168.1.22 sync-map TEST

Commit the configuration.

vyatta@R1# commit

Display the configuration.

vyatta@R1# show system config-sync
	remote-router 192.168.1.22 {
		password vyatta
		sync-map TEST
		username vyatta
	}
	sync-map TEST {
		rule 2 {
			action include
			location security firewall
		}
	}