Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Connecting a Logical System to a Physical Router

This example shows how to configure an interface on a logical system to connect to a separate router. The separate router can be a physical router or a logical system on a physical router.

Requirements

PICs must be installed on the two routers.

Overview

In this example, Logical System LS1 is configured on Router R1. The Logical System LS1 has a direct connection to Router R2.

Figure 1 shows the topology used in this example.

Figure 1: Logical System Connected to a Physical Router

Logical System Connected
to a Physical Router

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Router R1

set interfaces so-0/0/2 description "main router interface to R2"set logical-systems LS1 interfaces so-0/0/2 unit 0 description LS1->R2set logical-systems LS1 interfaces so-0/0/2 unit 0 family inet address 10.0.45.2/30

Device R2

set interfaces so-0/0/2 description R2->LS1set interfaces so-0/0/2 unit 0 family inet address 10.0.45.1/30

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To connect a logical system to a physical router:

  1. On Router R1, configure the interface.

    [edit]user@R1# set interfaces so-0/0/2 description "main router interface to R2"
  2. On Router R1, configure the Logical System LS1 interface.

    [edit]user@R1# set logical-systems LS1 interfaces so-0/0/2 unit 0 description LS1->R2 user@R1# set logical-systems LS1 interfaces so-0/0/2 unit 0 family inet address 10.0.45.2/30
  3. On Device R2, configure the interface to Logical System LS1.

    [edit]user@R2# set interfaces so-0/0/2 description R2->LS1 user@R2# set interfaces so-0/0/2 unit 0 family inet address 10.0.45.1/30
  4. If you are done configuring the devices, commit the configurations.

    [edit]user@host# commit

Verification

Confirm that the configuration is working properly.

Verifying Connectivity

Purpose

Make sure that the devices can ping each other.

Action

user@R2> ping 10.0.45.2
PING 10.0.45.2 (10.0.45.2): 56 data bytes
64 bytes from 10.0.45.2: icmp_seq=0 ttl=64 time=3.910 ms
64 bytes from 10.0.45.2: icmp_seq=1 ttl=64 time=3.559 ms
64 bytes from 10.0.45.2: icmp_seq=2 ttl=64 time=3.503 ms
user@R1> set cli logical-system LS1
Logical system: LS1
user@R1:LS1> ping 10.0.45.1
PING 10.0.45.1 (10.0.45.1): 56 data bytes
64 bytes from 10.0.45.1: icmp_seq=0 ttl=64 time=1.217 ms
64 bytes from 10.0.45.1: icmp_seq=1 ttl=64 time=1.183 ms
64 bytes from 10.0.45.1: icmp_seq=2 ttl=64 time=1.121 ms

Published: 2012-11-15