Supported Platforms
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.
For each endpoint on the VLAN, configure the following VLAN parameters on the corresponding interface:
- Specify the description of the VLAN:
[edit interfaces xe-chassis/pic/port unit 0]
user@switch# set description vlan-description - 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 xe-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 - 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 - 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