Changes

no edit summary
Line 1: Line 1: −
==Summary==
+
=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.
 
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.
Line 7: Line 7:  
This chapter is an overview of the '''VLAN''' function of '''RUT''' devices.
 
This chapter is an overview of the '''VLAN''' function of '''RUT''' devices.
   −
==Configuration in Router's web interface==
+
=Configuration in Router's web interface=
 +
 
 +
===Creating new LAN's===
    
Go to Network>>VLAN
 
Go to Network>>VLAN
   −
[[Image:Vlan_first.PNG]]
+
[[Image:Vlan_first.png]]
    
Go to LAN Networks
 
Go to LAN Networks
   −
[[Image:L
+
[[Image:lan networks.png]]
 +
 
 +
Create 2 new LAN's by typing LAN name and pressing Add New
 +
 
 +
[[Image:vlan lan create.png]]
 +
 
 +
When configuration window appears, fill in the LAN’s IP addresses and IP broadcasts and click Save button.
 +
 
 +
[[Image:default lans conf.png]]
 +
 
 +
LAN1 and LAN2 has to be with different subnets (for example 192.168.21.1 and 192.168.22.1)
 +
 
 +
[[Image:LAN1eg.png]]
 +
[[Image:LAN2eg.png]]
 +
 
 +
===Assigning LAN networks===
 +
 
 +
Go to Network >> VLAN >> VLAN Networks and select VLAN mode “Tag based” and click Save
 +
 
 +
[[Image:Vlan networks selection.png]]
 +
 
 +
Default section appears
 +
 
 +
[[Image:Vlan networks tag based.png]]
 +
 
 +
Create 2 new VLAN network interfaces by clicking “Add”.  Assign created LAN networks to a different LAN ID and click “Save”
 +
 
 +
[[Image:Vlan netw LAN selection.png]]
 +
 
 +
=Configuration in Ubuntu terminal=
 +
 
 +
Install vlan with command “'''sudo apt-get install vlan'''” and then run command “'''ifconfig'''” to see your devices network interfaces
 +
 
 +
For example, we have to use router’s interface, so the network interface is “'''enp2s0'''”
 +
 
 +
[[Image:Ubuntu network interface.png]]
 +
 
 +
Run command “'''sudo modprobe 8021q'''”.
 +
 
 +
Add VLAN interfaces with “'''sudo vconfig add network_interface VLAN_ID'''” (for example “'''sudo vconfig add enp2s0 2'''”)
 +
 
 +
Enable added network interfaces by typing “'''sudo ifconfig network_interface.VLAN_ID up'''”. (for example “'''sudo ifconfig enp2s0.2 up'''”)
 +
 
 +
Get IP address for your VLAN’s with “'''sudo dhclient network_interface.VLAN_ID'''”. (for example ”'''sudo dhclient enp2s0.2'''”)
 +
 
 +
[[Image:Ubuntu vlan configuration.png]]
 +
 
 +
=Testing VLAN=
 +
 
 +
1. In Ubuntu terminal run the command “'''ifconfig'''” and you should see your VLAN interfaces with IP addresess from correct subnets (example "'''enp2s0.2'''")
 +
 
 +
[[Image:Ubuntu vlan ip check.png]]
 +
 
 +
2. Run ping on your VLAN IP (for example 192.168.21.1)
 +
 
 +
[[Image:Ubuntu vlan ping.png]]
0

edits

Navigation menu