To implement logical systems, you must configure the following:
The master administrator can assign one or more logical system administrators to each logical system. Logical system administrators are confined to the context of the logical system(s) to which they are assigned. This means that any global configuration statements are restricted from them. This also means that command output is restricted to the context to which the logical system administrators are assigned.
To configure logical system administrators, include the logical-system logical-system-name statement at the [edit system login class class name] hierarchy level:
- [edit]
- system {
-
- login {
-
- class admin1 {
- permissions all;
- logical-system-1;
- }
-
- class admin2 {
- permissions view; # Gives users assigned to class admin2
the ability to view # but not to change the configuration.
- logical-system-2;
- }
-
- user user1 {
- class logical-system-1;
- }
-
- user user2 {
- class logical-system-2;
- }
- }
- }
Before adding interfaces to a logical system, the master administrator must configure physical interface properties on the main router. Common physical interface properties include encapsulation types and interface-related options.
To configure physical interface properties, the master administrator must include the statements at the [edit interfaces interface-name] hierarchy level.
After the interfaces are configured, the master administrator can assign logical interfaces to a logical system. To configure, include the unit statement at the [edit logical-systems logical-system-name interfaces interface-name] hierarchy level. Once you assign logical interfaces to a logical system, they are considered part of the logical system. Any logical interface can only be assigned one logical system, including the main router.
- [edit]
- logical-systems logical-system-name {
-
- interfaces {
-
- interface-name {
- logical-interface-statements;
-
- unit unit-number {
-
- family inet {
- address ip-address;
- }
- }
- }
- }
-
- interfaces {
-
- interface-name {
- physical-interface-statements;
- }
- }
- }
You can configure routing protocols (such as OSPF, BGP, and MPLS), policies (such as next-hop or load-balancing), routing options, and routing instances for a logical system.
To configure routing protocols, include the protocols statement at the [edit logical-systems logical-system-name] hierarchy level. To configure policies, include the policy-options statement at the [edit logical-systems logical-system-name] hierarchy level. To configure routing options, include the routing-options statement at the [edit logical-systems logical-system-name] hierarchy level. To configure routing instances, include the routing-instances statement at the [edit logical-systems logical-system-name] hierarchy level.
- [edit]
- logical-systems logical-system-name {
-
- protocols {
- ...
- }
-
- policy-options {
- ...
- }
-
- routing-options {
- ...
- }
-
- routing-instances {
- ...
- }
- }
You can configure a variety of additional statements in conjunction with a logical system:
You must treat each interface like a point-to-point connection because you can only connect one logical tunnel interface to another at any given time. Also, you must select an interface encapsulation type, specify a DLCI number or VLAN identifier, configure a corresponding protocol family, and set the logical interface unit number of the peering lt interface. To configure, include the dlci, encapsulation, family, peer-unit,and vlan-id statements at the following hierarchy levels:
- [edit]
- logical-systems logical-system-name {
-
- interfaces {
-
- lt-fpc/pic/0 {
-
- unit unit-number {
- encapsulation (ethernet | ethernet-ccc | ethernet-vpls
| frame-relay |
frame-relay-ccc | vlan | vlan-ccc
| vlan-vpls);
- peer-unit number; # The logical unit number of the peering lt interface.
- dlci dlci-number;
- vlan-id vlan-number;
- family (ccc | inet | inet6 | iso | mpls | tcc);
- }
- }
- }
- }
![]() |
Note: When you configure IPv6 addresses on a logical tunnel interface, you must configure unique IPv6 link local addresses for any logical interfaces that peer with one another. To configure a link local address, you must be the master administrator. To configure, include a second IPv6 address with the address statement at the [edit interfaces lt-fpc/pic/port unit unit-number family inet6] hierarchy level. Link local addresses typically begin with the numbers fe80 (such as fe80::1111:1/64). |
When you enter logical system context mode and enter an operational mode command, the output of the command displays information related to the logical system only. For example, when you issue the show route command, the output shows only the routes that are assigned to the logical system.
- user@P0> set cli logical-system ls1
- Logical system: ls1
- user@P0:ls1># Note that the
user is now restricted to a logical system context.
To clear the logical system context and return to a full router (master router) context, issue the clear cli logical-system command.
- user@P0:ls1> clear cli logical-system
- Cleared default logical system
- user@P0># Note that the user
can now view the entire router again.
To achieve the same effect when using a JUNOScript client application, include the <set-logical-system> tag:
For more information about JUNOScript, see the JUNOScript API Guide.
In addition, you can configure only Frame Relay interface encapsulation on a logical tunnel interface when it is configured with an IPv6 address.