Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Step 2: Up and Running

Access the CLI

You configure Junos cRPD using Junos CLI commands for routing services. Here's how to access the Junos CLI:

  1. Log in to the Junos cRPD container.
  2. Check the Junos OS version.
  3. Enter configuration mode.
  4. Add a password to the root administration user account. Enter a plain text password.
  5. Commit the configuration.
  6. Continue customizing the configuration, if required.

Interconnect cRPD Instances

Now let's learn how to build point-to-point links between two Junos cRPD containers.

In this example, we use two containers, crpd01 and crpd02, and connect them using eth1 interfaces that are connected to an OpenVswitch (OVS) bridge on the host. We're using an OVS bridge for Docker networking because it supports multiple host networking and provides secure communication. Refer to the following illustration:

  1. Install the OVS switch utility.
  2. Create another Junos cRPD container called crpd02.
  3. Verify the newly created container details.

  4. Log in to the Junos cRPD container.
  5. Add a password to the root administration user account. Enter a plain text password.
  6. Commit the configuration.
  7. Configure a new bridge named crpd01-crpd02_1 and add eth1 interface to crpd01 and crpd02 containers.
  8. Log in to the crpd01 container and verify the interface configuration.

  9. Log in to the crpd02 container and verify the interface configuration.
  10. Configure IP addresses to the eth1 interfaces.
  11. Log in to the Junos cRPD container crpd01.

  12. Send a ping to the crpd02 container to confirm connectivity between the two containers. Use the IP address of eth1 of crpd02 (10.1.1.2) to ping the container.

    The output confirms that the two containers can communicate with each other.

  13. Log in to the Junos cRPD container crpd02.

  14. Send a ping to the crpd01 container to confirm connectivity between the two containers. Use the IP address of eth1 of crpd01 (10.1.1.1) to ping the container.

    The output confirms that the two containers can communicate with each other.

Configure Open Shortest Path First (OSPF)

Now you have two containers, crpd01 and crpd02, that are connected and communicating. The next step is to establish neighbor adjacencies for the two containers. OSPF-enabled routers must form adjacencies with their neighbor before they can share information with that neighbor.

  1. Configure OSPF on the crpd01 container.
  2. Commit the configuration.
  3. Repeat steps 1 and 2 to configure OSPF on the crpd02 container.
  4. Use show commands to verify OSPF neighbors that have an immediate adjacency.

    The output shows the container's own loopback address and the loopback addresses of any containers which it is immediately adjacent to. The output confirms that the Junos cRPD has established an OSPF neighbor relationship and has learned their addresses and interfaces.

View Junos cRPD Core Files

When a core file is generated, you can find the output in the /var/crash folder. The generated core files are stored on the system that is hosting the Docker containers.

  1. Change to the directory where crash files are stored.
  2. List the crash files.
  3. Identify the location of the core files.