L2X Operational Commands

The L2X show commands provide detailed information about the L2X operations.

L2X Show Commands

The L2X show commands display data from FIB local table. Therefore, local L2X with down ports or remote l2x with unresolved nexthop address are not displayed.

L2X Summary

The summary commands display L2X information in a tabular format. Key information is displayed in the summary output.

The L2X name is truncated after certain length as space is less to display summary output. In such cases, you can use detail command output where full name is displayed.

Syntax:

show l2x <options>

Option Description

-

Without any option, the commands displays all L2X information such as ingress L2X and egress L2X.

l2x-name <l2x-name>

Displays information for a specific L2X.

detail

Displays detailed L2X information for a specific L2X.

direction <direction>

Displays L2X information for a specified direction, where direction can be ingress, egress, or bi-directional.

local-interface <interface-name>

Displays L2X information for a specific LAG interface.

nexthop4 <nexthop>

Displays L2X information for the remote IPv4 address.

nexthop6 <nexthop>

Displays L2X information for the remote IPv6 address.

service-label <service_label>

Displays the L2X information for a specific service label.

type <type>

Displays detailed L2X information for a specific type and L2X.

statistics

Displays statistics for a specific L2X.

Example 1: Summary view of L2X information

supervisor@rtbrick: op> show l2x
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa-0/1/27/281479271677953   ingress    ifp-0/1/27           2001:db8:0:75::           64                Any          110011
l2bsa-0/1/27/281479271677953   egress     -                    ifp-0/1/27                -                -               120011
l2bsa-0/1/27/281479271677954   ingress    ifp-0/1/27           2001:db8:0:75::          65                Any             110012
l2bsa-0/1/27/281479271677954   egress     -                    ifp-0/1/27                -                -               120012
l2bsa-0/1/27/281479271677955   ingress    ifp-0/1/27           2001:db8:0:75::          66                Any             110013
l2bsa-0/1/27/281479271677955   egress     -                    ifp-0/1/27                -                -               120013
l2bsa-0/1/27/281479271677956   ingress    ifp-0/1/27           2001:db8:0:75::          67                Any             110014
l2bsa-0/1/27/281479271677956   egress     -                    ifp-0/1/27                -                -               120014

Example 2: Summary view of a specific L2X

supervisor@rtbrick: op> show l2x l2bsa-0/1/27/281479271677953
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa-0/1/27/281479271677953   ingress    ifp-0/1/27           2001:db8:0:75::           64               Any             110011
l2bsa-0/1/27/281479271677953   egress     -                    ifp-0/1/27                -                -               120011

Example 3: Summary view of a remote L2X

supervisor@rtbrick: op> show l2x type remote
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                2001:db8:0:85::           11               Any             120011
l2bsa_lag-1_11                 egress     -                    lag-1                     -                -               110011
l2bsa_lag-1_12                 ingress    lag-1                2001:db8:0:85::           12               Any             120012
l2bsa_lag-1_12                 egress     -                    lag-1                     -                -               110012
l2bsa_lag-1_13                 ingress    lag-1                2001:db8:0:85::           13               Any             120013
l2bsa_lag-1_13                 egress     -                    lag-1                     -                -               110013
l2bsa_lag-1_14                 ingress    lag-1                2001:db8:0:85::           14               Any             120014
l2bsa_lag-1_14                 egress     -                    lag-1                     -                -               110014
l2bsa_lag-1_15                 ingress    lag-1                2001:db8:0:85::           15               Any             120015
l2bsa_lag-1_15                 egress     -                    lag-1                     -                -               110015
l2bsa_lag-1_16                 ingress    lag-1                2001:db8:0:85::           16               Any             120016

Example 4: Summary view of L2X for a specific service label

supervisor@rtbrick: op> show l2x service-label 120011
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN    Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                2001:db8:0:85::           11            Any             120011
supervisor@rtbrick: op>

Example 5: Summary view of the L2X information for a specified direction, where direction can be ingress, egress, or bi-directional.

supervisor@rtbrick: op> show l2x direction ingress
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                2001:db8:0:85::           11               Any             120011
l2bsa_lag-1_12                 ingress    lag-1                2001:db8:0:85::           12               Any             120012
l2bsa_lag-1_13                 ingress    lag-1                2001:db8:0:85::           13               Any             120013
l2bsa_lag-1_14                 ingress    lag-1                2001:db8:0:85::           14               Any             120014
l2bsa_lag-1_15                 ingress    lag-1                2001:db8:0:85::           15               Any             120015
l2bsa_lag-1_16                 ingress    lag-1                2001:db8:0:85::           16               Any             120016
l2bsa_lag-1_17                 ingress    lag-1                2001:db8:0:85::           17               Any             120017
l2bsa_lag-1_18                 ingress    lag-1                2001:db8:0:85::           18               Any             120018
l2bsa_lag-1_19                 ingress    lag-1                2001:db8:0:85::           19               Any             120019
l2bsa_lag-1_20                 ingress    lag-1                2001:db8:0:85::           20               Any             120020
l2bsa_lag-1_21                 ingress    lag-1                2001:db8:0:85::           21               Any             120021
l2bsa_lag-1_22                 ingress    lag-1                2001:db8:0:85::           22               Any             120022
l2bsa_lag-1_23                 ingress    lag-1                2001:db8:0:85::           23               Any             120023
l2bsa_lag-1_24                 ingress    lag-1                2001:db8:0:85::           24               Any             120024
l2bsa_lag-1_25                 ingress    lag-1                2001:db8:0:85::           25               Any             120025
l2bsa_lag-1_26                 ingress    lag-1                2001:db8:0:85::           26               Any             120026
l2bsa_lag-1_27                 ingress    lag-1                2001:db8:0:85::           27               Any             120027

Example 6: Summary view of L2X information for a specific LAG interface

supervisor@rtbrick: op> show l2x local-interface lag-1
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                2001:db8:0:85::            11               Any             120011
l2bsa_lag-1_12                 ingress    lag-1                2001:db8:0:85::            12               Any             120012
l2bsa_lag-1_13                 ingress    lag-1                2001:db8:0:85::            13               Any             120013
l2bsa_lag-1_14                 ingress    lag-1                2001:db8:0:85::            14               Any             120014
l2bsa_lag-1_15                 ingress    lag-1                2001:db8:0:85::            15               Any             120015
l2bsa_lag-1_16                 ingress    lag-1                2001:db8:0:85::            16               Any             120016
l2bsa_lag-1_17                 ingress    lag-1                2001:db8:0:85::            17               Any             120017
l2bsa_lag-1_18                 ingress    lag-1                2001:db8:0:85::            18               Any             120018
l2bsa_lag-1_19                 ingress    lag-1                2001:db8:0:85::            19               Any             120019
l2bsa_lag-1_20                 ingress    lag-1                2001:db8:0:85::            20               Any             120020

Example 7: Summary view of L2X information for a remote egress router

supervisor@rtbrick: op> show l2x nexthop4 198.51.100.103
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                198.51.100.103            11               Any             120011
l2bsa_lag-1_12                 ingress    lag-1                198.51.100.103            12               Any             120012
l2bsa_lag-1_13                 ingress    lag-1                198.51.100.103            13               Any             120013
l2bsa_lag-1_14                 ingress    lag-1                198.51.100.103            14               Any             120014
l2bsa_lag-1_15                 ingress    lag-1                198.51.100.103            15               Any             120015
l2bsa_lag-1_16                 ingress    lag-1                198.51.100.103            16               Any             120016

Example 8: Summary view of L2X information for a remote egress router

supervisor@rtbrick: op> show l2x  nexthop6 2001:db8:0:85::
Name                           Direction  Incoming Intf        Outgoing Intf/Next Hop    Outer VLAN       Inner VLAN      Service label
l2bsa_lag-1_11                 ingress    lag-1                2001:db8:0:85::           11               Any             120011
l2bsa_lag-1_12                 ingress    lag-1                2001:db8:0:85::           12               Any             120012
l2bsa_lag-1_13                 ingress    lag-1                2001:db8:0:85::           13               Any             120013
l2bsa_lag-1_14                 ingress    lag-1                2001:db8:0:85::           14               Any             120014
l2bsa_lag-1_15                 ingress    lag-1                2001:db8:0:85::           15               Any             120015
l2bsa_lag-1_16                 ingress    lag-1                2001:db8:0:85::           16               Any             120016
l2bsa_lag-1_17                 ingress    lag-1                2001:db8:0:85::           17               Any             120017
l2bsa_lag-1_18                 ingress    lag-1                2001:db8:0:85::           18               Any             120018
l2bsa_lag-1_19                 ingress    lag-1                2001:db8:0:85::           19               Any             120019
l2bsa_lag-1_20                 ingress    lag-1                2001:db8:0:85::           20               Any             120020
l2bsa_lag-1_21                 ingress    lag-1                2001:db8:0:85::           21               Any             120021

Example 9: L2X information in detailed format

supervisor@rtbrick: op> show l2x  detail
L2X name: l2bsa_lag-1_11
  Direction: ingress
  Incoming interface: lag-1
  Service label: 120011
  Subtype: Incoming Port - Outer Vlan - Any Inner Vlan Match
  Incoming outer VLAN: 11
  Incoming inner VLAN: Any
  Ingress vlan operation:
    Vlan operation: Swap-Outer-Vlan
    Outer vlan: 64
  NextHop:
    NextHop IP: 2001:db8:0:85::
    Lookup instance: default
    Lookup AFI: ipv6
    Lookup SAFI: labeled-unicast
    NextHop type: Remote ingress cross connect
    NextHop action: mpls label push
  Egress vlan operation:

Example 10: Detailed L2X information for a specific L2X

supervisor@rtbrick: op> show l2x test1 detail
L2X name: test1
  Direction: ingress
  Incoming interface: ifp-0/0/4
  Outgoing interface: ifp-0/0/10
  Subtype: Incoming Port - Any Vlan Match
  Incoming outer VLAN: Any
  Incoming inner VLAN: Any
  Ingress vlan operation:
  NextHop:
    NextHop type: Local egress cross connect
    NextHop action: No vlan manipulation - l2 forward
  Egress vlan operation:

Example 11: Detailed L2X information for a specific type and L2X

supervisor@rtbrick: op> show l2x type local test1 detail
L2X name: test1
  Direction: ingress
  Incoming interface: ifp-0/0/4
  Outgoing interface: ifp-0/0/10
  Subtype: Incoming Port - Any Vlan Match
  Incoming outer VLAN: Any
  Incoming inner VLAN: Any
  Ingress vlan operation:
  NextHop:
    NextHop type: Local egress cross connect
    NextHop action: No vlan manipulation - l2 forward
  Egress vlan operation:

Example 12: Detailed L2X information for a specific direction and L2X

supervisor@rtbrick: op> show l2x direction egress test2 detail
L2X name: test2
  Direction: egress
  Outgoing interface: ifp-0/0/4
  Service label: 1234
  Subtype: Service Label Match
  Incoming outer VLAN: -
  Incoming inner VLAN: -
  Ingress vlan operation:
  NextHop:
    NextHop type: Remote egress cross connect
    NextHop action: No vlan manipulation - l2 forward
  Egress vlan operation:

Example 13: Statistics for all installed L2X

supervisor@rtbrick: op> show l2x statistics

L2X Name: l2x-test1/0
    Physical Interface Name: ifp-0/0/4
    Logical Interface Type: L2x ingress vlan interface
    Port-Mapping-Core: 0
    Vlan-Port-ID: 1149251592
    MPLS-Port-ID: N/A
    Counters:
        In-Forward-Packets: 57
        In-Forward-Bytes: 5700
        In-Drop-Packets: 0
        In-Drop-Bytes: 0
        Out-Forward-Packets: 0
        Out-Forward-Bytes: 0
        Out-Drop-Packets: 0
        Out-Drop-Bytes: 0
L2X Name: l2x-d3b529d74770f91fb2acf5e38da70eb9213473dd7e996c6a
    Physical Interface Name: ifp-0/0/10
    Logical Interface Type: L2x egress vlan interface
    Port-Mapping-Core: 0
    Vlan-Port-ID: 1149251591
    MPLS-Port-ID: N/A
    Counters:
        In-Forward-Packets: 0
        In-Forward-Bytes: 0
        In-Drop-Packets: 0
        In-Drop-Bytes: 0
        Out-Forward-Packets: 0
        Out-Forward-Bytes: 0
        Out-Drop-Packets: 0
        Out-Drop-Bytes: 0

L2X Clear Commands

Clear commands allow to reset operational states.

L2X Statistics

This commands resets L2X statistics.

Syntax:

clear l2x statistics <l2x-name>

Attribute Description

-

Without any option, the command clears all L2X statistics.

<l2x-name>

L2X name.

Example:

supervisor@rtbrick: op> clear l2x statistics l2x-test1/0