Cisco Modeling Labs
Tags: cisconxos, datacenternetworking, designpatterns, homelab
Published: 2022-08-04 04:55:07

---
title: Cisco Modeling Labs
published: true
date: 2022-03-26 16:00:00 UTC
tags: CiscoNXOS,DatacenterNetworking,DesignPatterns,HomeLab
canonical_url: https://blog.engyak.co/2022/03/cisco-modeling-labs.html
---

### Ever wonder what it would be like to have a platform dedicated to Continuous Improvement / Testing / Labbing?

| 
[![](https://blogger.googleusercontent.com/img/a/AVvXsEiGmDUij7p0TNo0EAnbSkry8ozVtcvDC_yRHDwLxTOs4wRHVhqlEqFnnEA-QlxJ4XvZBGaQkhssI8OLDs0Zf456r-WBSezKmtdZk_hHzaLbo1CHnOlfHRmV2PM_ny6F8xvrrAiIc2CdXDm2BYcdvcwJueNKecAIM2GGpWyYgtjaNUcbE9_tIKQxGGK_=w128-h128 "Cisco Modeling Labs")](https://developer.cisco.com/modeling-labs/)
 | Cisco's put a lot of thought into good ways to do that, and **Cisco Modeling Labs** (CML) is the latest iteration of their solutions to provide this as a service to enterprises and casual users alike.  
CML is the next logical iteration of Virtual Internet Routing Labs (VIRL) and is officially backed by Cisco with legal VNF licensing. It's a KVM type-2 hypervisor, and automatically handles VNF wiring with an HTML5/REST interface.  
 |

Cisco's mission is to provide a [NetDevOps platform](https://developer.cisco.com/netdevops/) to network engineers, upgrading the industry's skillset to provide an entirely new level of reliability to infrastructure. Hardware improves over time, and refresh cycles complete - transferring the "downtime" problem from hardware/transceiver failure to engineer mistakes. **NetDevOps is the antidote for this problem, infrastructure engineers should leverage automation to make any operation done on production equipment absolutely safe.**

### Solution Overview

**Cisco Modeling Labs** provides you the ability to:

- Provision up to 20/40 Cisco NOS nodes (personal licensing) as you see fit
- Execute "What if?" scenarios without having to pre-provision or purchase network hardware, improving service reliability
- Develop IaC tools, Ansible playbooks and other automation on systems other than the production network   
- Leverage TRex (Cisco's network traffic generator) to make simulations more real
- Deploy workloads to the CML fabric to take a closer look or add capabilities inside
- Save and share labbed topologies
- Do everything via the API. **Cisco DevNet even supplies a Python client for CML** to make the API adoption easy!  

Some important considerations for CML:

- Set up a new segment for management interfaces, ensuring that external CI Tooling/Ansible/etc can reach it.
- VNFs are **hungry**. NX-OSv images are at the high end (8GB of memory each), and IOSv/CSR1000v will monopolize CPU. Make sure that plenty of resources are allocated  
- Leverages Cisco Smart Licensing. CML uses legitimate VNF images with legitimate licensing, but will need internet access 
- **CML does not provide SD-WAN features, Wireless, or Firepower appliance licensing, but does support deploying them**

Let's Install CML! Cisco provides an ESXi (vSphere) compatible OVA:

 ![](https://blogger.googleusercontent.com/img/a/AVvXsEhBPOTotAc2qzV3uOo5CdGO-D0bHt9GqdIav6VNhUhiKkBnVlTpEL6k5zud5Gx-Ih26O9ReitSl-I6LvyZRzXRrQKZGMr_PfgPM1VMeUlvGuhqUbFZQld3yKqjTbzI2FxJ0feHz-UM7Pg_c2tqOs47H1oA5Xw56yf6fWMl5WLWJcAaoKfc8zzE6_mqa=w640-h548) ![](https://blogger.googleusercontent.com/img/a/AVvXsEjTe3ZiEiTAeXMONvlfYCAoovI9zQcYko2ZGDftIO0N3L09L1WqdxgkEBVON5IQXk3mvSLj0msnOl5uAFQC_AzF9qni31kZFoqcdPRJwF-7bzKFQo7Z8gYimQi527cQUO1wmYtO8eU-2tLaNocjU1EiChY_gQl55t789Z_AtwLkQIPpxtj6TrJYQENY=w655-h553) ![](https://blogger.googleusercontent.com/img/a/AVvXsEhg7mxf6IyXrKB6sgJBovXLUo9P6ynR4lYAG1Xg8FDt1VtsCVdWCdTBNYZlpKduSVW_9jZjSWHtxffVzBIpbuyL-nBF3NVzhuMJSGF9QO8gCKG0giaSJkubolTvnfn5bQLq0ClBZ8zBQ6Elgef6lWGc0zfl--hXLbchs0JJAzsq3SFl8mswj2fuhxlr=w740-h630) ![](https://blogger.googleusercontent.com/img/a/AVvXsEiARpC4w6H90FRmcbFJhTzJyfGu7ZLlsuDT2HUyJdTRG798H7z6kRaPSpq2tz8Qro8EW7NC5DtM031gB_Ss8E7kquDcu66Oe88ptFyMUDT3rwX2gk3i2irenB5gQhTiYINtkCAtbCF-td5zeG-_Tg7rkqdW1vzVrNLx9qcSgJ01QEOn9jrGPTtEPk7J=w740-h627)

After It's deployed, I assigned 4 vCPUs and 24 GB of memory, and attached the platform ISO. Search under [software.cisco.com](http://software.cisco.com) for _ **Modeling Labs:** _

 ![](https://blogger.googleusercontent.com/img/a/AVvXsEgiLiaF0GVttZ2GWfEWf_7JkTKjP0a-Ilsau0X_tR08ITSm52awKJ82OoPXcZoCSfwGU8rpYbEbUC_utIX3LGJMzm-5enqzM5Ofge5uVZhhf3Jms5JLkzYZe4TV12o9n0ZYRBC5M59Q0H9Ocuu_DXcchv592AoqWXrLo6SAItd_M_NHYVroKlr_TlN-=w769-h96)

Once mounted, the wizard continues from there. CML will ask you for passwords, IP configurations, the typical accoutrements:

 ![](https://blogger.googleusercontent.com/img/a/AVvXsEhyvTXzhC8VOB-Ei2xIweGlpG7pO1jhHEhA5Vy_XFlNGMjiCgrDXa31lCIh7XsSTnRxmqLBHmYGR1NcXn4FIFL9IRLS6b59MEf8-V-91lXwI1tI-lpbg0PHSEKKvTyRFscS8k1EsIyOb4Z-Y-Xu0kfBgb4ZfItCJhaOUTgWmciQuuKUr2uOcy-ASyJ8=w679-h507) ![](https://blogger.googleusercontent.com/img/a/AVvXsEj9XMINuD9GaiJgkbST_EhXWPODR8jvV-b57ak_B085d1NiXWuc6Dtz5Go1FClmvOzGaNb4i3CijD1onWr1fQRjGdMyOGqq9j93EtnNRA6UZP7x-gnsAG3cwrHQqMzEnJY1B4rGwViZOvOdeIxc4d3w6nqsc5Izgqr_3nGyedlTtJsMDbHPw3oFIdsL=w675-h333)

The installer will take about 10 minutes to run, as it copies all of the base images into your virtual machine. Once it boots up, CML has two interfaces:

- https://`{{ ip }}`/ : The CML "Lab" Interface
- https://`{{ ip }}`:9090/ : The Ubuntu "cockpit" view, manage the appliance and its software updates from here. Cisco's integrated CML into this GUI as well.

CML's primary interface will not allow workloads to be built until a license is installed. Licenses are fetched from the [Cisco Learning Network Store](https://learningnetworkstore.cisco.com/) under settings:

[![](https://blogger.googleusercontent.com/img/a/AVvXsEgdl3Q28V9xCPw0_AuGy_V8YievIqfQdsFb721oNMae6mtw2rg2ZKnkJMeRrQdeR9RtHcIayIDyrPDvjaxzqE5lteqTlJK2ReNDI8TAZgDrgy3t-eH7zP5DCtRWnX8ID3Sqi3sBY78YC2v2EIxaYfQsVRhhAkpEgAlVgB-Mw41dv613oqTDAcWvCXGf=w611-h248)](https://blogger.googleusercontent.com/img/a/AVvXsEgdl3Q28V9xCPw0_AuGy_V8YievIqfQdsFb721oNMae6mtw2rg2ZKnkJMeRrQdeR9RtHcIayIDyrPDvjaxzqE5lteqTlJK2ReNDI8TAZgDrgy3t-eH7zP5DCtRWnX8ID3Sqi3sBY78YC2v2EIxaYfQsVRhhAkpEgAlVgB-Mw41dv613oqTDAcWvCXGf=s998)
CML is ready to go! Happy Labbing!