Category Archives: Juniper Switches

Adding Vlans to Juniper EX switches

An example of configuring a new EX switch
with a single VLAN called MGMT with some
ports in access mode & others in Trunk Mode

>edit
#set system root-authentication plain-text-password
#delete vlans default l3-interface vlan.0
#set vlans MGMT vlan-id 10
#delete interfaces
#set interfaces interface-range my_untagged member-range ge-0/0/0 to ge-0/0/9
#set interfaces interface-range my_untagged unit 0 family ethernet-switching port-mode access
#set interfaces interface-range my_untagged unit 0 family ethernet-switching vlan members MGMT
#set interfaces interface-range my_tagged member-range ge-0/0/10 to ge-0/0/23
#set interfaces interface-range my_tagged unit 0 family ethernet-switching port-mode trunk
#set interfaces interface-range my_tagged unit 0 family ethernet-switching vlan members MGMT
#commit
>