Hi!
I'd like to set up my Asus RT-AC56U with the standard 24.10.0 build so that each LAN port operates on a separate VLAN (WAN is unused/disabled). I think the device should support DSA but haven't confirmed.
- VLAN 10 - Management - interface static address 192.168.1.1/24 - local access only
- VLAN 20 - Trusted - interface static address 192.168.2.1/24 - outbound access to WAN, and outbound to IOT VLAN.
- VLAN 30 - IOT - interface static address 192.168.3.1/24 - outbound access to WAN only
- VLAN 40 - Guest - interface static address 192.168.4.1/24 - outbound access to WAN only
I created these VLAN devices on br-lan per #3 here: https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial, and set up the interfaces with static IPs and with DHCP servers. I added some basic firewall rules but am having the following issues:
- PC connected to lan1 can ping all four static addresses without firewall rules allowing outbound access
- PC connected to lan2-4 does not receive an IP address from the DHCP server
- PC connected to lan2-4, when configured with a static IP, still cannot ping the router's interface static IP address
The fact that lan2-4 don't behave the same as lan1 makes me think the VLAN configuration is doing something, but not working correctly.
I tried disabling IPv6 everywhere I could find it, since I read this causes issues with some devices. I also tried adding to the DHCP server config.
Here's my network config:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
option ipv6 '0'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config device
option name 'wan'
option macaddr '<redacted>'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:u*'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan2:u*'
config bridge-vlan
option device 'br-lan'
option vlan '30'
list ports 'lan3:u*'
config bridge-vlan
option device 'br-lan'
option vlan '40'
list ports 'lan4:u*'
config interface 'Trusted'
option proto 'static'
option device 'br-lan.20'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
config interface 'IOT'
option proto 'static'
option device 'br-lan.30'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
config interface 'Guest'
option proto 'static'
option device 'br-lan.40'
option ipaddr '192.168.4.1'
option netmask '255.255.255.0'
And DHCP config:
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'Trusted'
option interface 'Trusted'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
config dhcp 'IOT'
option interface 'IOT'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
config dhcp 'Guest'
option interface 'Guest'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
Can you please help advise what may be the issue? Thanks in advance?