Sorry for the confusion adwivedl. What I'm finding in researching is you can either config as:
Specify a new VLAN, which will be used for switching, in this case vlan 100: user@host# set vlans vlan-100 vlan-id 100 Assign this VLAN interface as your Layer3 Interface on this VLAN: user@host# set vlans vlan-100 l3-interface vlan.100 Configure a VLAN interface with an IP for this VLAN. (It must be on a different L3 subnet than the other VLANs.) user@host# set interfaces vlan unit 100 family inet address 192.168.10.1/24
When you do that, I'm finding (if I read right) that you config the physical interface:
set interfaces ge-0/0/0 unit 0 description ge-0/0/1 set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode trunk/access set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members vlan-name [names] set interfaces ge-0/0/0 unit 0 family ethernet-switching native-vlan-id 3
The other example I've found is just configure sub-interfaces on the physical interface:
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 native-vlan-id 100 set interfaces ge-0/0/0 unit 100 vlan-id 100 set interfaces ge-0/0/0 family inet address 192.168.1.1/24 set interfaces ge-0/0/0 unit 200 vlan-id 200 set interfaces ge-0/0/0 family inet address 192.168.2.1/24 set interfaces ge-0/0/0 unit 300 vlan-id 300 set interfaces ge-0/0/0 family inet address 192.168.3.1/24