Vyatta – Basic Configuration after installation

Vyatta is a routing/firewall/VPN platform based on a Debian GNU/Linux that runs on x86 or amd64 hardware and many virtual machine hypervisors. It is widely used in cloud infrastructure. It is appreciated by its robustness, reliability and the services it provides. Vyatta is more like IOS, JunOS and other enterprise platforms.


We’ll use the following scenario, to understand the basic configuration of vyatta.


Booting the Vyatta:

After starting the Vyatta machine. It should go through the usual Linux boot process. Log in with the username vyatta and the password vyatta (or any other password that you have configured during the installation).


Vyatta Command Modes:

There are two command modes in the Vyatta CLI:

1) Operational mode

Operational mode provides access to the commands related to show, clear,enabling or disabling debugging, as well as commands for configuring terminal settings, loading and saving configuration, and restarting the system.

2) Configuration mode

Configuration mode provides access to the commands for creating, modifying, deleting, committing and showing configuration information, as well as commands for navigating through the configuration hierarchy.

Entering the Configuration Mode:

When you log on to the system, the system takes you to the operational mode. In order to enter the configuration mode from operational mode, type the configure command.


To return to the operational mode from configuration mode, issue the exit command:


Commit configuration changes:

To apply each new change(s),  issue the commit command in the configuration mode.

Saving the Configuration:

The running configuration can be saved using the save command in configuration mode.

Create a new user with admin privileges:

Use the following commands to create a new user with admin privileges.

set system login user arbab authentication plaintext-password PASSWORD
set system login user arbab level admin

5Note: Where arbab is a user that we have created with the password of PASSWORD.

Verify the newly created user:

show system login user arbab


A basic recommendation from Vyatta is to delete the default vyatta user and replaces it with a new one (arbab/PASSWORD – or use your username/password that you have created in the above step).

delete system login user vyatta
show system login user vyatta


By default root user is not enabled in vyatta, in order to use it, you have to enable in it first. Use the following commands to enable the root user.

set system login user root authentication plaintext-password PASSOWRD


Setting up the Host Name and Domain Name:

The default host name for a Vyatta device is vyatta. Use the following commands to change the hostname. Don’t forget to commit all configuration changes.

set system host-name myVyatta

7-hostnameNote: The command prompt reflects the hostname change by next time you log in.

Set the domain name using the following command.

set system domain‐name tendo.local

7- domainname-a

Verify the changes:

show system

7- domainname-b

To view the interface(s) on Vyatta:

To view the interface(s) configuration in the operational mode.

show interfaces

8 - show interfaces

Configuring a DHCP IP Address on eth0:
set interfaces ethernet eth0 address dhcp

9 - int dhcp

Configuring a Static IP Address on eth1:
set interfaces ethernet eth1 address

10 - int static

To verify the newly configured IP Address:

To execute the operational mode show command(s) inside the configuration mode, just add run in front of it.

run show interfaces

10 - int static-a

Enable SSH access:

Before allowing the SSH access, we must enable the SSH service on the vyatta system. We can also change the SSH port (default is 22) for security reason, which is recommended.

set service ssh
set service ssh port 22222
show service ssh

11 - ssh-a

Verify the Remote connection to the vyatta using PuTTY:

Enter your connection settings inside PuTTY, enter your custom ssh port if you have changed it in the above step (else leave it to default).


Next, enter your username and password. You are now logged into your vyatta with SSH.


Hope this will help you!

Please Remember me in your prayers!


7 responses to “Vyatta – Basic Configuration after installation

  1. Pingback: VYATTA router for Hyper-V – Part1 |

  2. Pingback: login vyatta root

  3. Pingback: EdgeMAX Change user password | Tech Log

  4. Pingback: Vyatta OS under VirtualBox in GNS3 | Nbctcp's Weblog

  5. Pingback: Vyatta – Dasar Konfigurasi setelah instalasi | ROAR

  6. Abdel Rahman Farag Hegazi June 22, 2015 at 10:37 pm

    Reblogged this on Abdel Rahman Farag Hegazi and commented:
    Vyatta – Basic Configuration after installation for Lazy Geeks 🙂

  7. vinay January 18, 2016 at 8:09 am

    hey am new to vyatta G/W ,, am struggling in seting up Vyatta G/W,, Can i get online session on this

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: