skip to Main Content

Hello everyone here is an easy guide for creating Vlans on a Juniper EX3300. The hardware we used in this guide was a Juniper EX3300 with image version ex-3300-12.3R10.2. If you are like me and are use to using Cisco switches Juniper is a completely different beast. The below assumes you have already start cli. Lets begin… Before anything run the following for the interfaces you will be using. This will remove it from the inet family.This command prevents the system from spitting out the following error”When ethernet-switching family is configured on an interface, no other family type can be configured on the same interface. error: configuration check-out failed” So lets you run:

zerostopbits#delete interfaces ge-0/0/12 unit 0 family inet
zerostopbits#delete interfaces ge-0/0/13 unit 0 family inet
zerostopbits#delete interfaces ge-0/0/14 unit 0 family inet
zerostopbits#delete interfaces ge-0/0/15 unit 0 family inet
zerostopbits#delete interfaces ge-0/0/16 unit 0 family inet
zerostopbits#delete interfaces ge-0/0/17 unit 0 family inet

 

Remember to save always save by running the command below.

zerostopbits#commit

 

 

After you will create the vlan. The following will give it a VLAN name and VLAN ID.

zerostopbits#set vlans ipv6client vlan-id 200
zerostopbits#commit

 

 

(note: ipv6client can be replaced with any name along with VLAN-ID) The following will assign ports to your vlan

zerostopbits#set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members ipv6client
zerostopbits#set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members ipv6client
zerostopbits#set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members ipv6client
zerostopbits#set interfaces ge-0/0/15 unit 0 family ethernet-switching vlan members ipv6client
zerostopbits#set interfaces ge-0/0/16 unit 0 family ethernet-switching vlan members ipv6client
zerostopbits#set interfaces ge-0/0/17 unit 0 family ethernet-switching vlan members ipv6client
commit

 

 

This is how you add an IP ranges to the VLAN

zerostopbits#set interfaces vlan unit 200 family inet address 10.1.2.3/27
zerostopbits#commit

 

 

You can run the above command for as many address you need to add. Be sure to save with the Commit command once done.

zerostopbits#set vlans ipv6client l3-interface vlan.200
zerostopbits#commit
Sponsored Links

Don't be shy, leave a reply!