Here are possible scenarios that you can configure assuming 1 USB to LAN, 1 VLAN ID 22
1.separate network:
USB To LAN-10.0.0.1 assuming your USB to LAN is eth1
VLAN ID 22- 20.0.0.1
if USB TO LAN is the main interface
or
USB to LAN - 20.0.0.1 assuming your USB to LAN is eth1
VLAN ID 22- 10.0.0.1
if VLAN ID 22 is the main interface
2.Combined network using bridge-Network bridging is a process of connecting multiple communication networks or network segments into a single, unified network.It's achieved using a network bridge, a hardware device that filters and forwards data packets based on their Media Access Control (MAC) addresses.In short 2 or more multiple network will use and joined into single network/IP.Their individual IP will be discarded.
VLAN ID 22-22.0.0.1
USB to LAN- 20.0.0.1
Bridge(br0)-10.0.0.1 is the main interface resulting from combining USB to LAN and VLAN ID 22
Let's configure the separate network where USB to LAN is the main interface:
Go to network then interface then eth1
check enable captive portal
set maximum hops allowed to 1
uncheck dynamic ip address
set static to 10.0.0.1
set network segment to 20
check Use System DNS Server
Check Enable DHCP Server on this Interface
DHCP Pool Start 10.0.0.10
DHCP Pool End:10.0.15.254
Go to Network then VLAN Setup:
Click create VLAN
Check Enable Captive Portal
Set Maximum Hops Allowed to 1
Set Parent interface to eth0
Set VLAN ID/Tag to 22
Uncheck Dynamic IP Address
Set Static IP Address to 20.0.0.1
Set Network Prefix to 20
Check Use System DNS Server
Check Enable DHCP Server on this Interface
Set DHCP Pool Start 20.0.0.10
Set DHCP Pool End to 20.0.15.254
Click create VLAN then hard restart the machine
Lets configure the separate network where VLAN ID 22 is the main interface:
Go to network then interface then eth1
check enable captive portal
set maximum hops allowed to 1
uncheck dynamic ip address
set static to 20.0.0.1
set network segment to 20
check Use System DNS Server
Check Enable DHCP Server on this Interface
DHCP Pool Start 20.0.0.10
DHCP Pool End:20.0.15.254
Go to Network then VLAN Setup:
Click create VLAN
Check Enable Captive Portal
Set Maximum Hops Allowed to 1
Set Parent interface to eth0
Set VLAN ID/Tag to 22
Uncheck Dynamic IP Address
Set Static IP Address to 10.0.0.1
Set Network Prefix to 20
Check Use System DNS Server
Check Enable DHCP Server on this Interface
Set DHCP Pool Start 10.0.0.10
Set DHCP Pool End to 10.0.15.254
Click create VLAN then hard restart the machine
Lets configure the Combined network of VLAN 22(eth0.22) and USB TO LAN(eth1)
Go to network then interface then eth1
check enable captive portal
set maximum hops allowed to 1
uncheck dynamic ip address
set static to 20.0.0.1
set network segment to 20
check Use System DNS Server
Check Enable DHCP Server on this Interface
DHCP Pool Start 20.0.0.10
DHCP Pool End:20.0.15.254
Go to Network then VLAN Setup:
Click create VLAN
Check Enable Captive Portal
Set Maximum Hops Allowed to 1
Set Parent interface to eth0
Set VLAN ID/Tag to 22
Uncheck Dynamic IP Address
Set Static IP Address to 22.0.0.1
Set Network Prefix to 20
Check Use System DNS Server
Check Enable DHCP Server on this Interface
Set DHCP Pool Start 22.0.0.10
Set DHCP Pool End to 22.0.15.254
Click create VLAN
Go to Network then Bridge:
set maximum hops allowed to 1
check enable captive portal
Select Ports/Interface to bridge:
Check eth1,wlan0,eth0.22
uncheck dynamic IP address
set static to 10.0.0.1
set network segment to 20
check Use System DNS Server
Check Enable DHCP Server on this Interface
DHCP Pool Start 10.0.0.10
DHCP Pool End:10.0.15.254