Welcome to QSFPTEK Global     Free shipping on orders over US$ 79.8     US and Poland Local warehouse

United States - English / $USD
United States -   English / $USD
  • Bosnia and Herzegovina - English / $USD
  • Benin - English / $USD
  • Bermuda - English / $USD
  • Bhutan - English / $USD
  • Bolivia - English / $USD
  • Botswana - English / $USD
  • Brazil - English / $USD
  • Brunei - English / $USD
  • Cambodia - English / $USD
  • Cameroon - English / $USD
  • Canada - English / $USD
  • Bulgaria - English / $USD
  • Chad - English / $USD
  • Chile - English / $USD
  • Colombia - English / $USD
  • Costa Rica - English / $USD
  • Djibouti - English / $USD
  • Dominica - English / $USD
  • Dominican Republic - English / $USD
  • Egypt - English / $USD
  • Fiji - English / $USD
  • Gabon - English / $USD
  • Canary Islands - English / $USD
  • The Gambia - English / $USD
  • Georgia - English / $USD
  • Ghana - English / $USD
  • Grenada - English / $USD
  • Guinea - English / $USD
  • Guyana - English / $USD
  • Hong Kong - English / $USD
  • India - English / $USD
  • Indonesia - English / $USD
  • Israel - English / $USD
  • Ceuta - English / $USD
  • Jamaica - English / $USD
  • Jordan - English / $USD
  • Kazakhstan - English / $USD
  • Kenya - English / $USD
  • Kiribati - English / $USD
  • Republic of Korea - English / $USD
  • Kuwait - English / $USD
  • Kyrgyzstan - English / $USD
  • Laos - English / $USD
  • Liberia - English / $USD
  • Croatia - English / $USD
  • Macao - English / $USD
  • Madagascar - English / $USD
  • Malawi - English / $USD
  • Malaysia - English / $USD
  • Maldives - English / $USD
  • Mali - English / $USD
  • Mauritania - English / $USD
  • Mauritius - English / $USD
  • Mexico - English / $USD
  • Mongolia - English / $USD
  • Cyprus - English / $USD
  • Montserrat - English / $USD
  • Morocco - English / $USD
  • Mozambique - English / $USD
  • Namibia - English / $USD
  • Nepal - English / $USD
  • Niger - English / $USD
  • Nigeria - English / $USD
  • Norfolk Island - English / $USD
  • Northern Ireland - English / $USD
  • Oman - English / $USD
  • Denmark - English / $USD
  • Pakistan - English / $USD
  • Panama - English / $USD
  • Papua New Guinea - English / $USD
  • Paraguay - English / $USD
  • Peru - English / $USD
  • Philippines - English / $USD
  • Qatar - English / $USD
  • Rwanda - English / $USD
  • Samoa[12] - English / $USD
  • Saudi Arabia - English / $USD
  • Estonia - English / $USD
  • Senegal - English / $USD
  • Seychelles - English / $USD
  • Sierra Leone - English / $USD
  • Singapore - English / $USD
  • Solomon Islands - English / $USD
  • South Africa - English / $USD
  • Sri Lanka - English / $USD
  • Saint Kitts and Nevis - English / $USD
  • Saint Lucia - English / $USD
  • Saint Vincent and the Grenadines - English / $USD
  • Finland - English / $USD
  • Suriname - English / $USD
  • Tajikistan - English / $USD
  • Tanzania - English / $USD
  • Thailand - English / $USD
  • Togo - English / $USD
  • Tonga - English / $USD
  • Trinidad and Tobago - English / $USD
  • Tunisia - English / $USD
  • Turkmenistan - English / $USD
  • United Arab Emirates - English / $USD
  • France - English / $USD
  • Uruguay - English / $USD
  • Uzbekistan - English / $USD
  • Vanuatu - English / $USD
  • Zambia - English / $USD
  • Vietnam - English / $USD
  • Antigua and Barbuda - English / $USD
  • Australia - English / $USD
  • Belarus - English / $USD
  • Belize - English / $USD
  • Burkina Faso - English / $USD
  • French Guiana - English / $USD
  • Burundi - English / $USD
  • Cape Verde Islands - English / $USD
  • Cayman Islands - English / $USD
  • Central African Republic - English / $USD
  • Democratic Republic of the Congo - English / $USD
  • Democratic Republic of the Congo[3] - English / $USD
  • Cook Islands - English / $USD
  • Cuba - English / $USD
  • England - English / $USD
  • Equatorial Guinea - English / $USD
  • Germany - English / $USD
  • Eritrea - English / $USD
  • Ethiopia - English / $USD
  • Faroe Islands - English / $USD
  • French Polynesia - English / $USD
  • Gibraltar - English / $USD
  • Guatemala - English / $USD
  • Guernsey - English / $USD
  • Guinea-Bissau - English / $USD
  • Honduras - English / $USD
  • Iraq - English / $USD
  • Greece - English / $USD
  • Cote d'Ivoire - English / $USD
  • Japan - English / $USD
  • Jersey - English / $USD
  • Lebanon - English / $USD
  • The Kingdom of Lesotho - English / $USD
  • Libya - English / $USD
  • Liechtenstein - English / $USD
  • New Caledonia - English / $USD
  • New Zealand - English / $USD
  • Nicaragua - English / $USD
  • Greenland - English / $USD
  • Russian Federation - English / $USD
  • Saba - English / $USD
  • São Tomé and Príncipe - English / $USD
  • Scotland - English / $USD
  • Saint Kitts - English / $USD
  • Sint Eustatius - English / $USD
  • Eswatini - English / $USD
  • Tahiti - English / $USD
  • Tuvalu - English / $USD
  • Uganda - English / $USD
  • Guadeloupe - English / $USD
  • Ukraine - English / $USD
  • Union Island - English / $USD
  • United Kingdom of Great Britain and Northern Ireland - English / $USD
  • Venezuela - English / $USD
  • Wales - English / $USD
  • Wallis and Futuna - English / $USD
  • Yemen - English / $USD
  • Zimbabwe - English / $USD
  • Hungary - English / $USD
  • Iceland - English / $USD
  • Italy - English / $USD
  • Kosovo - English / $USD
  • Latvia - English / $USD
  • Albania - English / $USD
  • Lithuania - English / $USD
  • Luxembourg - English / $USD
  • Macedonia - English / $USD
  • Madeira - English / $USD
  • Malta - English / $USD
  • Martinique - English / $USD
  • Mayotte - English / $USD
  • Melilla - English / $USD
  • Moldova - English / $USD
  • Monaco - English / $USD
  • Andorra - English / $USD
  • Montenegro - English / $USD
  • Netherlands - English / $USD
  • Norway - English / $USD
  • Poland - English / $USD
  • Portugal - English / $USD
  • Republic of Ireland - English / $USD
  • Reunion - English / $USD
  • Romania - English / $USD
  • Saint Barthelemy - English / $USD
  • San Marino - English / $USD
  • Aran Islands - English / $USD
  • Serbia - English / $USD
  • Slovakia - English / $USD
  • Slovenia - English / $USD
  • Spain - English / $USD
  • Sweden - English / $USD
  • Switzerland - English / $USD
  • The Czech Republic - English / $USD
  • Turkey - English / $USD
  • Vatican City State - English / $USD
  • Afghanistan - English / $USD
  • Aruba - English / $USD
  • American Samoa - English / $USD
  • Bonaire - English / $USD
  • British Virgin Islands - English / $USD
  • Comoros - English / $USD
  • Curacao - English / $USD
  • Timor-Leste - English / $USD
  • Ecuador - English / $USD
  • El Salvador - English / $USD
  • Guam - English / $USD
  • Kosrae - English / $USD
  • Austria - English / $USD
  • Marshall Islands - English / $USD
  • Federated States of Micronesia - English / $USD
  • Northern Mariana Islands - English / $USD
  • Palau - English / $USD
  • Pohnpei Island - English / $USD
  • Puerto Rico - English / $USD
  • Rota - English / $USD
  • Saipan - English / $USD
  • Santa Cruz - English / $USD
  • Saint John - English / $USD
  • Azores - English / $USD
  • saint martin - English / $USD
  • St. Thomas - English / $USD
  • Tinian Island - English / $USD
  • Tortola Island - English / $USD
  • Truk Islands - English / $USD
  • Turks and Caicos Islands - English / $USD
  • U.S. Virgin Islands - English / $USD
  • United States - English / $USD
  • Virgin Gorda - English / $USD
  • Yap Islands - English / $USD
  • Belgium - English / $USD
  • Algeria - English / $USD
  • Angola - English / $USD
  • Anguilla - English / $USD
  • Argentina - English / $USD
  • Armenia - English / $USD
  • Azerbaijan - English / $USD
  • The Bahamas - English / $USD
  • Bahrain - English / $USD
  • Bangladesh - English / $USD
  • Barbados - English / $USD
Search

Cart

0
Free shipping on orders over US$ 79.8
United States

How to Configure Virtual LAN on S5300 Serirs VLAN Switches?

Author Yana

Date 12/11/2023

This paper introduces how to configure a Virtual Local Area Network (VLAN) on QSFPTEK S5300 series managed switches, taking the layer 2 switches as an example. S5300 Series layer 2 switches are VLAN-capable switches, which support up to 4K VLANs. Before entering the topic, we need to first understand the two concepts involved: VLAN and Dot1Q.

VLAN Introduction

A VLAN (Virtual Local Area Network) is a group of end stations configured to communicate as if they are in the same link. However, physically they may be in one or different LAN segments. In other words, One can use VLAN to segment the network into logically separate units at the data link layer or layer 2. For instance, there are VLAN 1, VLAN2 and VLAN 3, the devices in the the same VLAN can communicate with each other even if they are physically located in different LAN segments. 

 

The segmentation of VLANs is based on logical connection considering specific functions or applications instead of a physical LAN.

 

  

Each switch port may belong to a VLAN with broadcast segments. The unicast, broadcast and multicast packets are sent to the dedicated end station ports in the same VLAN. Network operators should configure a VLAN interface or switched virtual interface (SVI) in layer 3 for each VLAN to communicate across VLANs. A router or bridge should be used to forward packets to end station ports in different VLANs.

 


 

Dot1Q Introduction

Dot1Q (IEEE 802.1Q) is a networking standard supporting VLAN on the IEEE 802.3 Ethernet network. Essentially, it wraps the VLAN tag of a private network with that of a public network. This double-tagged packet travels through the ISP's backbone network, creating a relatively simple Layer 2 (L2) VPN tunnel for users. The Dot1Q Tunnel protocol is straightforward to manage. It doesn't rely on signaling support and is commonly used in enterprise networks with L3 switches or small-scale Metropolitan Area Networks (MANs).

 

Switches with Dot1Q Tunnel capability are well-suited for this purpose. This feature is ideal for users who need an affordable and compact Layer 2 VPN solution. It's becoming increasingly popular among small-scale users requiring VPN networks. Importantly, within the carrier's network, the P device doesn't have to support the Dot1Q Tunnel function. This means traditional L3 switches can fully meet the requirements, providing cost savings for the carrier.

 


VLAN Configuration Guide

 

Adding or Deleting VLANs

To configure VLAN, run the following Commands. The first step is to create VLANs. GVRP protocol can be used to dynamically add or delete the VLAN.

 

Command

Purpose

vlan vlan-id

Enters theVLANconfiguration mode.

name str

Name in theVLANconfiguration mode

Exit

Exits theVLANconfiguration mode and creates theVLAN.

vlan vlan-range

Creates multiple VLANs simultaneously.

no vlan vlan-id | vlan-range

Deletes one or multiple VLANs

 

Configuring the Port to VLAN of the Switch
Once you have created the VLANs in the first step, now that you should configure the ports to the assigned VLAN. The following commands show you how to configure switch port to VLAN on S5300 series layer 2 switches. Each port has a default VLAN and PVID 

 

Command

Purpose

switchport pvid vlan-id

Configure PVID of the switch’s interface.

switchport mode {access | trunk | dot1q-translating-tunnel | dot1q-tunnel-uplink }

Configure the interface mode of the switch.

switchport trunk vlan-allowed …

Configures the VLAN range of the switch’s interface.

switchport trunk vlan-untagged …

Configures the untagged VLAN ranges of the switch’s port.

By the way, the switch ports support five modes: the access mode, the relay mode, the VLAN tunnel mode, the VLAN translating mode and the VLAN tunnel uplink mode. 

The access mode indicates that the port belongs to just one VLAN; only the untagged Ethernet frame can be transmitted and received.

The relay mode can group ports to multiple VLANs and configure the packet types to be forwarded and the quantity of VLANs (tagged Ethernet frame). 

The VLAN translating tunnel mode is a sub-mode based on the relay mode. The port looks up the VLAN translation table according to the VLAN tag of received packets to obtain the corresponding SPVLAN, and then the switching chip replaces the original tag with SPVLAN or adds the SPVLAN tag to the outside layer of the original tag. When the packets is forwarded out of the port, the SPVLAN will be replaced by the original tag or the SPVLAN tag will be removed mandatorily. Hence, the switch omits different VLAN partitions that access the network and then passes them without change to the other subnet that connects the other port of the same client, realizing transparent transmission.

The VLAN tunnel uplink mode is a sub-mode based on the relay mode. The SPVLAN should be set when packets are forwarded out of the port. When the port receives the packets, their TPIDs will be checked. If a difference occurs or they are untagged packets, the SPVLAN tag which contains their own TPID will be added to them as their outer-layer tag. When the port receives the packets, their TPIDs will be checked. If a difference occurs or they are untagged packets, the SPVLAN tag which contains their own TPID will beadded to them as their outer-layer tag.

Creating or Deleting the VLAN Interface

You need to create a VLAN interface to designate the IP address 

and mask for network management or layer 3 routing. This VLAN interface can be used as the centralized outlet when different VLANs need to communicate.

 

Command

Purpose

[no] interface vlan vlan-id

Creates or deletes a VLAN interface.

 

Monitoring the VLAN Configuration and State

Run the following commands in EXEC mode to monitor the configuration and state of VLAN and Dot1Q tunnel.

 

Command

Purpose

show vlan [ id x | interface intf | dot1q-tunnel

[interface intf]|mac-vlan | subnet |protocol-vlan

|dot1q-translating-tunnel|flat-translation-table]

Displays the configuration and state of VLAN or Dot1Q tunnel.

show interface vlan x

Displays the state of the VLAN interface ot that of the supervlan interface.

 

Enabling or Disabling Dot1Q Tunnel Globally

The following command can enable Dot1Q-tunnel globally. After it is enabled, all the switch ports will work as the downlink ports of the Dot1Q tunnel by default and put the SPVLAN tag on the incoming packets.

 

Command

Purpose

dot1q-tunnel

The command is used to configure dot1q-tunnel globally.

  


 

All QSFPTEK managed switches with VLAN supports. the exact steps may vary from serie. This VLAN switch configuration guide is a concise version based on the S5300 series layer 2 switches. If you want to learn more about configuring VLANs or any other software features on QSFPTEK switches. Please check the configuration and commands manual on the dedicated switch product page.

share

Tags

#How to
#VLAN
#Network Switches
Contact us