Junos[MX]: How to show VPLS instance associated with given subinterface












2















Suppose I have a subinterface with Vlan-vpls encapsulation, like this one:



admin@router> show configuration interfaces ge-2/1/1
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
unit 17 {
encapsulation vlan-vpls;
vlan-id 17;
}


Is there any command in Junos which would show me a VPLS instance associated with this subinterface (ge-2/1/1.17)?



If there are MACs in mac-table then I can use



show vpls mac-table interface ge-2/1/1.17


but what if there are no MACs?










share|improve this question









New contributor




Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    Suppose I have a subinterface with Vlan-vpls encapsulation, like this one:



    admin@router> show configuration interfaces ge-2/1/1
    flexible-vlan-tagging;
    encapsulation flexible-ethernet-services;
    unit 17 {
    encapsulation vlan-vpls;
    vlan-id 17;
    }


    Is there any command in Junos which would show me a VPLS instance associated with this subinterface (ge-2/1/1.17)?



    If there are MACs in mac-table then I can use



    show vpls mac-table interface ge-2/1/1.17


    but what if there are no MACs?










    share|improve this question









    New contributor




    Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      2












      2








      2








      Suppose I have a subinterface with Vlan-vpls encapsulation, like this one:



      admin@router> show configuration interfaces ge-2/1/1
      flexible-vlan-tagging;
      encapsulation flexible-ethernet-services;
      unit 17 {
      encapsulation vlan-vpls;
      vlan-id 17;
      }


      Is there any command in Junos which would show me a VPLS instance associated with this subinterface (ge-2/1/1.17)?



      If there are MACs in mac-table then I can use



      show vpls mac-table interface ge-2/1/1.17


      but what if there are no MACs?










      share|improve this question









      New contributor




      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Suppose I have a subinterface with Vlan-vpls encapsulation, like this one:



      admin@router> show configuration interfaces ge-2/1/1
      flexible-vlan-tagging;
      encapsulation flexible-ethernet-services;
      unit 17 {
      encapsulation vlan-vpls;
      vlan-id 17;
      }


      Is there any command in Junos which would show me a VPLS instance associated with this subinterface (ge-2/1/1.17)?



      If there are MACs in mac-table then I can use



      show vpls mac-table interface ge-2/1/1.17


      but what if there are no MACs?







      juniper juniper-junos interface juniper-mx vpls






      share|improve this question









      New contributor




      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 22 at 13:13









      Cown

      6,65331031




      6,65331031






      New contributor




      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 22 at 13:06









      Seweryn NiemiecSeweryn Niemiec

      133




      133




      New contributor




      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Seweryn Niemiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          2














          There is no direct way, but you can see interfaces in the statistics:



          user@router> show vpls statistics

          [..]
          Instance: EXAMPLE-VPLS-INSTANCE
          Local interface: ae2.2000, Index: 380
          [..]


          Or in the extensive flood list:



          user@router> show vpls flood extensive
          [..]
          Name: EXAMPLE-VPLS-INSTANCE
          [..]
          Flooding to:
          Name Type NhType Index
          __all_ces__ Group comp 1246
          Composition: split-horizon
          Flooding to:
          Name Type NhType Index
          ae2.2000 CE ucst 1057


          or in the extensive connections:



          user@router> show vpls connections extensive
          [..]
          Instance: EXAMPLE-VPLS-INSTANCE
          Edge protection: Not-Primary
          Local site: local-sites (1)
          Number of local interfaces: 1
          Number of local interfaces up: 1
          IRB interface present: no
          ae2.2000





          share|improve this answer

































            1














            Try this command show vpls connections instance <instance-name> extensive to view the interfaces associated with the VPLS instance .



            Additional Info >> To check the MAC table , use the command show vpls mac-table instance <instance-name> , it will show you all the MAC addresses learnt in that VPLS instance. If you are using 'vlan-id all' knob in the VPLS instance configuration , then this command will show you MAC Table VLAN based.



            To check the MAC table VLAN specific , use the command show vpls mac-table instance <instance-name> vlan-id <vlan-id>.



            If you want to see the MAC table specific to some interface , you can use the command show vpls mac-table instance <instance-name> | match <interface-name>'



            MAC learning in VPLS is only data plane based. So in case there are no MACs means no packets are forwarded to / from the CE. When CE broadcast /multicast/unicasts the packets the PE learns the MAC address just like normal LAN switch.






            share|improve this answer


























            • All your commands require an instance name, which I do not know.

              – Seweryn Niemiec
              yesterday











            • @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

              – NABEEL NASIR
              yesterday











            • Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

              – Seweryn Niemiec
              yesterday











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "496"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Seweryn Niemiec is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57869%2fjunosmx-how-to-show-vpls-instance-associated-with-given-subinterface%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            There is no direct way, but you can see interfaces in the statistics:



            user@router> show vpls statistics

            [..]
            Instance: EXAMPLE-VPLS-INSTANCE
            Local interface: ae2.2000, Index: 380
            [..]


            Or in the extensive flood list:



            user@router> show vpls flood extensive
            [..]
            Name: EXAMPLE-VPLS-INSTANCE
            [..]
            Flooding to:
            Name Type NhType Index
            __all_ces__ Group comp 1246
            Composition: split-horizon
            Flooding to:
            Name Type NhType Index
            ae2.2000 CE ucst 1057


            or in the extensive connections:



            user@router> show vpls connections extensive
            [..]
            Instance: EXAMPLE-VPLS-INSTANCE
            Edge protection: Not-Primary
            Local site: local-sites (1)
            Number of local interfaces: 1
            Number of local interfaces up: 1
            IRB interface present: no
            ae2.2000





            share|improve this answer






























              2














              There is no direct way, but you can see interfaces in the statistics:



              user@router> show vpls statistics

              [..]
              Instance: EXAMPLE-VPLS-INSTANCE
              Local interface: ae2.2000, Index: 380
              [..]


              Or in the extensive flood list:



              user@router> show vpls flood extensive
              [..]
              Name: EXAMPLE-VPLS-INSTANCE
              [..]
              Flooding to:
              Name Type NhType Index
              __all_ces__ Group comp 1246
              Composition: split-horizon
              Flooding to:
              Name Type NhType Index
              ae2.2000 CE ucst 1057


              or in the extensive connections:



              user@router> show vpls connections extensive
              [..]
              Instance: EXAMPLE-VPLS-INSTANCE
              Edge protection: Not-Primary
              Local site: local-sites (1)
              Number of local interfaces: 1
              Number of local interfaces up: 1
              IRB interface present: no
              ae2.2000





              share|improve this answer




























                2












                2








                2







                There is no direct way, but you can see interfaces in the statistics:



                user@router> show vpls statistics

                [..]
                Instance: EXAMPLE-VPLS-INSTANCE
                Local interface: ae2.2000, Index: 380
                [..]


                Or in the extensive flood list:



                user@router> show vpls flood extensive
                [..]
                Name: EXAMPLE-VPLS-INSTANCE
                [..]
                Flooding to:
                Name Type NhType Index
                __all_ces__ Group comp 1246
                Composition: split-horizon
                Flooding to:
                Name Type NhType Index
                ae2.2000 CE ucst 1057


                or in the extensive connections:



                user@router> show vpls connections extensive
                [..]
                Instance: EXAMPLE-VPLS-INSTANCE
                Edge protection: Not-Primary
                Local site: local-sites (1)
                Number of local interfaces: 1
                Number of local interfaces up: 1
                IRB interface present: no
                ae2.2000





                share|improve this answer















                There is no direct way, but you can see interfaces in the statistics:



                user@router> show vpls statistics

                [..]
                Instance: EXAMPLE-VPLS-INSTANCE
                Local interface: ae2.2000, Index: 380
                [..]


                Or in the extensive flood list:



                user@router> show vpls flood extensive
                [..]
                Name: EXAMPLE-VPLS-INSTANCE
                [..]
                Flooding to:
                Name Type NhType Index
                __all_ces__ Group comp 1246
                Composition: split-horizon
                Flooding to:
                Name Type NhType Index
                ae2.2000 CE ucst 1057


                or in the extensive connections:



                user@router> show vpls connections extensive
                [..]
                Instance: EXAMPLE-VPLS-INSTANCE
                Edge protection: Not-Primary
                Local site: local-sites (1)
                Number of local interfaces: 1
                Number of local interfaces up: 1
                IRB interface present: no
                ae2.2000






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 22 at 14:29

























                answered Mar 22 at 13:39









                SebastianSebastian

                6,04322251




                6,04322251























                    1














                    Try this command show vpls connections instance <instance-name> extensive to view the interfaces associated with the VPLS instance .



                    Additional Info >> To check the MAC table , use the command show vpls mac-table instance <instance-name> , it will show you all the MAC addresses learnt in that VPLS instance. If you are using 'vlan-id all' knob in the VPLS instance configuration , then this command will show you MAC Table VLAN based.



                    To check the MAC table VLAN specific , use the command show vpls mac-table instance <instance-name> vlan-id <vlan-id>.



                    If you want to see the MAC table specific to some interface , you can use the command show vpls mac-table instance <instance-name> | match <interface-name>'



                    MAC learning in VPLS is only data plane based. So in case there are no MACs means no packets are forwarded to / from the CE. When CE broadcast /multicast/unicasts the packets the PE learns the MAC address just like normal LAN switch.






                    share|improve this answer


























                    • All your commands require an instance name, which I do not know.

                      – Seweryn Niemiec
                      yesterday











                    • @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                      – NABEEL NASIR
                      yesterday











                    • Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                      – Seweryn Niemiec
                      yesterday
















                    1














                    Try this command show vpls connections instance <instance-name> extensive to view the interfaces associated with the VPLS instance .



                    Additional Info >> To check the MAC table , use the command show vpls mac-table instance <instance-name> , it will show you all the MAC addresses learnt in that VPLS instance. If you are using 'vlan-id all' knob in the VPLS instance configuration , then this command will show you MAC Table VLAN based.



                    To check the MAC table VLAN specific , use the command show vpls mac-table instance <instance-name> vlan-id <vlan-id>.



                    If you want to see the MAC table specific to some interface , you can use the command show vpls mac-table instance <instance-name> | match <interface-name>'



                    MAC learning in VPLS is only data plane based. So in case there are no MACs means no packets are forwarded to / from the CE. When CE broadcast /multicast/unicasts the packets the PE learns the MAC address just like normal LAN switch.






                    share|improve this answer


























                    • All your commands require an instance name, which I do not know.

                      – Seweryn Niemiec
                      yesterday











                    • @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                      – NABEEL NASIR
                      yesterday











                    • Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                      – Seweryn Niemiec
                      yesterday














                    1












                    1








                    1







                    Try this command show vpls connections instance <instance-name> extensive to view the interfaces associated with the VPLS instance .



                    Additional Info >> To check the MAC table , use the command show vpls mac-table instance <instance-name> , it will show you all the MAC addresses learnt in that VPLS instance. If you are using 'vlan-id all' knob in the VPLS instance configuration , then this command will show you MAC Table VLAN based.



                    To check the MAC table VLAN specific , use the command show vpls mac-table instance <instance-name> vlan-id <vlan-id>.



                    If you want to see the MAC table specific to some interface , you can use the command show vpls mac-table instance <instance-name> | match <interface-name>'



                    MAC learning in VPLS is only data plane based. So in case there are no MACs means no packets are forwarded to / from the CE. When CE broadcast /multicast/unicasts the packets the PE learns the MAC address just like normal LAN switch.






                    share|improve this answer















                    Try this command show vpls connections instance <instance-name> extensive to view the interfaces associated with the VPLS instance .



                    Additional Info >> To check the MAC table , use the command show vpls mac-table instance <instance-name> , it will show you all the MAC addresses learnt in that VPLS instance. If you are using 'vlan-id all' knob in the VPLS instance configuration , then this command will show you MAC Table VLAN based.



                    To check the MAC table VLAN specific , use the command show vpls mac-table instance <instance-name> vlan-id <vlan-id>.



                    If you want to see the MAC table specific to some interface , you can use the command show vpls mac-table instance <instance-name> | match <interface-name>'



                    MAC learning in VPLS is only data plane based. So in case there are no MACs means no packets are forwarded to / from the CE. When CE broadcast /multicast/unicasts the packets the PE learns the MAC address just like normal LAN switch.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 22 at 14:27









                    Teun Vink

                    12k53154




                    12k53154










                    answered Mar 22 at 13:48









                    NABEEL NASIRNABEEL NASIR

                    998




                    998













                    • All your commands require an instance name, which I do not know.

                      – Seweryn Niemiec
                      yesterday











                    • @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                      – NABEEL NASIR
                      yesterday











                    • Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                      – Seweryn Niemiec
                      yesterday



















                    • All your commands require an instance name, which I do not know.

                      – Seweryn Niemiec
                      yesterday











                    • @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                      – NABEEL NASIR
                      yesterday











                    • Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                      – Seweryn Niemiec
                      yesterday

















                    All your commands require an instance name, which I do not know.

                    – Seweryn Niemiec
                    yesterday





                    All your commands require an instance name, which I do not know.

                    – Seweryn Niemiec
                    yesterday













                    @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                    – NABEEL NASIR
                    yesterday





                    @Seweryn. VPLS is a sort of BGP VPN (Multipoint to Multipoint Connectivity) service . Just like you configure MPLS L3VPN and you want to see routes belonging to particular VPN instance you mention in the command VPN instance name. In the same way when you want to check MAC table against particular VPN (VPLS Instance) you need to mention VPLS instance name.

                    – NABEEL NASIR
                    yesterday













                    Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                    – Seweryn Niemiec
                    yesterday





                    Yes, but the question was, how to find the instance name for a given subinterface (I see a subinterface with encapsulation vlan-vpls and there are hundreds of VPLS instances). It looks like there is no such command and I have to grep.

                    – Seweryn Niemiec
                    yesterday










                    Seweryn Niemiec is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Seweryn Niemiec is a new contributor. Be nice, and check out our Code of Conduct.













                    Seweryn Niemiec is a new contributor. Be nice, and check out our Code of Conduct.












                    Seweryn Niemiec is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Network Engineering Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57869%2fjunosmx-how-to-show-vpls-instance-associated-with-given-subinterface%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Brian Clough

                    Cáceres