! PermitANY — Juniper JunOS VLAN & Layer 2 Switching ! VLAN configuration with IRB (Integrated Routing and Bridging) interfaces, access/trunk switchports, and RSTP for Juniper EX series switches. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! set system host-name EX-ACCESS-01 ! # VLANs set vlans PROD-SERVERS vlan-id 10 ! # IRB Interfaces set interfaces irb unit 10 family inet address 10.10.10.1/24 ! # Trunk Ports set interfaces ge-0/0/0 description "Uplink to core" set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members [PROD-SERVERS MGMT] set interfaces ge-0/0/0 native-vlan-id default ! # Access Ports set interfaces ge-0/0/10 description "Server-01" set interfaces ge-0/0/10 unit 0 family ethernet-switching interface-mode access set interfaces ge-0/0/10 unit 0 family ethernet-switching vlan members PROD-SERVERS set protocols rstp interface ge-0/0/10 edge set protocols rstp interface ge-0/0/10 no-root-port ! # Spanning Tree set protocols rstp