I'm actually attending a Juniper sponsored security class at the moment and our LAB books had us create two VLANs as physical interfaces for connecting to some virtual routing instance objects. In my own work environment all of our VLANs are created as logical interfaces using RVIs.
Is there a district advantage to using one method or another? Performance? Reliability?
For a concrete example the LAB book suggests creating a physical VLAN interface like:
set ge-0/0/x vlan-tagging
set ge-0/0/x unit 100 vlan-id 100
set ge-0/0/x unit 100 family inet address 192.168.1.x/24
I learned to create VLAN interfaces logically like so:
set vlan vlan100 vlan-id 100 l3.interface vlan.100
set interface vlan unit 100 family inet address 192.168.1.x/24
set interface ge-0/0/x unit 0 family ethernet switching port-mode access vlan members vlan100
Thanks