Vyatta Logo

Have you ever thought of using your own router in your virtual lab? I did and previously I was using GNS with Cisco IOS images but with new lab I would like to use Vyatta as router and firewall. Configuration of GNS with VMware Workstation was not as easy as is Vyatta.

What is Vyatta?

Vyatta – as Wikipedia says is Debian based software-based virtual router, firewall, vpn. I find it very powerful (although I will not use more than 5% of its capabilities) and people familiar with Cisco and Juniper will feel like home. One feature which might be useful (Web GUI) was removed in version 6.3 – shame on them 😛

Ok let’s do it!

Basic Networking

  1. After downloading ISO create Virtual Machine deploy VM (I used 1 vCPU, 512MB RAM and 3GB of Storage) with Debian as Operating System. I used two network adapters – one will be connected to LAN (OUTER Network, we can call it public) network / 24 (to access Vyatta via SSH) and second one to VMNet1 which is network for Virtual Machines (INNER Network). Vyatta will do routing and firewall between networks.
  2. After boot screen hit enter and login to vyatta using following credentials:
    Username: vyatta
    Password: vyatta
    Vyatta boot
  3. Next step is really simple – installation of Vyatta on local disk. In order to do that simply execute command: install system and confirm it.
    Vyatta - Install System
  4. I went with default settings for partitions but you can align them as you wish.
  5. Set vyatta user password.
  6. Reboot Vyatta by executing command: reboot.
  7. Login again to vyatta and we will start with setting hostname. Enter configuration mode by typing configure and type set system host-name your hostname.
  8. Now we will setup network interfaces:
    • set interfaces ethernet eth0 address
    • set interfaces ethernet eth1 address

    Commit changes by executing command commit and save changes save.

  9. Now when we have both interfaces up and running we will enable SSH. In order to do it execute following commands: set service ssh. Commit and save.
  10. Before you will be able to connect to INNER Network you need to add route on your PC or even on your physical router. In my case I added following route using command(I am running Windows) route add mask -p.
  11. Now you should be able to reach VM’s in INNER Network – in my case subnet

This is my current network diagram

Home Lab Network Diagram V1
In next posts we will configure firewall rules and iSCSI storage for ESXi hosts.

Vyatta – Router running on VMware Workstation – Part 1 basic networking
3 (60%) 2 votes
Wojciech Marusiak
Social Media

Wojciech Marusiak

Solutions Architect at Alibaba Cloud
I am innovative and experienced VMware and Windows Server Engineer with over 10 years in the IT industry specializing in VMware virtualization and Microsoft Server environment.

My experience and skills have been proven by leading vendor certifications like VMware Certified Implementation Expert 6 – Data Center Virtualization, VMware Certified Advanced Professional 6 – Data Center Virtualization Design, VMware Certified Professional 6 - Data Center Virtualization, VMware Certified Professional 6 - Network Virtualization, AWS Certified Solutions Architect - Associate, ITIL V3, VMware vExpert 2014 - 2017 and VMware vExpert NSX 2017 Award.

My blog wojcieh.net - was voted #43 in Top vBlog 2017 contest!
Wojciech Marusiak
Social Media

Latest posts by Wojciech Marusiak (see all)