Vlan Trunking Configuring the Raspberry Pi 2
In some scenarios, such as in link performance testing, is required to set the Raspberry Pi in Trunk mode. In this article we will see how you can do this with an example of permanent configuration.
The VLAN is a way to separate traffic at layer 2. From the point of view of the user is configured VLAN does not know this is a concept that remains on the computer that works to the layer 2 o switch, sometimes must communicate information between computers VLANs, this is done through VLAN trunks.
A VLAN trunk is a communication mode layer 2 where one link is capable of carrying multiple vlan. This is done according to the definitions of standard 802.1q. Essentially a VLAN Trunk is to add a TAG to Ethernet frame where, among other fields, It is considered the value of VLAN or VLAN id. This information only has meaning between the two participating teams trunk.
La prueba se define del siguiente modo: Un router conecta a un switch en modo acceso a través de la VLAN 1 providing DHCP service through this VLAN. The switch in turn has a door in trunk mode to connect to the Rasberry Pi using Vlan 1, 10, 20. In the Raspberry Pi associated static addressing is defined to vlan 10 Y 20 and dynamic configuration is left to the VLAN 1
For this test we use a managed switch and a router model 260GS model 750GL, brand Mikrotik both connected as shown in Figure.
Read the tutorial | Internet of Things