Support Support Downloads Knowledge Base Service Request Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX/QFX] How to change the VLAN membership of an access port on an Ethernet switch?

0

0

Article ID: KB11057 KB Last Updated: 13 Feb 2020Version: 5.0
Summary:

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

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Security Alerts and Vulnerabilities

Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search