Hi,
I have a Mikrotik ATL16 5G (integrated antenna router) that I am looking to use for replacing my SOGEA modem. Currently, IPFire is picking up a WAN IP using PPP over the SOGEA modem (bridge mode)
Goal
ATL16 can be setup in bridge mode using APN “passthrough”, which allows the WAN IP to be passed over to a mac address of a device connected to the ATL16’s single ethernet port. Passthrough mode, turns ATL16 into a layer-2 switch, bridging modem and ethernet port and resulting in all layer 3 router capabilities bypassed.
Challenge
The drawback of this approach is that you loose access to the management interface hence there is no way to monitor Radio band selection, signal strength, etc. The only way to regain access to management interface, is to physically reach for the antenna and press the “reset” button.
Desired Solution: Trunk LTE & Management traffic on IPFire RED nic
Convert ATL16 single ethernet port to VLAN trunk with LTE VLAN traffic handled by IPFire RED zone and Management traffic by GREEN or ORANGE zones.
The two step setup involves
- Step 1: Setup the ATL16 VLAN trunk port using info from this youtube video
- LTE → VLAN 30
- Mgmt → VLAN 20
- Step 2: Map VLAN trunk port on IPFire RED, taking steer/ideas from this guide
Implementation
Using the shell setup command, I configured RED to DHCP mode from PPP.
Then from UI, I performed the following zone configuration given the VLAN trunk arrives on RED native and rebooted ipfire.
Results & Observations
Following a reboot
- I can access the ATL16 management VLAN 20 interface from green
- I can see the DHCP traffic between LTE and IPFIRE RED VLAN 30
- RED VLAN 30 picks LTE IP address, LTE gateway and DNS servers
- Routes created with default gateway the LTE IP address
- No traffic is routed to WAN
Here is how IPFire looks from 1 to 5
[ipfire] # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul
t qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: green0p1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc cake master gree
n0 state DOWN group default qlen 1000
link/ether 12:81:6c:4f:21:39 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cake state UP group de
fault qlen 1000
link/ether 02:81:6c:4f:21:39 brd ff:ff:ff:ff:ff:ff
4: blue0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc cake state DOWN gro
up default qlen 1000
link/ether cc:b8:a8:dc:f1:78 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 scope global blue0
valid_lft forever preferred_lft forever
5: green0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP gro
up default qlen 1000
link/ether 02:43:e1:58:88:43 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 scope global green0
valid_lft forever preferred_lft forever
6: eth1.20@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cake master green0 state UP group default qlen 1000
link/ether 02:99:e2:6d:f6:a6 brd ff:ff:ff:ff:ff:ff
7: red0@eth1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc cake state UP group default
qlen 1000
link/ether 02:ee:1d:ec:e7:65 brd ff:ff:ff:ff:ff:ff
8: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
link/ether a6:b8:05:12:79:09 brd ff:ff:ff:ff:ff:ff
9: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
link/ether ea:88:23:40:e5:89 brd ff:ff:ff:ff:ff:ff
14: imq0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc htb state UNKNOWN group default qlen 32
link/ether d6:52:88:6a:1f:a6 brd ff:ff:ff:ff:ff:ff
[ipfire] # bridge -d vlan
port vlan-id
green0p1 1 PVID Egress Untagged
state forwarding mcast_router 1
green0 1 PVID Egress Untagged
state forwarding mcast_router 1
red0.20 1 PVID Egress Untagged
state forwarding mcast_router 1
[ipfire] # ip route
default via 10.177.0.6 dev red0 proto dhcp src 10.29.221.180 metric 1007
10.177.0.6 dev red0 scope link src 10.29.221.180 metric 1007
192.168.1.0/24 dev green0 proto kernel scope link src 192.168.1.1
192.168.2.0/24 dev blue0 proto kernel scope link src 192.168.2.1 linkdown
[ipfire] # ping 10.177.0.6
PING 10.177.0.6 (10.177.0.6) 56(84) bytes of data.
^C
--- 10.177.0.6 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6129ms
[ipfire] # ping 10.29.221.180
PING 10.29.221.180 (10.29.221.180) 56(84) bytes of data.
64 bytes from 10.29.221.180: icmp_seq=1 ttl=64 time=0.484 ms
64 bytes from 10.29.221.180: icmp_seq=2 ttl=64 time=0.401 ms
64 bytes from 10.29.221.180: icmp_seq=3 ttl=64 time=0.480 ms
64 bytes from 10.29.221.180: icmp_seq=4 ttl=64 time=0.483 ms
64 bytes from 10.29.221.180: icmp_seq=5 ttl=64 time=0.427 ms
However routing isn’t working and subsequently local services like DNS
[ipfire] # ping 188.31.250.129
PING 188.31.250.129 (188.31.250.129) 56(84) bytes of data.
^C
--- 188.31.250.129 ping statistics ---
51 packets transmitted, 0 received, 100% packet loss, time 51180ms
The red0@eth1 interface cannot be accessed with tcpdump, only red0 and which shows
[ipfire] # tcpdump -i red0
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on red0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
00:04:33.737070 IP ipfire.cottageNet > gateway: ICMP echo request, id 53473, seq 65, length 84
00:04:35.704542 IP ipfire.cottageNet.4639 > 188.31.250.128.domain: 52139+ [1au] Type65? www.google.com. (43)
00:04:35.781599 IP ipfire.cottageNet.36229 > 188.31.250.128.domain: 53349+ [1au] PTR? 128.250.31.188.in-addr.arpa. (56)
00:04:36.438633 IP ipfire.cottageNet.5560 > 188.31.250.128.domain: 50127+ [1au] Type65? sync-v2.brave.com. (46)
00:04:41.949172 IP ipfire.cottageNet.6330 > 188.31.250.128.domain: 1604+ [1au] Type65? prod-dynamite-prod-00-us-signaler-pa.clients6.google.com. (85)
00:04:43.072537 IP ipfire.cottageNet.13083 > 188.31.250.128.domain: 51265+ [1au] Type65? chat.google.com. (44)
00:05:47.945037 ARP, Request who-has ipfire.cottageNet tell ipfire.cottageNet, length 28
00:05:47.985486 IP ipfire.cottageNet.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 02:ee:1d:ec:e7:65 (oui Unknown), length 300
00:05:48.001305 IP gateway.bootps > ipfire.cottageNet.bootpc: BOOTP/DHCP, Reply, length 300
I suspect the RED VLAN might not be configured as it should however I cannot find a way to validate it.
Any thoughts/ideas on what I have missed or did wrong ?


