EX/QFX switches use bridging and virtual LANs (VLANs) to connect network devices in a LAN such as desktop computers, IP telephones, printers, file servers, and wireless access points (WAPs). VLANS are used to segment the LAN into smaller broadcast domains. The ports, or interfaces, on the Ethernet switch operate in either access mode or trunk mode. An interface in access mode belongs to a single VLAN. The frames transmitted over an access interface are normal Ethernet frames. By default, when you boot a switch and use the factory-default configuration, or when you boot the switch and do not explicitly configure a port mode, all interfaces on the switch are in access mode.
This article explains how to change the VLAN membership of an access port on an Ethernet switch.
An interface in access mode belongs to a single VLAN. This section shows an example of how to change the VLAN membership of an access port.
Example
Interface ge-0/0/3.0 belongs to VLAN sales. In order to change the VLAN membership from sales to support, use the following steps:
user@switch> show ethernet-switching interfaces Interface Index State VLAN members ge-0/0/1.0 67 UP sales ge-0/0/3.0 68 UP sales ge-0/0/4.0 69 UP sales
user@switch# edit interfaces ge-0/0/3 unit 0 family ethernet-switching vlan [edit interfaces ge-0/0/3 unit 0 family ethernet-switching vlan] user@switch# replace pattern sales with support user@switch# commit
user@switch> show ethernet-switching interfaces Interface Index State VLAN members ge-0/0/1.0 67 UP sales ge-0/0/3.0 68 UP support ge-0/0/4.0 69 UP sales
Note: Another method to achieve the same requirement is to delete the existing VLAN membership and set up a new VLAN membership, which can be done as follows:
[edit] user@switch# delete interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members sales
[edit] user@switch# set interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members support user@switch# commit
2020-02-13: Article reviewed for accuracy; no changes made; QFX product category added since solution applies to QFX platform as well