Using VYOS - jwells24/Tech-Journal GitHub Wiki

Using VYOS

  • VYOS is a routing operating system, used on things such as firewalls. When using VYOS, the main thing to remember is to configure, commit, and save. When in configure mode, you are able to make edits to the interfaces and other configurations. Once you have established these edits, you commit your work and save it. For example, when setting the hostname of your VYOS system, you use this command: configure | set system host-name jackspc | commit | save. This series of commands will set the hostname for your VYOS system.

Setting interfaces and System info

  • In VYOS, we need to establish interfaces information and system information. The first command is how to set the default gateway and name server for an interface. configure | set protocols static route 0.0.0.0/0 next-hop 192.168.10.1 | set system name-server 8.8.8.8 | commit | save

  • We also need to add information to our interfaces as well, which can be done using the following command. configure | set interfaces ethernet eth0 address 192.168.10.2/24 | commmit | save

Adding a User and changing the password

  • In VYOS, the commands to add a user and change their password, as well as change their level of authentication can be done in three commands, illustrated below:

  • Ensure you are in configure mode, then: set system login user testUser full-name "test user" | set system login user testUser authentication plaintext-password testPassword | set system login user testUser level admin. Make sure to commit, and save.