sec0uth / brick-abode-project-interview

The final project of interviewing process
0 stars 0 forks source link

Find reliable way to run Cisco and Juniper images #1

Closed sec0uth closed 3 years ago

sec0uth commented 3 years ago

Describes how I achieved to run the routers images.

sec0uth commented 3 years ago

Starting with Cisco I signed up at Cisco's sandbox platform as suggested. Besides the reservation scheme to actually run the csr1000v router is fine, I wanted to own and control the environment, so I started looking for some .iso or raw disk image even knowing that if it was a miss I have already accomplished the sandbox thing. In the college I basically studied all networking concepts using Cisco routers. That being said the first place I searched for images was in gns3 appliances and found this:

https://docs-v1.gns3.com/appliances/cisco-csr1000v.html

Well, they did not provide the actual image but just referenced for the original Cisco's website. The bad news was that for downloading the latest archives one must have some kind of contract with them, but some older versions only requires an account registration. They provide a couple of different images, but for the following reasons I bet in the iso:

After some research I come with this working settings (see https://brezular.com/2013/08/18/cisco-csr-1000v-installation-on-qemu-virtual-machine): image Key notes:

The installation was automatic. At the end I was prompted with the usual wizard question, which I skipped, so I made some configurations in order to ssh into it:

# configure terminal
(config) hostname router.cisco
(config) ip domain-name optimus-prime.homelab

(config) interface gigabitEthernet 0
(config-if) ip address dhcp
(config-if) no shutdown

(config) username cisco password 0 cisco

(config) line console 0
(config-line) password cisco
(config-line) login

(config) line vty 0 4
(config-line) transport input ssh
(config-line) login local

(config) crypto key generate rsa modulus 2048

Now I can access the router from ssh: image

sec0uth commented 3 years ago

I just discovered the vm does not need the cpu name to be Nehalem, and works with SATA, too which is expectedly. Also it is not working with the default machine chipset, only with q35 emulation.

sec0uth commented 3 years ago

Now Juniper. Juniper' OS was a new thing to me, but I already liked it when first contacting it via ssh. Well, Juniper VLabs did not worked as expected, I tried creating 3 different accounts in the end and still nothing. I kind of screwed up the first account because I faily read too fast the account creation portal and selected to create an account as Guest instead of one with VLabs access. I was not even able to download the free trials images anymore, only get access denied. Anyway, that was painfully. It turns out that Azure has free trial for such machine for a month or so. The creation process was aws like, it means, it's hard to measure exactly just in time how much it costs, but it is easy to do it and I now have a very nice looking vm.

image