Difference between revisions of "VLAN: Tag-Based RUTOS new"

From Teltonika Networks Wiki
 
(3 intermediate revisions by the same user not shown)
Line 79: Line 79:
 
[[File:Networking_rut_manual_vlan_tagged_based_device_settings_lan_interfaces_v1.png|border|class=tlt-border]]
 
[[File:Networking_rut_manual_vlan_tagged_based_device_settings_lan_interfaces_v1.png|border|class=tlt-border]]
  
===Testing VLAN Configuration===
+
===Testing VLAN Tag Configuration===
 
----
 
----
'''To further test if the changes were successful.'''
 
  
 
Change your wired connection from your PC to your device LAN 3 port.  
 
Change your wired connection from your PC to your device LAN 3 port.  
Line 91: Line 90:
 
Open network settings on your PC:
 
Open network settings on your PC:
  
1. Open network Ethernet interface '''"Properties"''' on your PC.
+
1. Open network Ethernet interface '''"Properties"'''.
  
 
[[File:Tagged_PC_1.png|border|class=tlt-border]]
 
[[File:Tagged_PC_1.png|border|class=tlt-border]]
Line 103: Line 102:
 
[[File:Tagged_PC_3.png|border|class=tlt-border]]
 
[[File:Tagged_PC_3.png|border|class=tlt-border]]
  
4. Set ''' "VLAN ID" ''' to values that were assigned to LAN3 port in the VLAN configuration '''(WebUI -> Network -> VLAN -> Port Based -> Port based VLAN -> VLAN ID) ''' in this case values are ''' "1" ''' and ''' "3" '''. Depending on the '''"VLAN ID"''' vlaue your network device will be assigned to different LAN network.
+
4. Set ''' "VLAN ID" ''' to values that were assigned to LAN3 port in the VLAN configuration '''(WebUI -> Network -> VLAN -> Port Based -> Port based VLAN -> VLAN ID) ''' in this case values are ''' "1" ''' and ''' "3" '''. Depending on the '''"VLAN ID"''' tag vlaue your network device will be assigned to different LAN network.
  
 
[[File:Tagged_PC_4.png|border|class=tlt-border]]
 
[[File:Tagged_PC_4.png|border|class=tlt-border]]

Latest revision as of 10:53, 7 August 2024

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 RUTX 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 net mask: 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 net mask: 255.255.255.0
  5. Enable DHCPv4: on
Tag Based 2 2.png
Physical Settings

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. Enable Interface: On
  2. Enter Name: LAN_3
  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 Settings

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 Tag Configuration


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:

1. Open network Ethernet interface "Properties".

Tagged PC 1.png

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

Tagged PC 2.png

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

Tagged PC 3.png

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

Tagged PC 4.png

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