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
Note: 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
Note: 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
Verify the changes:
To view the interface(s) on Vyatta:
To view the interface(s) configuration in the operational mode.
Configuring a DHCP IP Address on eth0:
set interfaces ethernet eth0 address dhcp
Configuring a Static IP Address on eth1:
set interfaces ethernet eth1 address 10.10.10.1/24
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
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
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!