VLAN: Tag-Based RUTOS new

From Teltonika Networks Wiki

The information on this page is updated in accordance with the 00.07.08 firmware version .


Summary

A virtual LAN (VLAN) is any broadcast domain that is partitioned and isolated in a computer network at the data link layer (OSI layer 2). LAN is the abbreviation for local area network and in this context virtual refers to a physical object recreated and altered by additional logic. VLANs work by applying tags to network packets and handling these tags in networking systems - creating the appearance and functionality of network traffic that is physically on a single network but acts as if it is split between separate networks. In this way, VLANs can keep network applications separate despite being connected to the same physical network, and without requiring multiple sets of cabling and networking devices to be deployed.

VLANs allow network administrators to group hosts together even if the hosts are not on the same network switch. This can greatly simplify network design and deployment, because VLAN membership can be configured through software. Without VLANs, grouping hosts according to their resource needs necessitates the labor of relocating nodes or rewiring data links. It also has benefits in allowing networks and devices that must be kept separate to share the same physical cabling without interacting, for reasons of simplicity, security, traffic management, or economy. For example, a VLAN could be used to separate traffic within a business due to users, and due to network administrators, or between types of traffic, so that users or low priority traffic cannot directly affect the rest of the network's functioning. Many Internet hosting services use VLANs to separate their customers' private zones from each other, allowing each customer's servers to be grouped together in a single network segment while being located anywhere in their datacenter. Some precautions are needed to prevent traffic "escaping" from a given VLAN, an exploit known as VLAN hopping.

This chapter is an overview of the VLAN function of RUT devices.

Configuration in Router's web interface

Vlan Tag Configuration


Open router‘s WebUI and navigate to Network → VLAN → Port Based configuration:

Port based VLAN


Add new VLANs by clicking Add Button.png and Make following changes:

  1. VLAN ID: 1 | lan1: Untagged | Lan2: Off | Lan3: Tagged
  2. VLAN ID: 2 | lan1: Off | Lan2: Tagged | Lan3: Off
  3. VLAN ID: 3 | lan1: Off | Lan2: Off | Lan3: Tagged

Port Based Vlan Conf.png

Lan Configuration


Open router’s WebUI → Network → LAN click Pencil2.pngon current available LAN interface configuration:

LAN Interface Configuration


General Settings

Make the following changes:

  1. Enter Name: LAN
  2. Enter IPv4 address: 192.168.5.1
  3. Enter IPv4 netmask: 255.255.255.0
  4. Enable DHCPv4: on
Tag Based 1 1.png

LAN 2 Interface Configuration


Click Add Button.png button in new window make following changes:

General Settings

  1. Enable Interface: On
  2. Enter Name: LAN_2
  3. Enter IPv4 address: 192.168.10.1
  4. Enter IPv4 netmask: 255.255.255.0
  5. Enable DHCPv4: on
Tag Based 2 2.png
Physical Settigs

Make the following changes:

  1. Select Interface : eth0.2
Tag Based Physical Settings 1.png

LAN 3 Interface Configuration


Click Add Button.png button in new window make following changes:

General Settings

  1. Enter Name: LAN_3
  2. Select Protocol: Static
  3. Enter IPv4 address: 192.168.15.0
  4. Enter IPv4 netmask: 255.255.255.0
  5. Enable DHCPv4: on
Tag Based 3 3 3.png
Physical Settigs

Make the following changes:

  1. Select Interface : eth0.3
Tag Based Physical Settings 2.png

Lan Interfaces After Successful Configuration


Networking rut manual vlan tagged based device settings lan interfaces v1.png

Testing VLAN Configuration


To further test if the changes were successful.

Change your wired connection from your PC to your device LAN 3 port.

PC Network Settings


How to Assign Tagged Vlan To Your PC Ethernet Interface

Open network settings on your PC Ethernet interface:

1. Open network Ethernet interface "Properties" on your PC.

2. Click "Configure" inside "Ethernet Properties" tab.

3. Select "Advanced" tab in the new window.

4. Set "VLAN ID" to values that were assigned to LAN3 port in the VLAN configuration (WebUI -> Network -> VLAN -> Port Based -> Poer based VLAN -> (VLAN ID | LAN 3)) in this case values are "1" and "3" . Depending on the "VLAN ID" vlaue your network device will be assigned to different LAN network.

5. After setting new "VLAN ID" always execute command in your PC's Command Prompt: ipconfig/renew

Network Configuration Depending On The VLAN ID

VLAN ID 1

Open Command Prompt on your pc and enter the command "ipconfig /all". You will see that you now have an IP address from the LAN network.

Networking rut manual vlan tagged based device settings command prompt id1 v1.png

VLAN ID 3

Open Command Prompt on your pc and enter the command "ipconfig /all". You will see that you now have an IP address from the LAN_3 network.

Networking rut manual vlan tagged based device settings command prompt id3 v1.png


Networking rut manual vlan tagged based device settings realtek setting v1.png

Select "VLAN"

Networking rut manual vlan tagged based device settings realtek vlan v1.png

Type "VLAN ID 2" to the box on the right and click "Add" at the bottom. If done correctly this will cause you to lose network service since VLAN 2 is not added to LAN Port 3

Networking rut manual vlan tagged based device settings realtek vlan id2 v1.png

Delete VLAN ID 2 from the Utility and add VLAN ID 3. Your network should be back online after a few moments.

Networking rut manual vlan tagged based device settings realtek vlan id3 v1.png

Open Command Prompt on your pc and enter the command “ipconfig /all”. You will see that you now have an IP address from the LAN_3 network.

Networking rut manual vlan tagged based device settings command prompt id3 v1.png

Delete VLAN ID 3 and add VLAN ID 1 and enter the “ipconfig /all" command in Command Prompt again and you should receive an IP address from the LAN network.

Networking rut manual vlan tagged based device settings command prompt id1 v1.png