Home Lab Network Automation with EVE-NG

This post walks through setting up a network automation home lab using EVE-NG Community Edition. It covers installation, building a practical simulation topology, installing Python automation libraries, and running your first script against simulated Cisco devices.

Home Lab Network Automation with EVE-NG

If you want to get serious about network automation, you need a safe place to break things, test ideas, and build skills without touching production gear. EVE-NG (Emulated Virtual Environment Next Generation) gives you exactly that: a powerful, browser-based network simulation platform that runs on a standard server or even a home lab VM.

This post walks you through setting up a practical network automation environment using EVE-NG, covering the tools, topology, and configuration steps you need to get started.

Why EVE-NG for Network Automation?

EVE-NG stands out from other simulators because it supports real vendor images (Cisco IOS, Juniper vMX, Arista vEOS, and more), runs entirely in a browser, and integrates cleanly with external automation tools. Unlike GNS3, EVE-NG uses a client-server model where the topology runs on a Linux host and you interact with it through a web interface. This makes it ideal for running Python scripts, Ansible playbooks, and APIs against realistic network devices.

Step 1: Install EVE-NG

EVE-NG Community Edition is free and runs on Ubuntu 18.04. The simplest home lab approach is to run it as a VM inside VMware Workstation or Proxmox. Enable nested virtualization before you start.

Download the OVA from the official site at eve-ng.net and import it into your hypervisor. After booting, access the web interface at the VM's IP address on port 80. Default credentials are admin / eve.

Once logged in, you'll upload your router and switch images to /opt/unetlab/addons/qemu/ and run the fix permissions script:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Note that the Community Edition covers the core simulation features needed for automation practice. EVE-NG Professional Edition adds capabilities such as multi-user support, additional node types, and a built-in Wireshark packet capture integration, which may be worth considering if your lab needs grow.

Step 2: Build Your Automation Topology

A practical starting topology for network automation practice includes:

  • Two or three Cisco CSR1000v or IOSv routers
  • A Linux VM (Ubuntu or Alpine) acting as your automation controller
  • A management network connecting all devices

Connect the Linux VM to the management cloud node in EVE-NG. This bridges the VM to your actual network, letting you SSH into devices from your laptop or run scripts directly from the Linux controller inside the topology.

Step 3: Install Automation Tools on the Controller

On your Linux automation controller VM, install the core toolset:

sudo apt update
sudo apt install python3 python3-pip ansible -y
pip3 install netmiko napalm nornir

These libraries cover the main approaches to network automation:

  • Netmiko: SSH-based library for sending commands and parsing output from network devices
  • NAPALM: Multi-vendor abstraction layer with a consistent API across platforms
  • Nornir: Python-native automation framework with parallel task execution
  • Ansible: Agentless automation using YAML playbooks, great for configuration management

Step 4: Test Connectivity and Run Your First Script

After configuring basic IP addressing and enabling SSH on your simulated routers, test connectivity from the controller:

ssh [email protected]

Then run a simple Netmiko script to pull device information:

from netmiko import ConnectHandler

device = {
    "device_type": "cisco_ios",
    "host": "192.168.100.1",
    "username": "admin",
    "password": "cisco",
}

connection = ConnectHandler(**device)
output = connection.send_command("show ip interface brief")
print(output)
connection.disconnect()

If you see interface output printed to your terminal, your automation environment is working correctly.

Tips for a Stable Home Lab

  • Allocate at least 8GB RAM to your EVE-NG VM, with 16GB recommended if running multiple router images simultaneously
  • Use IOSv instead of CSR1000v when RAM is tight; IOSv uses around 256MB per instance versus 3GB for CSR
  • Save your topology frequently; EVE-NG does not auto-save node configurations
  • Use the EVE-NG pack client to enable right-click Putty and SecureCRT access from Windows

What's Next

With your EVE-NG environment running and your automation tools installed, you're ready to go deeper. The next post in this series covers writing Ansible playbooks to configure network devices at scale, including how to manage inventory files, use variables, and handle device-specific configuration templates. That's where the real automation power starts to show.

๐Ÿ”ง
For managing SSH sessions into your EVE-NG nodes, SecureCRT is worth adding to your workflow. It handles multiple simultaneous sessions cleanly and supports scripting, which pairs well with a lab environment where you're bouncing between several devices at once. SecureCRT.