Skip to content

VyOS

VyOS is an open-source network operating system (NOS) based on Debian GNU/Linux. It provides powerful networking features, including routing, firewalling, and VPN, and is used in various network deployment scenarios. With its CLI and GUI for configuration, VyOS is user-friendly for all skill levels. Trusted by enterprises, service providers, and network administrators, VyOS is known for its security, protocol support, and routing capabilities.

FOr basic commands and configurations that might be helpful for the lab:

VyOS Configuration Reference

Command Explanation
configure Enter the configuration mode
set Use this command to set the value of a parameter or to create a new element. (see interfaces)
delete To delete a configuration entry use the delete command, this also deletes al sub-levels under the current level you've specified in the delete command.
commit commits changes to the router
save save the configuration
exit exit the current layer
end Exits all layers

VyOS Setup

The username and passwords for the VyOS routers are both "vyos".

When you first set up the vyos routers they need to be installed such that they can retain their configuration after a reboot. To d this is simple you just need to run the "install image" command, and respond like shown below:

vyos@vyos:~$ install image

Would you like to continue? (Yes/No) [Yes]: yes

Partition (Auto/Parted/Skip) [Auto]: auto

Install the image on? [sda]: sda

This will destroy all data on /dev/sda.

Continue? (Yes/No) [No]: yes

How big of a root partition should I create? (2000Mb - 8589MB) [8589]MB: 2000

What would you like to name this image? [1.2.9-S1]: 1.2.9-S1

Which one should I copy yo sda? [/opt/vyatta/etc/config/config.boot]: /opt/vyatta/etc/config/config.boot

Enter password for user 'vyos': vyos

Retype password for user 'vyos': vyos

Which drive should GRUB modify the boot partition on? [SDA]: sda

Unmount ISO

When installation of the Operating system is complete, it is beneficial to unmount the installation ISO from the Router VM. Do do this, right-click the router, click configure, find the ISO in the tabs and remove it.