Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  VLAN member interface configuration clarification

    Posted 08-21-2011 15:51

    Running 10.2 code, I've always done vlan membership as follows:

     

     

    interfaces {

       ge-0/0/0 {

          unit 0 {

             family ethernet-switching {

                 port-mode access;

                 vlan {

                       members MOE;

    }

    }

    }

    }

    vlans {

       MOE {

              description "MOE To L3";

               vlan-id 7;

               l3-interface vlan.1;

    }

     

    Simplistic, of course. But: working on a customer machine, I see this, and I don't know why:

     

    interfaces {
        ge-0/0/0 {
            unit 0 {
                family ethernet-switching;
            }
        }

     

    vlans {
        vlan200 {
            description "Vlan Description";
            vlan-id 200;
            interface {
                ge-0/0/0.0;
                ge-0/0/1.0;
                ge-0/0/2.0;
                ge-0/0/3.0;
               }
            l3-interface vlan.1;
        }

     

     

    Is either correct?? The 10.4 Junos manual has conflicting examples about this so I'm really not clear on it. I know the first method works correctly. This second method I'm not so sure about.

     

    Whats the difference in the two ways of assigning VLAN membership per interface??

     

    TIA



  • 2.  RE: VLAN member interface configuration clarification
    Best Answer

    Posted 08-21-2011 17:38
    They are both the same. It's personal preference. You should stay consistent just to help prevent errors, and make troubleshooting easier, but one isn't better than the other


  • 3.  RE: VLAN member interface configuration clarification

    Posted 08-21-2011 17:48

    What if both formats are used? Is the union of the two used?

     

    thanks!

     

     



  • 4.  RE: VLAN member interface configuration clarification

    Posted 08-21-2011 18:57
    You can use both formats, but I believe you have to keep it at one or the other for a specific interface.