Juniper EX VLANs

Juniper EX VLANs

Below is a quick explanation of what is required to setup both Tagged and Untagged ports with VLANs on the Juniper EX line of switches.

  1. Creation of the VLAN
    • set vlans VLAN100 vlan-id 100
    • VLAN100 pertains to the name of the VLAN. To keep things as simple as possible I feel best practice is to name VLANS after their VLAN ID and use the VLAN Description to note what VLANs are for.
    • vlan-id 100 pertains to the VLAN ID being used. This number can be between 1 and 4095.
  2. Assign the VLAN as Untagged to a port.
    • set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members VLAN100
    • ge-0/0/0 refers to the physical port on the switch we are building the VLAN on. This can change based on the port speed, chassis number, and PIC card being used.
    • unit 0 refers to the logical number being referenced and must be 0 when using ethernet-switching.
    • vlan members VLAN100 refers to the VLAN that was created in step 1.
  3. Assign a VLAN as Tagged
    • set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members VLAN100
    • set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk
    • ge-0/0/0 refers to the physical port on the switch we are building the VLAN on. This can change based on the port speed, chassis number, and PIC card being used.
    • unit 0 refers to the logical number being referenced and must be 0 when using ethernet-switching.
    • vlan members VLAN100 refers to the VLAN that was created in step 1.
    • interface-mode trunk is what designates when a port is in Trunk and not Access mode.

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.