Supported Platforms
Related Documentation
- EX, J, M, MX, PTX, QFX, T Series
- ping
- EX, J, M, MX, PTX, T Series
- show interfaces detail
- Additional Information
- ping in the Junos OS Operational Mode Commands
- show interfaces detail in the Junos OS Operational Mode Commands
Example: Creating an Interface on a Logical System
This example shows how to create an interface on a logical system.
Requirements
For the interface on the logical system to have connectivity, the corresponding physical interface must be administratively up, and the physical link must be up. You can verify the status of the physical interface by running the show interfaces terse command.
Overview
In logical systems, 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 the interface encapsulation type, include the dlci, encapsulation, family, peer-unit, and vlan-id statements at the following hierarchy levels:
- M Series, MX Series, or T Series router (master administrator only)—[edit interfaces lt-fpc/pic/0 unit unit-number]
- Logical system—[edit logical-systems logical-system-name interfaces lt-fpc/pic/0 unit unit-number] [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. 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).
In this example, you create the fe-1/1/3 physical interface on the main router. You can also add values for properties that you need to configure on the physical interface, such as physical encapsulation, VLAN tagging (enabling), and link speed.
The example then shows how to assign logical interfaces to a logical system. Once you do this, the logical interfaces are considered part of the logical system.
Any logical interface unit can only be assigned to one system, including the main router. For example, if you configure logical unit 3 in the main router, you cannot configure logical unit 3 in a logical system.
In this example, you create logical unit 0 on Logical System LS1. You can also add values for properties that you need to configure on the logical interface, such as logical interface encapsulation, VLAN ID number, and protocol family.
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.
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 an interface on a logical system:
As the master administrator, configure the physical interface on the main router.
[edit]user@host# set interfaces fe-1/1/3 description "main router interface"Create the logical system interface on the logical unit.
[edit]user@host# set logical-systems LS1 interfaces fe-1/1/3 unit 0 description "LS1 interface" user@host# set logical-systems LS1 interfaces fe-1/1/3 unit 0 family inet address 10.11.2.2/24If you are done configuring the device, commit the configuration.
[edit]user@host# commit
Verification
To verify that the configuration is working properly, issue the show interfaces command.
Related Documentation
- EX, J, M, MX, PTX, QFX, T Series
- ping
- EX, J, M, MX, PTX, T Series
- show interfaces detail
- Additional Information
- ping in the Junos OS Operational Mode Commands
- show interfaces detail in the Junos OS Operational Mode Commands
Published: 2012-11-15
Supported Platforms
Related Documentation
- EX, J, M, MX, PTX, QFX, T Series
- ping
- EX, J, M, MX, PTX, T Series
- show interfaces detail
- Additional Information
- ping in the Junos OS Operational Mode Commands
- show interfaces detail in the Junos OS Operational Mode Commands