This post is a brief translation of my previous post published in Chinese. It introduces how to install Cisco CSR1000v on GNS3, which provide a platform for various labs, such as DMVPN, FlexVPN, Performance routing, multicast, OTV, MPLS, VPLS and etc.
I finished writing 4 FlexVPN labs by far, but in Chinese. I will gradually translate them into English.
- CSR1000v Overview (VM requirements, evaluation license, supported features and etc.): http://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/csr1000Vswcfg/csroverview.html
- CSR1000v FAQ: http://www.cisco.com/c/en/us/products/collateral/routers/cloud-services-router-1000v-series/qa_c67-729558.html
- VirtualBox (free): I am using v5.0. Download link: https://www.virtualbox.org
- GNS3 (free): I am using mac v1.4.0 Download link: https://www.gns3.com/software/download
- CSR1000v (free): ISO or OVA version. I am using ISO (csr1000v-universalk9.03.16.01a.S.155-3.S1a-ext.iso). Download link: https://software.cisco.com/download/release.html?mdfid=284364978&softwareid=282046477&release=3.16.1aS&relind=AVAILABLE&rellifecycle=ED&reltype=latest
The following installation uses ISO.
- Install VirtualBox (not introduced in this post)
- Install GNS3 (not introduced in this post)
- Create VM on VirtualBox with following specs:
- OS: Other Linux (64-bit)
- RAM: 2.5-4GB, I tried 2GB it worked as well
- Hard disk: 8GB IDE
- Upon finishing creation and before power on the VM, open ‘Settings’ and add the CSR ISO file (csr1000v-universalk9.03.16.01a.S.155-3.S1a-ext.iso) in ‘Storage’.
- Open ‘Settings’ and configure adapters under ‘Network’. I configured ‘Adapter 1’ as ‘Bridged’ mode for sake of obtaining DHCP. Enable the rest adapters but keep the settings as default ‘Not Attached’
- Power on the VM and CSR will be automatically installed.
- Upon finishing the installation, CSR VM will automatically reboot. ‘Router>’ prompt will show after installation being completed. Since Adapter 1 is configured as attached. It should have ‘up’ status.
- Add the newly built CSR VM to GNS3, under GNS3 ‘Preferences’. For MAC ‘Preferences’ sits under ‘GNS3’ menu; while it may be under ‘Edit’ menu for Windows.Select ‘linked base VM’, so that we can drag and drop multiple CSR instances based on one VM built in VirtualBox.
- Edit CSR VM template in GNS3 and tick ‘Enable remote console’ under ‘General settings’ tab. Adapters can be modified under ‘Network’ tab – means you can add additional ports here.
- Shut down CSR VM in VirtualBox first (it will cause error in GNS3 if not shut down the VM in VirtualBox) and then drag-n-drop CSR VM from GNS3 to use. Since ‘linked base’ has been configured before, we can drag and drop multiple CSR instances to use. The default VM symbol is a computer, but we can change it to router symbol.
- Shut down CSRs from GNS3 first before adding any cables. Configure management interface IP (using Adapter 1 i.e. interface G1) and telnet. Happy labbing~!
I particularly like using lab to understand how things work, such as protocols and concepts, which may appear abstract when first look, instead of just remembering configuration. Configuration syntax can always be Googled, but concepts and protocols are universally applicable. In addition, it is the new concepts that constitutes new technology, but not the configuration details.
In this sense, verify, observe and understand results are much more important than configuration itself in lab study. This approach also import in CCIE exams and real work. Step-by-step verification and troubleshooting also help mitigate human errors and avoid mess up in the end – all configuration has been done, but not working then start random troubleshooting.