OpenWRT Router MAC Address

Hi All

I have a small issue where i'm using the 5G modem (m.2) on BPI-R4 Board (OpenWRT snapshot latest update 6.6.65)
I did AT Command for IP Passthrough from modem its self to Router direct

My questions

  • How to know the Mac address for router its self? to make IP Passthrough to openwrt router

  • How I can make the Mac Address for router Fix / Constant ?

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B6
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fda4:bf97:6a81::1/60 Scope:Global
          inet6 addr: fe80::d81c:73ff:fef2:73b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:182447 errors:0 dropped:0 overruns:0 frame:0
          TX packets:520104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17153241 (16.3 MiB)  TX bytes:637328932 (607.8 MiB)

eth0      Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B6
          inet6 addr: fe80::d81c:73ff:fef2:73b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:198046 errors:0 dropped:0 overruns:0 frame:0
          TX packets:530799 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21793813 (20.7 MiB)  TX bytes:640861704 (611.1 MiB)
          Interrupt:106

eth1      Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B7
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:106

eth3      Link encap:Ethernet  HWaddr CA:37:D0:0A:E3:9A
          inet addr:192.168.227.2  Bcast:192.168.227.255  Mask:255.255.252.0
          inet6 addr: fe80::c837:d0ff:fe0a:e39a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:215661 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38249 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:271217253 (258.6 MiB)  TX bytes:4385550 (4.1 MiB)

ifb4eth3  Link encap:Ethernet  HWaddr BE:66:67:10:28:D7
          inet6 addr: fe80::bc66:67ff:fe10:28d7/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:215571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:215571 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:274189814 (261.4 MiB)  TX bytes:274189814 (261.4 MiB)

lan1      Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:198046 errors:0 dropped:0 overruns:0 frame:0
          TX packets:529901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21001629 (20.0 MiB)  TX bytes:638604814 (609.0 MiB)

lan2      Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B6
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr DA:1C:73:F2:73:B6
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2415 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:208646 (203.7 KiB)  TX bytes:208646 (203.7 KiB)

Up , Looking for support to do IP passthrough from modem to OpenWRT Router BPI-R4

Note : Modem Is Quectel
and AT Command to do IP passthrough is

AT+QMAP="MPDN_rule",0,1,0,1,1,"FF:FF:FF:FF:FF:FF"
  • First = MPDN rule number, range 0-3 (unless you're doing something complicated, you'll use 0.)

  • Second = APN Profile ID (CGDCONT) to use. You'll probably want 1.

  • Third = VLAN ID. This is typically 0 but you can run AT+QMAP="VLAN" to find out what it should be.

  • Fourth = IPPT mode, use 1 for ethernet use 0 for disable (more modes in the AT PDF)



  • Fifth = Auto Connect. If set to 0=disabled 1=enabled

  • Sixth = MAC address to pass through to. FF:FF:FF:FF:FF:FF Need to put the MAC Address for device

is there anyway to make the router MAC Address fix

I managed to do IP passthrough from Modem Quectel M.2 to OpenWRT but still DNSv4 is stucking on modem IP
and I can't get network I think because on this ...

Edit : I managed to make MAC address fixed on all parts on OpenWRT system

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.