For several days now I have been scratching my head on how to get the following configuration to work with VLANs instead of Mangle rules. At this point I am even wondering if it is possible with only VLANs. The setup is as follows:
I have 3 RBM33G routers
2 of them have 2 x LTE modems in them (4 in total)
The modems are EG25-G which give out a private IP address in the range 192.168.225.0/24, 192.168.225.1 being gateway.
The purpose of this setup would be that I can select a connection to any LTE modem based on the VLAN ID passed when connecting to the RBM33G. Eg If I set the interface VLAN to 10 it will get an IP address from that specific LTE modem.
I tried using passthrough on the LTE APN to a VLAN Interface but I can't seem to be able to access it down the line. I tried all possible combinations I could think of but somehow I can't find the LTE modems and get an IP address from them. When configuring the LTE modems without VLAN the LTE interfaces get an IP address and work when using mangle rules, but the whole point would be to avoid that ... or are my ideas too simple :-).
Thanks for sharing your thoughts on the feasibility and maybe hint which is the best way to go from here
Sample of the middle RBM33G code but I tried so many things I wouldn't know which one is even remotely in the right direction
Code: Select all
/interface bridge
add name=BridgeLAN vlan-filtering=yes
/interface vlan
add interface=ether1 name=vlan10 vlan-id=10
add interface=ether1 name=vlan11 vlan-id=11
/interface list
add name=WAN
add name=LAN
/interface lte apn
set [ find default=yes ] authentication=pap password=web user=web
add apn=simpoint.m2m default-route-distance=20 ip-type=ipv4-ipv6 name=apn1
add apn=simpoint.m2m ip-type=ipv4-ipv6 name=VLAN10 passthrough-mac=auto
add apn=simpoint.m2m ip-type=ipv4-ipv6 name=VLAN11 passthrough-mac=auto
/interface lte
set [ find ] apn-profiles=VLAN10 name=lte1
set [ find ] apn-profiles=VLAN11 name=lte2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 2 baud-rate=9600 data-bits=8 flow-control=none name=usb3 parity=none stop-bits=1
set 3 baud-rate=9600 data-bits=8 flow-control=none name=usb4 parity=none stop-bits=1
set 4 name=usb5
set 5 name=usb6
set 6 name=usb7
set 7 name=usb8
set 8 name=usb9
/routing ospf instance
set [ find default=yes ] router-id=10.10.10.10
/interface bridge port
add bridge=BridgeLAN interface=ether1
add bridge=BridgeLAN interface=ether2
add bridge=BridgeLAN interface=ether3
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface bridge vlan
add bridge=BridgeLAN tagged=BridgeLAN vlan-ids=10,11
/interface list member
add interface=lte1 list=WAN
add interface=ether1 list=LAN
add interface=lte2 list=WAN
add interface=ether2 list=WAN
add interface=ether3 list=WAN
add list=WAN
add list=WAN
add list=WAN
add list=WAN
/ip address
add address=10.10.10.1/24 interface=BridgeLAN network=10.10.10.0
/ip dns
set servers=1.1.1.1