Saturday, July 6, 2024

Deploy Juniper vMX in GNS3

I needed a Juniper virtual lab to refresh my Junos OS CLI, so the easiest way is to deploy a virtual MX (vMX) in GNS3. You'll need a vMX qcow2 file to run in GNS3.

Go to Edit >Preferences > QEMU > Qemu VM >New > select New Image >browse the .qcow2 file.

It will automatically upload the image. Just click Finish when it's done.

Select vMX > click Edit.

Under Symbol > click Browse.

To distinguish between a Cisco and Juniper router, under General settings tab > Symbol > select: Affinity-circle-blue > select: Router > click OK.


Go to Network tab > Adapters: type 3 (or click up arrow).

Click OK > Apply.

Click Browse all devices (left-hand side) > click/drag vMX.

I've deployed two vMX, a Cisco L2 switch and a Cisco 7200 router in my JNCIA lab.

I just ran/power on a single vMX and the L2 switch to play around with Junos CLI.



<OUTPUT TRUNCATED>

 

Profile database initialized

Local package initialization:.

kern.securelevel: -1 -> 1

starting local daemons:set cores for group access

Running /packages/finish.install ...

.

Sat Jun  8 03:03:56 UTC 2024

 

Amnesiac (ttyd0)   <<< HOSTNAME Amnesic IS FACTORY DEFAULT

 

login: root   <<< HIT ENTER, NO INITIAL PASSWORD

 

--- JUNOS 14.1R1.10 built 2014-06-07 09:37:07 UTC

root@% cli   <<< TYPE CLI TO GO OPERATIONAL MODE

root> show version

Model: vmx

Junos: 14.1R1.10

JUNOS Base OS Software Suite [14.1R1.10]

JUNOS Base OS boot [14.1R1.10]

JUNOS Crypto Software Suite [14.1R1.10]

JUNOS Online Documentation [14.1R1.10]

JUNOS Kernel Software Suite [14.1R1.10]

JUNOS Packet Forwarding Engine Support (M320) [14.1R1.10]

JUNOS Packet Forwarding Engine Support (M/T/EX Common) [14.1R1.10]

JUNOS Routing Software Suite [14.1R1.10]

JUNOS Runtime Software Suite [14.1R1.10]

 

<OUTPUT TRUNCATED>

 

To configure the root password, go to configuration mode by typing edit > issue the command set system root-authentication plain-text-password > type a password > type again the password to confirm.

 

Type commit to save configuration.

 

 

root> edit

Entering configuration mode

 

[edit]

root# set system root-authentication plain-text-password

New password:

Retype new password:

 

[edit]

root# set system host-name vMX1 

 

[edit]

root# commit

commit complete

 

[edit]

root@vMX1#   <<< NOTICE THE HOSTNAME APPEARED

 

[edit]


No comments:

Post a Comment