Run OcNOS in your lab
The free OcNOS-SP VM runs in GNS3, EVE-NG, containerlab and netlab. Register once, then add OcNOS routers to the lab tool you already use.
Pick your lab tool
The GNS3 package contains the QEMU image, a GNS3 appliance file and a ready BGP L3VPN project.
- Download the GNS3 package and decompress the image:
xz -d OcNOS-SP-PLUS-x86-7.0.0-262-GA.qcow2.xz
On Windows, 7-Zip can decompress the file. - In GNS3, choose File > Import appliance, select the
.gns3afile from the package and point it at the.qcow2image. - Drag OcNOS nodes into a project, connect them and start them. The console opens over telnet; log in with
ocnos/ocnos.
For a quick start, import BGP-L3VPN-Proj.gns3project instead. It contains five OcNOS routers already configured for BGP L3VPN.
The EVE-NG package contains the QEMU image, the node template ocnos.yml, an icon and the configurations for a five-router BGP L3VPN lab.
- Copy the template to
/opt/unetlab/html/templates/intel/(amd/instead ofintel/on AMD hosts) and the icon to/opt/unetlab/html/images/icons/. - Create the image folder. Its name must start with the template name followed by a hyphen:
mkdir -p /opt/unetlab/addons/qemu/ocnos-7.0.0-262 cd /opt/unetlab/addons/qemu/ocnos-7.0.0-262 xz -d OcNOS-SP-PLUS-x86-7.0.0-262-GA.qcow2.xz mv OcNOS-SP-PLUS-x86-7.0.0-262-GA.qcow2 virtioa.qcow2 /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
- Add OcNOS nodes to a lab, connect them and start them. Log in with
ocnos/ocnos.
containerlab runs OcNOS with the ipinfusion_ocnos kind. vrnetlab packages the VM in a container.
- Download the KVM image, decompress it with
xz -dand copy the.qcow2file into theipinfusion/ocnosdirectory of the srl-labs vrnetlab repository. - Build the container image with
make docker-image. The 7.0.0-262 image builds asvrnetlab/ipinfusion_ocnos:7.0.0-262. - Use it in a topology and deploy with
containerlab deploy:name: ocnos-lab topology: nodes: r1: kind: ipinfusion_ocnos image: vrnetlab/ipinfusion_ocnos:7.0.0-262 r2: kind: ipinfusion_ocnos image: vrnetlab/ipinfusion_ocnos:7.0.0-262 links: - endpoints: ["r1:eth1", "r2:eth1"]
A node takes about three minutes to boot. eth0 is the management port; data ports start at eth1. The login for this kind is admin / admin@123.
netlab lists OcNOS as device ocnos and runs it on containerlab, so build the vrnetlab image first (see the containerlab tab). OcNOS support is in the netlab development branch and is not yet in a tagged release.
- Build
vrnetlab/ipinfusion_ocnos:7.0.0-262as in the containerlab tab. - Describe the lab and start it with
netlab up:defaults.device: ocnos provider: clab module: [ ospf ] nodes: [ r1, r2 ] links: [ r1-r2 ]
- netlab configures addressing and OSPF on both routers. Connect with
netlab connect r1.