Technical Documentation

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.

  • The following example shows the output of the show interfaces terse command when you (as the master administrator) issue the command from the context of the main router:

    user@host> show interfaces terse at-0/0/0
    Interface               Admin Link Proto    Local                 Remote
    at-0/0/0                up    up  
    at-0/0/0.0              up    up   ccc     
    at-0/0/0.32767          up    up  
    

    The physical interface name at-0/0/0 is reported, followed by all requested information (in the case of the show interfaces terse command, the Admin and Link states) about the physical interface.

    The logical interface name at-0/0/0.0 is reported, followed by all requested information.

    The output also displays all requested information about the special, system-generated logical interface at-0/0/0.32767, which the Junos OS uses for handling traffic that is not part of the interface. In the case of the ATM interface at-0/0/0, which is configured for cell-relay promiscuous virtual path identifier (VPI) mode, the system-generated logical interface at-0/0/0.32767 is used to track statistics associated with system-generated traffic, such as Operation, Administration, and Management (OAM) F4 cell flows.

    Note: The show interfaces extensive command output displays the individual channel statistics associated with the special .32767 logical interface, but only when the command is issued from the context of the main router.

  • The following example shows how you can place yourself into the context of logical system ls1:

    user@host> set cli logical-system ls1
    Logical system: ls1
    

    user@host:lst1>
  • The following example shows the output of the show interfaces terse operational command when you (as the master administrator) issue it from the context of logical system ls1 or when it is issued by a logical system administrator for the logical system ls1:

    user@host:ls1> show interfaces terse at-0/0/0
    Interface               Admin Link Proto    Local                 Remote
    at-0/0/0               
    at-0/0/0.0              up    up   ccc     
    

    The physical interface name at-0/0/0 is reported, but any additional details about the physical interface (in the case of the show interfaces terse command, the Admin and Link states) are not displayed. The system-generated logical interface at-0/0/0.32767 is not reported at all.

  • The following example shows how you can move from the context of the logical system ls1 back to the context of the main router:

    user@host:ls1> clear cli logical-system
    Cleared default logical system

    user@host>

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


Published: 2010-07-11

Help
|
My Account
|
Log Out