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. Log in to the Junos cRPD instance with the CLI and continue customizing the configuration.

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. Navigate to the usr/bin directory path and use the wget command to download and to install the OVS docker.
  3. Change the permissions on the OVS bridge.
  4. Create another Junos cRPD container called crpd02.
  5. Create a bridge called my-net. This step creates eth1 interfaces on crpd01 and crdp02.
  6. Create an OVS bridge and add crpd01 and crpd02 containers with eth1 interfaces.
  7. Add IP addresses to the eth1 interfaces and to the loopback interfaces.
  8. Log in to the crpd01 container and verify the interface configuration.
  9. 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.

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.