Just Lab IT !!!!!
… and that is when you are privileged to mess things up!
☰ Menu
Cisco IOS-XR: Deploy an IOS-XRv appliance in GNS3
Hungtx Cisco, Routing September 16, 2017 3 Minutes
In this post, we are going to deploy an IOS-XRv VirtualBox Image (a free demo image) in GNS3.
First of all, we have to download an IOS-XRv VirtualBox Image on Cisco upload page (h ps://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?
CONTYPES=Cisco-IOS-XRv). In this lab, we use IOS XRv 612 (iosxrv-k9-demo-6.1.2.ova).
Bear in mind that we need a Cisco CCO account to download the image.
Setup on VirtualBox
We import the newly-downloaded image into VirtualBox.
Our general se ings for this IOS-XRv look like below (your se ings may be different depending on your hardware):
Name: IOS-XRv-612
Base Memory: 4096 MB
Processors: 2
Network Adapters: 4 (Enabled and Not a ached)
Setup on GNS3
Next, we go to GNS3 to create a VirtualBox VM appliance with this IOS-XRv-612.
In General se ings tab, we check
‘Start VM in headless mode’ and
‘Use as a linked base VM
(experimental)’.
In Network tab, we choose four (4)
Adapters, change ‘First port name’
to Management and ‘Name
format’ to Gi0/0/0/{0} to match the
order and name of interfaces in
VirtualBox IOS-XRv image.
The IOS-XRv-612 appliance is now
ready for us to use, connect and
boot up.
At the end of booting process, hit
‘Enter’. The IOS-XRv will ask us to
configure root-system username
and secret. We choose ‘netlab’ as
username.
To login, we can use our newly-
configured account or cisco/cisco
as indicated on the screen:
Basic configuration and testing
To continue, we basically configure IOS-XRv and R1 routers, and test whether they are working properly or not when connecting to each other like
in the diagram.
In this scenario, we are going to test by pinging and detecting peers via CDP on both ends.
By default, CDP is disabled on IOS-XR device. We need to enable it globally and at interface level. Unlike IOS, we need to issue ‘commit’ command
to confirm all changes on IOS-XR.
Configuring IOS-XRv and R1 routers:
RP/0/0/CPU0:ios#conf t
Fri Sep 15 17:01:28.685 UTC
RP/0/0/CPU0:ios(config)#cdp
RP/0/0/CPU0:ios(config)#int GigabitEthernet0/0/0/0
RP/0/0/CPU0:ios(config-if)#cdp
RP/0/0/CPU0:ios(config-if)#ipv4 address 192.168.0.2/24
RP/0/0/CPU0:ios(config-if)#no shut
RP/0/0/CPU0:ios(config-if)#commit
Fri Sep 15 17:06:58.542 UTC
RP/0/0/CPU0:Sep 15 17:06:58.622 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/0, changed s
RP/0/0/CPU0:Sep 15 17:06:58.652 : ifmgr[228]: %PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/0/0/0, changed s
RP/0/0/CPU0:ios(config-if)#end
RP/0/0/CPU0:ios#
R1#conf t
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#end
R1#wr
Pinging peer routers:
RP/0/0/CPU0:ios#ping 192.168.0.1
Fri Sep 15 17:12:56.118 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/9 ms
RP/0/0/CPU0:ios#
R1#ping 192.168.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/35/60 ms
R1#
Detecting peer routers via CDP:
RP/0/0/CPU0:ios#show cdp neighbors
Fri Sep 15 17:12:59.088 UTC
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R1 Gi0/0/0/0 137 R S I Cisco 269 Fa0/0
RP/0/0/CPU0:ios#
R1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
ios Fas 0/0 163 R IOS XRv S Gig 0/0/0/0
R1#
Well, IOS-XRv router is working properly as we expect.
P.S: If you run a similar setup and cannot perform Ping test (timeout), please try to delete and reconnect the connection between IOS-XRv and R1
routers. I did the same J.
Tagged:
IOS-XR
Published by Hungtx
View all posts by Hungtx
8 thoughts on “Cisco IOS-XR: Deploy an IOS-XRv appliance in GNS3”
Mohammad Khalil says:
November 25, 2017 at 11:02 pm
Hi and thanks for the great post
Can you share the OVA image as I have tried to access the Cisco upload website and it says the file exchange is no longer available!
Thanks in advance
Reply
Hung says:
November 27, 2017 at 10:40 pm
Hi Mohammad,
Can you try again? I have just checked and could access the page. There might be a temporary issue.
Best Regards,
Hung.
Reply
Mohammad Khalil says:
November 28, 2017 at 11:08 am
Hi mate and thanks for the kind reply
It worked , but the ova file (6.1.2) does not exist
BR,
Mohammad
Rooland says:
May 12, 2018 at 8:16 pm
Please provide link for ova or vmdk file. The existing link doesn’t have the files anymore.
Reply
Hung says:
May 18, 2018 at 5:09 pm
Hello Rooland,
It looks like the owners removed those ova/vmdk files. Alternatively, you can use the .qcow2 file (6.1.3 demo image). The file can be
downloaded at this link (shared by someone, not me).
Best Regards,
Hung.
Reply
Cagdas says:
July 3, 2018 at 6:27 pm
Hi Hung,
Thank you for such a great post! Everything OK but XRv software is not in the website. Can you please share iosxrv-demo-6.1.2.vmdk file? I’ve
been looking for the file for 3 weeks. I’m stucked in searching, couldn’t forward even one step
Can you please not offer upload.cisco.com website. There’s nothing about our versions. There’s a dummy file on the upload.cisco.com.
I’m looking forward to hearing from you soon.
Regards
Reply
Cagdas says:
July 3, 2018 at 6:29 pm
And also h ps://www.4shared.com/file/_HEDqymyei/iosxrv-k9-demo-613.html is not working, too
Reply
Hung says:
July 5, 2018 at 4:38 pm
Hi Cagdas,
The file from 4shared is still valid (I have just tried and succeeded). Once you download it, you can use the appliance template from
GNS3 at this link
Blog at WordPress.com.