Dumb AP Unable to obtain DHCP address from Router

I'm running 2 OpenWrt devices. One in dump AP mode and the other strictly at gateway router.

The dumb AP and Gateway router have the exact same configuration with multiple VLANs. I'm able to obtain DHCP addresses on all VLANs from the router via the WiFI on Dumb AP fine except on VLAN4 for some reason.

The Dumb AP:

Each VLAN is bridging its respective wifi vlan e.g. eth0.4 <-> wifi interface

root@ap01-sbl:~# ifconfig
br-VLAN3_VOX Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:10.3.10.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3002 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:321568 (314.0 KiB)  TX bytes:315679 (308.2 KiB)

br-VLAN4_UNT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:192.168.2.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:97 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17542 (17.1 KiB)  TX bytes:4830 (4.7 KiB)

br-VLAN5_UNT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:10.5.10.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9363 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:884834 (864.0 KiB)  TX bytes:5082122 (4.8 MiB)

br-VLAN6_UNT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:10.6.10.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:172254 (168.2 KiB)  TX bytes:9518 (9.2 KiB)

br-VLAN7_PRT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:10.7.10.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18630 (18.1 KiB)  TX bytes:9112 (8.8 KiB)

br-VLAN8_UNT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:192.168.8.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18630 (18.1 KiB)  TX bytes:856 (856.0 B)

br-VLAN9_UNT Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet addr:10.69.10.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:851 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:85756 (83.7 KiB)  TX bytes:966 (966.0 B)

br-lan    Link encap:Ethernet  HWaddr CC:2D:E0:5A:C8:FE  
          inet addr:192.168.169.2  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::ce2d:e0ff:fe5a:c8fe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:416625 (406.8 KiB)  TX bytes:894706 (873.7 KiB)

eth0      Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          inet6 addr: fe80::ce2d:e0ff:fe5a:cf24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:778206 errors:0 dropped:1 overruns:0 frame:0
          TX packets:40598 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:65545703 (62.5 MiB)  TX bytes:9479390 (9.0 MiB)
          Interrupt:21 

eth0.1    Link encap:Ethernet  HWaddr CC:2D:E0:5A:C8:FE  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5425 errors:0 dropped:69 overruns:0 frame:0
          TX packets:3040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:432907 (422.7 KiB)  TX bytes:894706 (873.7 KiB)

eth0.3    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3002 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:321568 (314.0 KiB)  TX bytes:315679 (308.2 KiB)

eth0.4    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:20650 (20.1 KiB)

eth0.5    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15051 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5285715 (5.0 MiB)  TX bytes:2853901 (2.7 MiB)

eth0.6    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16069 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11148115 (10.6 MiB)  TX bytes:4475711 (4.2 MiB)

eth0.7    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25542 (24.9 KiB)  TX bytes:3654 (3.5 KiB)

eth0.8    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18630 (18.1 KiB)  TX bytes:856 (856.0 B)

eth0.9    Link encap:Ethernet  HWaddr CC:2D:E0:5A:CF:24  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1119 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1042 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:294703 (287.7 KiB)  TX bytes:213430 (208.4 KiB)

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:442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:42408 (41.4 KiB)  TX bytes:42408 (41.4 KiB)

wlan0     Link encap:Ethernet  HWaddr B8:69:F4:B3:96:00  
          inet6 addr: fe80::ba69:f4ff:feb3:9600/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21641 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24876 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3743331 (3.5 MiB)  TX bytes:11290364 (10.7 MiB)

wlan0-1   Link encap:Ethernet  HWaddr BA:69:F4:B3:96:00  
          inet6 addr: fe80::b869:f4ff:feb3:9600/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15956 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17885 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4466113 (4.2 MiB)  TX bytes:11906281 (11.3 MiB)

wlan1     Link encap:Ethernet  HWaddr B8:69:F4:B3:95:FB  
          inet6 addr: fe80::ba69:f4ff:feb3:95fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8712 (8.5 KiB)  TX bytes:11072 (10.8 KiB)

wlan1-1   Link encap:Ethernet  HWaddr BA:69:F4:B3:95:FB  
          inet6 addr: fe80::b869:f4ff:feb3:95fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:399 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:50551 (49.3 KiB)  TX bytes:101653 (99.2 KiB)

I have the LAN port assigned a maintenance address of 192.168.169.2 if that matters. When joining any associated WiFI to br-VLAN other than br-VLAN4 its works great! I can see on the Dumb AP DHCP ACKs but WiFI devices never get assigned an IP. However, computers seem to obtain an IP on VLAN4 fine. Might I add, the Ethernet Switch is a Mikrotik running SWOS and the port the Dumb AP is plugged into is set to accept all tagged traffic, however any untagged traffic it forces a VLAN4 assignment. This has got to be something really dumb on my part.

root@ap01-sbl:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.169.1   0.0.0.0         UG    0      0        0 br-lan
10.3.10.0       0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN3_VOX
10.5.10.0       0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN5_UNT
10.6.10.0       0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN6_UNT
10.7.10.0       0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN7_PRT
10.69.10.0      0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN9_UNT
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN4_UNT
192.168.8.0     0.0.0.0         255.255.255.0   U     0      0        0 br-VLAN8_UNT
192.168.169.0   0.0.0.0         255.255.255.0   U     0      0        0 br-lan

WAN port is disabled. Any help greatly appreciated. P.S. I did try creating another VLAN and placing that WiFI on it with a different IP schema and it works fine, however, I need that WiFI to be on the same subnet as the Ethernet LAN its sitting on 192.168.2.0/24.

Before diving in on the VLAN 4 question, why does the AP need anything more than a single IP address on a single, management VLAN?

Clients of a bridging AP typically don't need to access anything on the AP itself. Adding an IP on each VLAN complicates firewall rules if your intent is to block access to the AP itself from various clients on anything but the "management VLAN".

If you do decide that for some reason you need an address on every VLAN, I'd look into if your "master" DHCP is supplying DHCP on that VLAN. tcpdump or Wireshark would be the tools I'd use to confirm that the packets are reaching the AP and your DHCP server as expected.

1 Like

FYI, this discussion started in a previous thread.

Because each SSID is on a separate VLAN.

No SSID / LAN Management IP 192.168.169.2
SSID 4 <-> VLAN4 192.168.2.2 Ether ----- Ether 192.168.2.1 VLAN4 DHCP Server
SSID 5 <-> VLAN5 10.5.10.2 Ether ---------Ether 10.5.10.1 VLAN5 DHCP Server
etc.. etc..

Ironically, the working SSIDs that are able to obtain an IP from the Router are also able to access the Dumb AP as well as the Routers Luci. However, computers on the LAN Ethernet on the same VLAN have to use the 192.168.169.2 address to access Luci on the Dumb AP and the gateway address on the Router gives them Luci. I'm not trying to block access to the Router or Dumb AP, just enable WiFI through it and have each client be on the proper VLAN. Hope that answers your question.

The logreads:

Router:

Mon Mar 11 09:37:57 2019 daemon.info dnsmasq-dhcp[16498]: DHCPDISCOVER(br-VLAN4_UNT) 38:f7:3d:05:9f:09
Mon Mar 11 09:37:57 2019 daemon.info dnsmasq-dhcp[16498]: DHCPOFFER(br-VLAN4_UNT) 192.168.2.207 38:f7:3d:05:9f:09
Mon Mar 11 09:37:57 2019 daemon.info dnsmasq-dhcp[16498]: DHCPDISCOVER(br-VLAN4_UNT) 38:f7:3d:05:9f:09
Mon Mar 11 09:37:57 2019 daemon.info dnsmasq-dhcp[16498]: DHCPOFFER(br-VLAN4_UNT) 192.168.2.207 38:f7:3d:05:9f:09
Mon Mar 11 09:38:05 2019 daemon.info dnsmasq-dhcp[16498]: DHCPDISCOVER(br-VLAN4_UNT) 38:f7:3d:05:9f:09
Mon Mar 11 09:38:05 2019 daemon.info dnsmasq-dhcp[16498]: DHCPOFFER(br-VLAN4_UNT) 192.168.2.207 38:f7:3d:05:9f:09

Dumb AP:

Mon Mar 11 09:13:20 2019 daemon.notice hostapd: wlan1: AP-STA-CONNECTED 38:f7:3d:05:9f:09
Mon Mar 11 09:13:50 2019 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 38:f7:3d:05:9f:09
Mon Mar 11 09:13:50 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: disassociated
Mon Mar 11 09:13:51 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Mon Mar 11 09:13:52 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: authenticated
Mon Mar 11 09:13:52 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: associated (aid 1)
Mon Mar 11 09:13:52 2019 daemon.notice hostapd: wlan1: AP-STA-CONNECTED 38:f7:3d:05:9f:09
Mon Mar 11 09:14:23 2019 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 38:f7:3d:05:9f:09
Mon Mar 11 09:14:23 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: disassociated
Mon Mar 11 09:14:24 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Mon Mar 11 09:14:25 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: authenticated
Mon Mar 11 09:14:25 2019 daemon.info hostapd: wlan1: STA 38:f7:3d:05:9f:09 IEEE 802.11: associated (aid 1)
Mon Mar 11 09:14:25 2019 daemon.notice hostapd: wlan1: AP-STA-CONNECTED 38:f7:3d:05:9f:09
Mon Mar 11 09:14:56 2019 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 38:f7:3d:05:9f:09

tcpdump -X -i br-VLAN4_UNT port 67 or port 68

09:54:07.654220 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 38:f7:3d:05:9f:09 (oui Unknown), length 300
	0x0000:  4500 0148 8c72 0000 4011 ed33 0000 0000  E..H.r..@..3....
	0x0010:  ffff ffff 0044 0043 0134 2f6a 0101 0600  .....D.C.4/j....
	0x0020:  e419 a6d5 0005 0000 0000 0000 0000 0000  ................
	0x0030:  0000 0000 0000 0000 38f7 3d05 9f09 0000  ........8.=.....
	0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0100:  0000 0000 0000 0000 6382 5363 3501 0332  ........c.Sc5..2
	0x0110:  040a 450a cf39 0205 dc3c 0c64 6863 7063  ..E..9...<.dhcpc
	0x0120:  642d 352e 352e 360c 1061 6d61 7a6f 6e2d  d-5.5.6..amazon-
	0x0130:  3333 3537 6363 3263 3837 0a01 2103 060f  3357cc2c87..!...
	0x0140:  1a1c 333a 3bff 0000                      ..3:;...
09:54:07.656157 IP edge-sbl.blah.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
	0x0000:  45c0 0148 4c2c 0000 4011 6a10 c0a8 0201  E..HL,..@.j.....
	0x0010:  ffff ffff 0043 0044 0134 c3ee 0201 0600  .....C.D.4......
	0x0020:  e419 a6d5 0005 8000 0000 0000 0000 0000  ................
	0x0030:  0000 0000 0000 0000 38f7 3d05 9f09 0000  ........8.=.....
	0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0100:  0000 0000 0000 0000 6382 5363 3501 0636  ........c.Sc5..6
	0x0110:  04c0 a802 0138 0d77 726f 6e67 206e 6574  .....8.wrong.net
	0x0120:  776f 726b ff00 0000 0000 0000 0000 0000  work............
	0x0130:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0140:  0000 0000 0000 0000                      ........
09:54:07.702557 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 38:f7:3d:05:9f:09 (oui Unknown), length 300
	0x0000:  4500 0148 581b 0000 4011 218b 0000 0000  E..HX...@.!.....
	0x0010:  ffff ffff 0044 0043 0134 d177 0101 0600  .....D.C.4.w....
	0x0020:  9e59 64cf 0005 0000 0000 0000 0000 0000  .Yd.............
	0x0030:  0000 0000 0000 0000 38f7 3d05 9f09 0000  ........8.=.....
	0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0100:  0000 0000 0000 0000 6382 5363 3501 0139  ........c.Sc5..9
	0x0110:  0205 dc3c 0c64 6863 7063 642d 352e 352e  ...<.dhcpcd-5.5.
	0x0120:  360c 1061 6d61 7a6f 6e2d 3333 3537 6363  6..amazon-3357cc
	0x0130:  3263 3837 0a01 2103 060f 1a1c 333a 3bff  2c87..!.....3:;.
	0x0140:  0000 0000 0000 0000                      ........

Hi @mpa yes, sort of. All the WiFI VLANs are working through each corresponding Ethernet VLAN through the Dumb AP, just not WiFI DHCP through VLAN4. I think it has something to do with the SWOS switch -- the port the Dumb AP is plugged into forces VLAN4 on DHCP request on untagged traffic. The IP being sent doesn't seem to make it back through the Dumb AP for WiFI client assignment.

As stated, all other work fine. It has something to do with the 192.168.2 range and untagged traffic on the switches port being forced to a VLAN4 assignment. But in fact, does not.

Still no reason to need for an IP address on the "slave" AP for anything but a single, management VLAN.

Just bridge the wlan device for each SSID to the proper sub-interface on the wired for the VLAN in question.

config interface 'vlanNNNN'
        option type 'bridge'
        option stp '1'
        option ifname 'eth0.NNNN'
        option proto 'none'
        option auto '1'
        option delegate '0'

(or whatever the Ethernet device you use is). /etc/config/wireless then references vlanNNNN as the UCI interface to associate with. option delegate'0', as I recall, turns off IPv6 delegation to the interface and is "optional", depending on your personal preferences and objectives.

Most people want VLAN isolation. In that case, the slave AP should have firewall rules that block VLAN-to-VLAN traffic.

@jeff are you saying I can set each VLAN on the Dumb AP to unmanaged in Luci? If so, how do you go about forwarding its traffic to the proper gateway?

Here is the current VLAN4 WiFI

config wifi-device 'radio1'
	option type 'mac80211'
	option channel '11'
	option hwmode '11g'
	option path 'pci0000:00/0000:00:01.0/0000:02:00.0'
	option htmode 'HT20'
	option country 'US'
	option txpower '30'
	option legacy_rates '0'
	option distance '100'
	option beacon_int '200'

config wifi-iface
	option device 'radio1'
	option mode 'ap'
	option ssid 'SBL Office'
	option disassoc_low_ack '0'
	option key 'xxxxxxxx'
	option encryption 'none'
	option network 'VLAN4_UNT'

and network:

config interface 'VLAN4_UNT'
	option proto 'static'
	option netmask '255.255.255.0'
	option type 'bridge'
	option delegate '0'
	option broadcast '255.255.255.255'
	option ipaddr '192.168.2.2'
	option gateway '192.168.2.1'
	option dns '192.168.2.1'
	option ifname 'eth0.4'

config switch_vlan
	option device 'switch0'
	option vlan '4'
	option vid '4'
	option ports '1t 2t 3t 4t 6t'

Attempting your bridge approach now, the Dumb AP documentation specifically state to give the interface a static one up from the gateway e.g. 192.168.2.1, 192.168.2.2

Looks like its already configured that way via Luci and /etc/config/network

image

Are you saying under General Setup, change protocol to "Unmanaged"?

Looks like there is no proto 'auto" in the drop down for Luci. I was able to get close to your config though by blanking at the static fields, probably won't work - but trying anyway.

config interface 'VLAN4_UNT'
	option proto 'static'
	option type 'bridge'
	option delegate '0'
	option ifname 'eth0.4'
	option stp '1'

There's no need for the packets from the clients of the slave AP to be routed by the slave AP when they are bridged.

  • Client X comes on line and connects to SSID X
  • Client X sends a broadcast DHCP discover
  • Slave AP bridges this packet onto VLAN X (and it goes out over the wire)
  • DHCP server sees this packet on VLAN X and offers 10.11.12.13/24, default router 10.11.12.1
  • The packet goes out over the wire and the bridge on Slave AP recognizes the MAC, and sends to to Client X
  • Client X completes the DHCP exchange, and wants to send an off-link packet
  • Client X ARPs for 10.11.12.1, which is bridged over the wire and Master Router responds
  • Client X sends 10.11.12.13 => 1.2.3.4 via the MAC address the ARP reply specified for 10.11.12.1
  • ...

By properly bridging them over a VLAN, they are all on the same network segment. Slave AP doesn't do anything more than transparently bridge the packets destined for delivery through the default route via Master Router.

2 Likes

Thanks for the bullets, I understand what a bridge is. However there is no "auto" protocol via Luci unless I'm missing a package. I've tried the exact flat file config you've provided by using uci to set proto to auto, DHCP addresses are still not getting to the Client X connecting to SSID X.

Here is the Mikrotik Ethernet Switch and Port VLAN info the Dumb AP is plugged into:

image

Port 13

All untagged traffic is directed Router DHCP server to assign an address on VLAN4. Whats weird is when tagged traffic e.g. VLAN5 is passed to it, it directs DHCP server on Router to assign a VLAN5 address... which is successful. Its only when a VLAN4 address is requested via WiFI X client assignment fails.

Yes, I believe this is what Jeff meant.

That's because auto is not a protocol.
After creating the interface, go to its "Advanced Settings" tab and check "Bring up on boot", which will set the auto option. This is necessary because an interface with option proto 'none' is not started automatically by default, and you want it to be started since you are using it as a bridge.

Thanks @mpa ! ...I've been considering losing Luci for a while now. Thanks for the tip. @jeff thank you for all your input as well.

Interest uci handling via Luci:

network.VLAN4_UNT=interface
network.VLAN4_UNT.type='bridge'
network.VLAN4_UNT.ifname='eth0.4'
network.VLAN4_UNT.proto='none'
network.VLAN4_UNT.auto='1'
network.VLAN4_UNT.delegate='0'
network.VLAN4_UNT.stp='1'

/etc/config/network result

config interface 'VLAN4_UNT'
	option type 'bridge'
	option ifname 'eth0.4'
	option proto 'none'
	option auto '1'
	option delegate '0'
	option stp '1'

Same result though, WiFI Client X unable to obtain an IP address...

There is still the untagged VLAN 1 on OpenWrt - maybe this is mapped to VLAN 4 by the switch and causes confusion? Can you make a direct connection between router and AP without the switch?

PS @jeff I've applied your recommendation to the other VLANs 3, 5, and 6 and they all continue to work properly with no statics :wink: thanks. VLAN4 is a head scratcher.

At least for the way I work, I always set a VLAN tag on all my trunks. That way there's never any question as to what will happen with an untagged packet. No untagged packets, "period". I set the PVID to a value that is not assigned to any port. I prefer 4095 as it is the standard "internal only" VLAN (at least for Cisco SG300 switches), though, as I recall, not supported by the switches on the OpenWrt devices I use.

Edit:

From https://en.wikipedia.org/wiki/IEEE_802.1Q#Frame_format

The VID value 0xFFF is reserved for implementation use; it must not be configured or transmitted.

@mpa thats exactly whats happening I bet. The switch is configured to direct all untagged traffic to be tagged VLAN4. I had to setup the switch like this in order to accommodate your question in the link thread regarding DHCP Option: 132,VID=3. I have VoIP phones that are daisy chained to computers using the phone's PC port. The computers get assigned VLAN4, The phones send out Option 132 telling the Router they belong to VLAN3, the Router changes their VLAN4 address to a VLAN3 address and tag. Works great! However, stumps a dumb ap.

I'm trying the following now. I'm trying a few things with LAN interface and bridging to see if there is a work around.

Maybe succumb to their pre-configuration (as I understand it) and just stick with VLAN 3 for those devices. You've got another 4000 to pick from (though some require explicit configuration of VID and PVID if they are above the total number permitted by your OpenWrt switch).

I have to succumb to it unfortunately... the is the only way you can daisy chain as I understand it.

Computers <----> untagged traffic to port (switch says OK you're VLAN4 (192.168.2.0/24))
Computers <----> phones <-----> Phones are initially assigned to VLAN4 however DHCP server responds
twice due to receiving option 132,VID=3, then reassigns the phone to VLAN3 (10.3.10.0/24)

Well, it was the Switch as I've tested with a non-managed one. I think I have a work around, two actually. One: get IPs to WAP users via another VLAN, then place static routes from the VLAN to the VLAN4 so they can access VLAN4 or Two which would be really nice... does OpenWrt have the ability to pass DHCP options during request? :slight_smile: