JNCIS-SP: LAB setup.

The best part of pursuing a certification is, in my opinion, doing labs. You learn and see the theory in practice and it's nice to build stuff for the sake of building.

I made a JNCIS SP lab with an MX80 and an EX4500 (which was not really necessary, but it was already mounted in the same rack so why not).

On the MX80, I made 10 logical systems and I connected port ge-1/0/3 to ge-1/1/3. Through these two interfaces I made a topology which I can use for just about all the scenario's that you would need to build in order to make the most of the JNCIS-SP certificate.

Below is a drawing that shows the logical and the physical topology.

scenario



The advantages of this setup is that you do not need a lot of hardware and with a starting configuration, you can start to practice any given scenario in no time.

Later on, I (might) post another lab to be able to do some HA and some more other stuff. But for the majority of topics, this lab is going to suffice.

When you happen to have a MX-series router lying around and you want to save some time, here is the relevant config for this lab (the MX part):



============================================================
MX configuration for the logical systems and the interfaces:
============================================================


set logical-systems R1 interfaces xe-0/0/0 unit 1 vlan-id 1
set logical-systems R1 interfaces xe-0/0/0 unit 1 family inet address 172.16.0.1/30
set logical-systems R1 interfaces ge-1/0/3 unit 50 description TO-R2
set logical-systems R1 interfaces ge-1/0/3 unit 50 vlan-id 50
set logical-systems R1 interfaces ge-1/0/3 unit 50 family inet address 2.0.0.9/30
set logical-systems R1 interfaces lo0 unit 1 family inet address 1.1.1.1/32
set logical-systems R10 interfaces xe-0/0/0 unit 10 vlan-id 10
set logical-systems R10 interfaces xe-0/0/0 unit 10 family inet address 172.16.0.37/30
set logical-systems R10 interfaces ge-1/0/3 unit 58 description TO-R7
set logical-systems R10 interfaces ge-1/0/3 unit 58 vlan-id 58
set logical-systems R10 interfaces ge-1/0/3 unit 58 family inet address 2.0.0.34/30
set logical-systems R10 interfaces lo0 unit 10 family inet address 1.1.1.10/32
set logical-systems R2 interfaces xe-0/0/0 unit 2 vlan-id 2
set logical-systems R2 interfaces xe-0/0/0 unit 2 family inet address 172.16.0.5/30
set logical-systems R2 interfaces ge-1/1/3 unit 50 description TO-R1
set logical-systems R2 interfaces ge-1/1/3 unit 50 vlan-id 50
set logical-systems R2 interfaces ge-1/1/3 unit 50 family inet address 2.0.0.10/30
set logical-systems R2 interfaces ge-1/1/3 unit 51 description TO-R3
set logical-systems R2 interfaces ge-1/1/3 unit 51 vlan-id 51
set logical-systems R2 interfaces ge-1/1/3 unit 51 family inet address 2.0.0.1/30
set logical-systems R2 interfaces ge-1/1/3 unit 52 description TO-R6
set logical-systems R2 interfaces ge-1/1/3 unit 52 vlan-id 52
set logical-systems R2 interfaces ge-1/1/3 unit 52 family inet address 2.0.0.5/30
set logical-systems R2 interfaces lo0 unit 2 family inet address 1.1.1.2/32
set logical-systems R3 interfaces xe-0/0/0 unit 3 vlan-id 3
set logical-systems R3 interfaces xe-0/0/0 unit 3 family inet address 172.16.0.9/30
set logical-systems R3 interfaces ge-1/0/3 unit 51 description TO-R2
set logical-systems R3 interfaces ge-1/0/3 unit 51 vlan-id 51
set logical-systems R3 interfaces ge-1/0/3 unit 51 family inet address 2.0.0.2/30
set logical-systems R3 interfaces ge-1/1/3 unit 54 description TO-R7
set logical-systems R3 interfaces ge-1/1/3 unit 54 vlan-id 54
set logical-systems R3 interfaces ge-1/1/3 unit 54 family inet address 2.0.0.17/30
set logical-systems R3 interfaces ge-1/1/3 unit 59 description TO-R4
set logical-systems R3 interfaces ge-1/1/3 unit 59 vlan-id 59
set logical-systems R3 interfaces ge-1/1/3 unit 59 family inet address 2.0.0.37/30
set logical-systems R3 interfaces ge-1/1/3 unit 60 description TO-R5
set logical-systems R3 interfaces ge-1/1/3 unit 60 vlan-id 60
set logical-systems R3 interfaces ge-1/1/3 unit 60 family inet address 2.0.0.41/30
set logical-systems R3 interfaces lo0 unit 3 family inet address 1.1.1.3/32
set logical-systems R4 interfaces xe-0/0/0 unit 4 vlan-id 4
set logical-systems R4 interfaces xe-0/0/0 unit 4 family inet address 172.16.0.13/30
set logical-systems R4 interfaces ge-1/0/3 unit 59 description TO-R3
set logical-systems R4 interfaces ge-1/0/3 unit 59 vlan-id 59
set logical-systems R4 interfaces ge-1/0/3 unit 59 family inet address 2.0.0.38/30
set logical-systems R4 interfaces lo0 unit 4 family inet address 1.1.1.4/32
set logical-systems R5 interfaces xe-0/0/0 unit 5 vlan-id 5
set logical-systems R5 interfaces xe-0/0/0 unit 5 family inet address 172.16.0.17/30
set logical-systems R5 interfaces ge-1/0/3 unit 60 description TO-R3
set logical-systems R5 interfaces ge-1/0/3 unit 60 vlan-id 60
set logical-systems R5 interfaces ge-1/0/3 unit 60 family inet address 2.0.0.42/30
set logical-systems R5 interfaces lo0 unit 5 family inet address 1.1.1.5/32
set logical-systems R6 interfaces xe-0/0/0 unit 6 vlan-id 6
set logical-systems R6 interfaces xe-0/0/0 unit 6 family inet address 172.16.0.21/30
set logical-systems R6 interfaces ge-1/0/3 unit 52 description TO-R2
set logical-systems R6 interfaces ge-1/0/3 unit 52 vlan-id 52
set logical-systems R6 interfaces ge-1/0/3 unit 52 family inet address 2.0.0.6/30
set logical-systems R6 interfaces ge-1/0/3 unit 57 description TO-R8
set logical-systems R6 interfaces ge-1/0/3 unit 57 vlan-id 57
set logical-systems R6 interfaces ge-1/0/3 unit 57 family inet address 2.0.0.30/30
set logical-systems R6 interfaces ge-1/1/3 unit 53 description TO-R7
set logical-systems R6 interfaces ge-1/1/3 unit 53 vlan-id 53
set logical-systems R6 interfaces ge-1/1/3 unit 53 family inet address 2.0.0.13/30
set logical-systems R6 interfaces ge-1/1/3 unit 55 description TO-R9
set logical-systems R6 interfaces ge-1/1/3 unit 55 vlan-id 55
set logical-systems R6 interfaces ge-1/1/3 unit 55 family inet address 2.0.0.21/30
set logical-systems R6 interfaces lo0 unit 6 family inet address 1.1.1.6/32
set logical-systems R7 interfaces xe-0/0/0 unit 7 vlan-id 7
set logical-systems R7 interfaces xe-0/0/0 unit 7 family inet address 172.16.0.25/30
set logical-systems R7 interfaces ge-1/0/3 unit 53 description TO-R6
set logical-systems R7 interfaces ge-1/0/3 unit 53 vlan-id 53
set logical-systems R7 interfaces ge-1/0/3 unit 53 family inet address 2.0.0.14/30
set logical-systems R7 interfaces ge-1/0/3 unit 54 description TO-R3
set logical-systems R7 interfaces ge-1/0/3 unit 54 vlan-id 54
set logical-systems R7 interfaces ge-1/0/3 unit 54 family inet address 2.0.0.18/30
set logical-systems R7 interfaces ge-1/1/3 unit 58 description TO-R10
set logical-systems R7 interfaces ge-1/1/3 unit 58 vlan-id 58
set logical-systems R7 interfaces ge-1/1/3 unit 58 family inet address 2.0.0.33/30
set logical-systems R7 interfaces lo0 unit 7 family inet address 1.1.1.7/32
set logical-systems R8 interfaces xe-0/0/0 unit 8 vlan-id 8
set logical-systems R8 interfaces xe-0/0/0 unit 8 family inet address 172.16.0.29/30
set logical-systems R8 interfaces ge-1/1/3 unit 56 description TO-R9
set logical-systems R8 interfaces ge-1/1/3 unit 56 vlan-id 56
set logical-systems R8 interfaces ge-1/1/3 unit 56 family inet address 2.0.0.25/30
set logical-systems R8 interfaces ge-1/1/3 unit 57 description TO-R6
set logical-systems R8 interfaces ge-1/1/3 unit 57 vlan-id 57
set logical-systems R8 interfaces ge-1/1/3 unit 57 family inet address 2.0.0.29/30
set logical-systems R8 interfaces lo0 unit 8 family inet address 1.1.1.8/32
set logical-systems R9 interfaces xe-0/0/0 unit 9 vlan-id 9
set logical-systems R9 interfaces xe-0/0/0 unit 9 family inet address 172.16.0.33/30
set logical-systems R9 interfaces ge-1/0/3 unit 55 description TO-R6
set logical-systems R9 interfaces ge-1/0/3 unit 55 vlan-id 55
set logical-systems R9 interfaces ge-1/0/3 unit 55 family inet address 2.0.0.22/30
set logical-systems R9 interfaces ge-1/0/3 unit 56 description TO-R8
set logical-systems R9 interfaces ge-1/0/3 unit 56 vlan-id 56
set logical-systems R9 interfaces ge-1/0/3 unit 56 family inet address 2.0.0.26/30
set logical-systems R9 interfaces lo0 unit 9 family inet address 1.1.1.9/32

================================================
MX configuration for the logical systems logins:
================================================


! this enables you to login to a logical system directly without going to the router itself first.


set system login class R1 logical-system R1
set system login class R1 permissions all
set system login class R10 logical-system R10
set system login class R10 permissions all
set system login class R2 logical-system R2
set system login class R2 permissions all
set system login class R3 logical-system R3
set system login class R3 permissions all
set system login class R4 logical-system R4
set system login class R4 permissions all
set system login class R5 logical-system R5
set system login class R5 permissions all
set system login class R6 logical-system R6
set system login class R6 permissions all
set system login class R7 logical-system R7
set system login class R7 permissions all
set system login class R8 logical-system R8
set system login class R8 permissions all
set system login class R9 logical-system R9
set system login class R9 permissions all

set system login user R1 uid 2009
set system login user R1 class R1
set system login user R1 authentication encrypted-password "PASSWORD"
set system login user R10 uid 2011
set system login user R10 class R10
set system login user R10 authentication encrypted-password "PASSWORD"
set system login user R2 uid 2012
set system login user R2 class R2
set system login user R2 authentication encrypted-password "PASSWORD"
set system login user R3 uid 2013
set system login user R3 class R3
set system login user R3 authentication encrypted-password "PASSWORD"
set system login user R4 uid 2014
set system login user R4 class R4
set system login user R4 authentication encrypted-password "PASSWORD"
set system login user R5 uid 2015
set system login user R5 class R5
set system login user R5 authentication encrypted-password "PASSWORD"
set system login user R6 uid 2016
set system login user R6 class R6
set system login user R6 authentication encrypted-password "PASSWORD"
set system login user R7 uid 2017
set system login user R7 class R7
set system login user R7 authentication encrypted-password "PASSWORD"
set system login user R8 uid 2018
set system login user R8 class R8
set system login user R8 authentication encrypted-password "PASSWORD"
set system login user R9 uid 2019
set system login user R9 class R9
set system login user R9 authentication encrypted-password "PASSWORD"


=====================================================
MX configuration to login/logout of a logical system:
=====================================================


!To go to logical system R7
set cli logical-system R7

!To return to the router

clear cli logical-system



9-8-2014