Description

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.

 

Solution

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:

  1. View the current VLAN membership of a port or an interface.
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
  1. Replace the current VLAN with the new VLAN.
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
  1. Verify the changed VLAN membership.
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:

  1. View the current VLAN membership of a port or an interface.
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
  1. Delete the current VLAN membership from the interface.
[edit]
user@switch# delete interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members sales
  1. Add the new VLAN membership to the interface.
[edit]
user@switch# set interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members support
user@switch# commit
  1. Verify the changed VLAN membership.
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

 

Modification History

2020-02-13: Article reviewed for accuracy; no changes made; QFX product category added since solution applies to QFX platform as well