Vyos

What is Vyos?

VyOS is a fully open-source, Linux-based network operating system that provides advanced routing, firewall, and VPN capabilities. It is designed to run on physical hardware, virtual machines, and cloud environments, making it a versatile solution for enterprise and lab networks alike.

VyOS uses a command-line interface (CLI) similar to proprietary systems like Cisco IOS and Juniper JunOS, offering network professionals a familiar experience without vendor lock-in.

Key Features

Routing

  • Static and dynamic routing (BGP, OSPF, RIP).

  • Policy-based routing.

Firewall

  • Stateful firewall with zone-based configurations.

  • NAT (SNAT, DNAT, and masquerading).

VPN

  • IPsec, WireGuard, OpenVPN, and L2TP.

Network Services

  • DHCP, DNS forwarding, and VRRP.

High Availability

  • Load balancing and failover capabilities.

Cloud Support

  • Compatible with AWS, Azure, and VMware.

Vyos Installation Steps

VyOS can run on bare metal or as a virtual machine. Follow these general steps to install it:

  1. Download the VyOS ISO: Obtain the latest ISO image from the official website: https://vyos.io.

  2. Create Bootable Media: Use a tool like Rufus (Windows) or dd (Linux/macOS) to write the ISO to a USB drive:

sudo dd if=vyos.iso of=/dev/sdX bs=4M status=progress
  1. Boot and Install VyOS: Boot the target machine from the USB and follow the installation prompts:

install image

Commands

Name
Description

configure

enter configuration mode

commit save

commit and save changes

show configuration

show configuration

set interfaces ethernet eth0 address 192.168.1.1/24

set interfaces

show interfaces

show interfaces

delete interfaces ethernet eth0 address

delete interface address

set system host-name fw01-hanne

set system hostname

set protocols static route 0.0.0.0/0 next-hop 10.0.17.2

set static route

set system name-server 10.0.17.2

set system name server

Last updated