Configuring VLANs for EX Series Switches (CLI Procedure)
EX Series 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.
For each endpoint on the VLAN, configure the following VLAN parameters on the corresponding interface:
- Set the description of the VLAN:
[edit interfaces ge-chassis/pic/port unit 0]
user@switch# set description vlan-description - Set the unique name of the VLAN:
[edit interfaces ge-chassis/pic/port unit 0]
user@switch# set family ethernet-switching vlan members vlan-name - Create the subnet for the VLAN:
[edit interfaces]
user@switch# set vlan unit 0 family inet address ip-address - Configure the VLAN tag ID or VLAN ID range for
the VLAN:
[edit vlans]
user@switch# set vlan-name vlan-id vlan-id-numberor
[edit vlans]
user@switch# set vlan-name vlan-range vlan-id-low-vlan-id-high - To 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 - To 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