Many system administrators are familiar with the problem of lack of one or more network interfaces. There are several ways to solve it: create subinterfaces, use 802.1Q VLANs, or purchase a managed switch. But you can make a “splitter” with your own hands.
It is necessary
Uncontrolled switch, resistors, memory chip, zener diode, socket for DIP8, DB-25 male connector
Instructions
Step 1
Assemble the programmer for the LPT port for Linux according to the scheme, which can be taken from here: https://sweb.cz/Frantisek. Rysanek/battery.html. Since this programmer works with the 2.4 kernel (in other words, it uses the i2c-pport module, which is absent in the 2.6 kernel), disable the EPP mode in the motherboard BIOS, and set the "Normal" mode instead
Step 2
Use the following commands for firmware: 1) Port4 tag VLAN; 2) Port2 VID = 0002; 3) Port3 VID = 0003; 4) Port0 VID = 0004; 5) Port1 VID = 0005. It is important that the ports match the numbers printed on the switch chassis.
Step 3
Prioritize, set speeds and duplexes on ports.
Step 4
In the Linux console, run the following command: # vconfig set_name_type VLAN_PLUS_VID. Create VLAN devices with required VIDs: # vconfig add eth0 2; # vconfig add eth0 3; # vconfig add eth0 4. These manipulations are required for the VLAN splitter to work.
Step 5
Bind VLANs to bridge devices.
Step 6
Remove the eth0 networking device from the br0 bridge, which will allow this whole complex mechanism to work properly.