First JUNOS logical topology

Following on from my last post, I wanted to put together a small lab for me to start with inside my M10. As a reminder the extremely simple topology looks like so:
Juniper Physical First JUNOS logical topology

The plan is to make a simple lab like so:
First Junos First JUNOS logical topology

This should give me something to start with. I can always add more to make things a lot more complicated. Below I’ll paste my config which also includes IP addressing for the links and loopbacks:

set interfaces fe-0/0/0 vlan-tagging
set interfaces fe-0/0/1 vlan-tagging
set logical-systems J1 interfaces fe-0/0/0 unit 15 vlan-id 15
set logical-systems J1 interfaces fe-0/0/0 unit 15 family inet address 10.15.15.1/24
set logical-systems J1 interfaces fe-0/0/0 unit 121 vlan-id 121
set logical-systems J1 interfaces fe-0/0/0 unit 121 family inet address 10.12.12.1/24
set logical-systems J1 interfaces fe-0/0/0 unit 122 vlan-id 122
set logical-systems J1 interfaces fe-0/0/0 unit 122 family inet address 10.21.21.1/24
set logical-systems J1 interfaces lo0 unit 1 family inet address 1.1.1.1/32
set logical-systems J2 interfaces fe-0/0/1 unit 25 vlan-id 25
set logical-systems J2 interfaces fe-0/0/1 unit 25 family inet address 10.25.25.2/24
set logical-systems J2 interfaces fe-0/0/1 unit 121 vlan-id 121
set logical-systems J2 interfaces fe-0/0/1 unit 121 family inet address 10.12.12.2/24
set logical-systems J2 interfaces fe-0/0/1 unit 122 vlan-id 122
set logical-systems J2 interfaces fe-0/0/1 unit 122 family inet address 10.21.21.2/24
set logical-systems J2 interfaces lo0 unit 2 family inet address 2.2.2.2/32
set logical-systems J3 interfaces fe-0/0/0 unit 35 vlan-id 35
set logical-systems J3 interfaces fe-0/0/0 unit 35 family inet address 10.35.35.3/24
set logical-systems J3 interfaces fe-0/0/1 unit 34 vlan-id 34
set logical-systems J3 interfaces fe-0/0/1 unit 34 family inet address 10.34.34.4/24
set logical-systems J3 interfaces lo0 unit 3 family inet address 3.3.3.3/32
set logical-systems J4 interfaces fe-0/0/0 unit 34 vlan-id 34
set logical-systems J4 interfaces fe-0/0/0 unit 34 family inet address 10.34.34.4/24
set logical-systems J4 interfaces fe-0/0/1 unit 45 vlan-id 45
set logical-systems J4 interfaces fe-0/0/1 unit 45 family inet address 10.45.45.4/24
set logical-systems J4 interfaces lo0 unit 4 family inet address 4.4.4.4/32
set logical-systems J5 interfaces fe-0/0/0 unit 25 vlan-id 25
set logical-systems J5 interfaces fe-0/0/0 unit 25 family inet address 10.25.25.5/24
set logical-systems J5 interfaces fe-0/0/0 unit 45 vlan-id 45
set logical-systems J5 interfaces fe-0/0/0 unit 45 family inet address 10.45.45.5/24
set logical-systems J5 interfaces fe-0/0/1 unit 15 vlan-id 15
set logical-systems J5 interfaces fe-0/0/1 unit 15 family inet address 10.15.15.5/24
set logical-systems J5 interfaces fe-0/0/1 unit 35 vlan-id 35
set logical-systems J5 interfaces fe-0/0/1 unit 35 family inet address 10.35.35.5/24
set logical-systems J5 interfaces lo0 unit 5 family inet address 5.5.5.5/32

All tested and working so feel free to use the configuration yourself

9 thoughts on “First JUNOS logical topology”

  1. Hi,

    Would it be possible to have J5 to act like a MPLS P router and the others as PE?

    I would like to delete the J1 J2 and J3 J4 links and add and extra CE to each device.

    Would this allow L2VPN / L3VPN / VPLS labs? Or would this need separate physical ports because ethernet-ccc can’t be done if done on one port?

    Maybe you can post more topologies like this :) Would be great!

  2. Hi Mr X.

    Good question, I don’t know yet. I would think it would work though :)

    Watch this space for the next couple of week. I might try and replicate my IOS MPLS topology inside this box. Would be even better if I can get ym second M10 working so I can have a ton of routers!

  3. so did you only buy 1 m10? and are able to recreate your entire lab? what did a m10 cost? just curious as im starting to get introduced to junos and want some practice

    thanks

  4. Thankfully I didn’t need to buy it. These are our very old edge routers that were sitting collecting dust until I got my hands on it :) I still need to try and get the second one working though

  5. “Would be even better if I can get ym second M10 working so I can have a ton of routers!”

    Well, you can only have 15 (or 16?) active logical systems at a certain time.

    But you can always have different (or easily switch between) topologies by (de)activating the necessary logical systems!

  6. Darren you are having great posts (like the above one) and I would like to share your articles, but please add a Twitter button :)

    I would be much more easier than to copy / past link and title.

    Thanks!

Leave a Reply