Skip to main content

Juniper Point-to-Pont

Note: This guide is even further in-depth than the Point-to-Point configuration guide. This is only intended for a technical audience who is looking to create an NYCMesh P2P, when one or both sides of the link is routed by a Juniper router.

 

Overview

To create a mesh-specific OSPF P2P link on the Juniper, there are 4 configuration changes you will need to make

  1. Create an irb interface - creating an irb interface is the Juniper equivalent of creating a MikroTik VLAN interface. It's an interface with an IP address, that is assigned to a certain VLAN. The only difference is that this VLAN is not limited to a port, and can be sent out any port. This is where you will assign your /30 P2P IP address.

  2. Create a VLAN - the VLAN and the irb interface are be linked together, and the VLAN is assigned to the switch port that the P2P traffic will come from. This will either be a switchport that the antenna is directly connected to, or a switchport that goes to another switch, which is connected to the antenna.

  3. Configure OSPF on the irb - this is where you configure the OSPF cost of your P2P.

  4. Add the VLAN to a switchport - this is where you assign the VLAN to the port where P2P traffic will be coming from on the Juniper

 

Prerequisites

  • Subnet allocated
  • P2P already configured on the MikroTik side of the link (follow this guide)
  • OSPF cost known

Choosing a VLAN ID

In order to create a P2P, we need to choose an unused VLAN on the Juniper. 

  1. Log into the Juniper with ssh root@ip_address
  2. Enter cli at the initial prompt to enter the switch configuration
  3. Enter show vlans and press enter. This will display a list of all the VLANs on the Juniper. Note down a tag that is unused (this can be anything between 1 and 4094, but you should keep it close to other existing VLANs)

Configuring the Juniper

  1. At the main Juniper CLI prompt (where you should be after entering show vlans above), enter configure to start configuring the switch.
  2. First, we'll create the irb. Enter the following commands, replacing <P2P_NAME> with the name of your P2P link, and <IP_ADDRESS> with the IP address of the Juniper side of the link.
    1. set interfaces irb unit <VLAN_TAG> description <P2P NAME>
    2. set interfaces irb unit <VLAN_TAG> family inet address <IP_ADDRESS>/30
  3. Next, create a VLAN and link it to your irb interface
    1. set vlans <P2P_NAME> vlan-id <VLAN_TAG>