Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring VLANs

Switches use VLANs to make logical groupings of network nodes with their own broadcast domains. You can use VLANs to limit the traffic flowing across the entire LAN and reduce collisions and packet retransmissions.

Note: This task uses Junos OS for the QFX Series that does not support the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that supports ELS, see Configuring VLANs.

For each endpoint on the VLAN, configure the following VLAN parameters on the corresponding interface:

  1. Specify the description of the VLAN:
    [edit interfaces interface-name unit 0]
    user@switch# set description vlan-description
  2. Specify the unique name of the VLAN:

    Note: In a QFabric system, do not configure “default” as the name of a VLAN. Though the QFabric system will allow you to configure and commit a VLAN with the name “default” in the current software with no commit errors, it will not work. Junos OS 12.2 and onwards will not allow you to commit a VLAN with the name “default.”

    [edit interfaces interface-name unit 0]
    user@switch# set family ethernet-switching vlan members vlan-name
  3. Create the subnet for the VLAN:
    [edit interfaces]
    user@switch# set vlan unit 0 family inet address ip-address
  4. Configure the VLAN tag ID or VLAN ID range for the VLAN:
    [edit vlans]
    user@switch# set vlan-name vlan-id vlan-id-number

    or

    [edit vlans]
    user@switch# set vlan-name vlan-range vlan-id-low-vlan-id-high
  5. Specify the maximum time that an entry can remain in the forwarding table before it ages out:
    [edit vlans]
    user@switch# set vlan-name mac-table-aging-time time
  6. Specify a VLAN firewall filter to be applied to incoming or outgoing packets:
    [edit vlans]
    user@switch# set vlan-name filter (input | output) filter-name

Published: 2014-07-23