I apologize if this is asked a lot, but I can't seem to find a solution to the problem I'm having after searching in the forums.
I have 2 devices with OpenWrt installed: a router (R) that provides access to the Internet, and a dumb access point (AP) that is connected to R via LAN.
I have set up R with 2 VLANs, one for private usage (VLAN 1) and one for guest usage (VLAN 10), which are working fine on R's side. R is providing DHCP/DNS for both VLANs, firewall as well as Internet access.
However, while configuring the VLANs for AP, only VLAN 1 is working on AP, while VLAN 10 is not. Other than the VLANs, I've followed the instructions for setting up a dumb AP here (DHCP and firewall are disabled on AP).
Here's the network configuration on R (loopback and WAN ommited). Port 0 is CPU and port 4 is connected to AP.
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.0.1'
option ifname 'eth0.1'
option type 'bridge'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option description 'LAN'
option vid '1'
option ports '0t 2 4t'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '10'
option description 'LAN Guest'
option ports '0t 1 3 4t'
config interface 'guest'
option proto 'static'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option ifname 'eth0.10'
option type 'bridge'
Here's the firewall configuration on R (default rules omitted):
config defaults
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
config forwarding
option src 'lan'
option dest 'wan'
config zone
option name 'guest'
option output 'ACCEPT'
option forward 'REJECT'
option input 'REJECT'
list network 'guest'
config forwarding
option src 'guest'
option dest 'wan'
config rule
option src 'guest'
option target 'ACCEPT'
option dest_port '53'
option name 'Allow-Guest-DNS'
option family 'ipv4'
config rule
list proto 'udp'
option src 'guest'
option dest_port '67'
option target 'ACCEPT'
option name 'Allow-Guest-DHCP'
option family 'ipv4'
Here's the network configuration on AP (loopback omitted). Port 6 is CPU and port 1 is connected to R.
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.0.5'
option netmask '255.255.255.0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '1t 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '10'
option ports '1t 2 3 6t'
config interface 'guest'
option type 'bridge'
option ifname 'eth0.10'
option proto 'static'
option ipaddr '192.168.5.5'
option netmask '255.255.255.0'
My PC is currently connected to AP on port 4, which successfully gets an IP address from R and can connect to the internet. However, when I connect to either port 2 or 3 of AP, the PC fails to connect to the network.
Any help is much appreciated.