Logical Interfaces Assigned to a Logical System

Logical interfaces assigned to a logical system are described in the following sections:

Logical Systems Overview

With JUNOS Software, you can partition a single physical system into multiple logical systems that perform independent routing tasks. Each logical system has its own unique routing tables, interfaces, policies, and routing instances. A set of logical systems within a single router can handle the functions otherwise performed by several small routers, offering an effective way to maximize the use of a single routing or switching platform.

Note: A virtual router does not have the same capabilities as a logical system. A virtual router is a type of simplified routing instance that has a single routing table. By contrast, a logical system is a partition of the main router and can contain multiple virtual router routing instances. As a result, these two entities are not equivalent.

For additional information about logical system configuration and administration, see the JUNOS Feature Guide and the JUNOS System Basics Configuration Guide.

For additional information about logical system interface configuration, see the JUNOS Network Interfaces Configuration Guide and the JUNOS Services Interfaces Configuration Guide.

Logical System Configuration Overview

Configuring a logical system consists of a sequence of tasks, some of which can only be performed by you as the master administrator—a JUNOS user with superuser configuration and verification privileges on the router. Other tasks can be performed by a logical system administrator—a JUNOS user that you have assigned to the logical system and is thereby granted configuration and verification privileges for only the logical systems to which that user is assigned. The following sequence summarizes the steps required to configure a logical system:

  1. To configure a logical system, you (as the master administrator) first specify a logical-system-name at the [edit logical-systems] hierarchy level.
  2. For any logical system, you (as the master administrator) can assign one or more logical system administrators. To configure logical system administrators, include the logical-system logical-system-name statement at the [edit system login class class-name] hierarchy level.
  3. The minimum configuration of a logical system includes one or more logical interfaces. Before any logical interfaces can be assigned to a logical system, though, you (as the master administrator) must configure physical interface properties (such as encapsulation types and interfaces-related options) on the main router. To configure physical interface properties on the main router, include the physical interface statements at the [edit interfaces interface-name] hierarchy level.
  4. After the physical interface properties are configured on the main router, logical system configurations can be completed by assigning one or more logical interfaces to each logical system. For any logical system, either you or a logical system administrator of that logical system can assign logical interfaces. To configure, include the unit statement at the [edit logical-systems logical-system-name] hierarchy level.

    Note: After you assign a logical interface to a logical system, it is considered part of the logical system. As such, any logical interface can be assigned to only one logical system.

For additional information about logical system configuration and administration, see the JUNOS Feature Guide and the JUNOS System Basics Configuration Guide.

For additional information about logical system interface configuration, see the JUNOS Network Interfaces Configuration Guide and the JUNOS Services Interfaces Configuration Guide.

Scope of Logical System Administration

Logical system administrators are confined to the context of the logical systems to which they are assigned. Any global configuration statements are restricted from them, and command output is restricted to the context to which the logical system administrators are assigned.

For JUNOS Software Release 9.1 and later, when a physical interface is specified within a logical system context, the show interfaces command output only displays information about the logical interfaces assigned to that logical system.

From within the context of a logical system (which you can select from the main router context by using the set cli logical-systems logical-system-name command), the show interfaces command output is limited to the resources assigned to the logical system:

At the main router level (to which you can return from the logical system context by using the clear cli logical system command), the show interfaces command output displays statistics for all interfaces configured on the router:

Example: show interfaces terse

Consider a main router for which you have configured the physical interface at-0/0/0 with ATM-specific physical interface properties and configured the physical interface with a logical interface at logical unit 0. You have also configured logical system ls1 and assigned a logical system administrator for this logical system. The logical system administrator has assigned the logical interface at-0/0/0.0 to logical system ls1. The configuration is as follows:

logical-systems {ls1 {interfaces {at-0/0/0 {unit 0 {encapsulation atm-ccc-cell-relay;vpi 0;}}}protocols {mpls {label-switched-path base_config_r4r1_lsp {to 10.255.65.65;}interface all;}connections {remote-interface-switch base_config_vp_mode_connection {interface at-0/0/0.0;transmit-lsp base_config_r1r4_lsp; receive-lsp base_config_r4r1_lsp;}}}}}chassis {fpc 0 {pic 0 {atm-l2circuit-mode {cell;}}}}interfaces {at-0/0/0 {atm-options {pic-type atm2;promiscuous-mode {vpi 0;}}inactive: unit 0 {encapsulation atm-ccc-cell-relay;vpi 0;}}}protocols {mpls {interface all;}isis {disable;interface all {level 1 disable;level 2 metric 10;}interface fxp0.0 {disable;}}ospf {reference-bandwidth 4g;area 0.0.0.0 {interface all;interface fxp0.0 {disable;}}}}

Within the context of a logical system, logical system administration is confined to the resources assigned to that logical system.

For more logical system configuration examples, including verification of proper operation and verification performed by logical system administrators, see the JUNOS Feature Guide.