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