Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring OSPF on Logical Systems

OSPF Support for Logical Systems

This topic describes the following information:

Introduction to Logical Systems

With Junos OS, you can partition a single physical router into multiple logical devices that perform independent routing tasks. Because logical systems perform a subset of the tasks once handled by the main router, logical systems offer an effective way to maximize the use of a single routing or switching platform. Logical systems have their own unique routing tables, interfaces, policies, and routing instances.

OSPF and Logical Systems

You can configure both OSPF Version 2 (OSPFv2) and OSPF Version 3 (OSPFv3) for logical systems. In the case of OSPFv3, you can also configure OSPFv3 realms for logical systems, which allows OSPFv3 to advertise address families other than unicast IPv6.

You configure OSPF for logical systems at the following hierarchy levels:

  • [edit logical-systems logical-system-name protocols (ospf | ospf3)]

  • [edit logical-systems logical-system-name protocols ospf3 realm (ipv4-unicast | ipv4-multicast | ipv6-multicast)]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (ospf | ospf3)]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name protocols ospf3 realm (ipv4-unicast | ipv4-multicast | ipv6-multicast)]

Example: Configuring OSPF on Logical Systems Within the Same Router

This example shows how to configure an OSPF network using multiple logical systems that are running on a single physical router. The logical systems are connected by logical tunnel interfaces.

Requirements

Overview

This example shows the configuration of a single OSPF area with three logical systems running on one physical router. Each logical system has its own routing table. The configuration enables the protocol on all logical system interfaces that participate in the OSPF domain and specifies the area that the interfaces are in.

Topology

Figure 1 shows the sample network.

Figure 1: OSPF on Logical SystemsOSPF on Logical Systems

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, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Procedure

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 configure OSPF on logical systems:

  1. Configure the logical tunnel interface on Logical System LS1 connecting to Logical System LS2.

  2. Configure the logical tunnel interface on Logical System LS1 connecting to Logical System LS3.

  3. Configure the logical tunnel interface on Logical System LS2 connecting to Logical System LS1.

  4. Configure the logical tunnel interface on Logical System LS2 connecting to Logical System LS3.

  5. Configure the logical tunnel interface on Logical System LS3 connecting to Logical System LS2.

  6. Configure the logical tunnel interface on Logical System LS3 connecting to Logical System LS1.

  7. Configure OSPF on all the interfaces.

  8. If you are done configuring the device, commit the configuration.

Results

Confirm your configuration by issuing the show logical-systems command.

Verification

Confirm that the configuration is working properly.

Verifying That the Logical Systems Are Up

Purpose

Make sure that the interfaces are properly configured.

Action

Verifying Connectivity Between the Logical Systems

Purpose

Make sure that the OSPF adjacencies are established by checking the OSPF neighbor tables, checking the routing tables, and pinging the logical systems.

Action

From LS1, Ping LS3

From LS3, Ping LS1