Hi all,
I'm trying to seperate my (large) network into VLANs but I'm not able to reach nodes in one subnet/zone from another, despite configuring it (obviously incorrectly, more below).
I have a switch, with vlans configured as a mix of trunk and access ports, and I'm trying to congure OpenWRT as a router-on-a-stick. Here's the architecture:
The Wifi AP is vlan aware. Whether I'm connected to WiFI or an ethernet port on the switch, I can reach nodes within the same subnet, without issues. I'm quite confident that my issue lies in the OpenWRT config.
OpenWRT handles DHCP for all VLANs except VLAN 20 - My ISP router handles that subnet. It's not VLAN aware, so the switch handles the VLAN tagging.
I have configured:
- Interfaces for each VLAN, on
eth0aseth0.x - One firewall zone per VLAN and applied each vlan interface to the corresponding zone.
- Configured which zones to forward traffic to (initially, I'm just focusing on traffic from
Managementto all other zones)
Here's some uci output, that hopefully has some errors someone can see:
Network
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 ula_prefix 'fd1d:49d2:cc4a::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option ipv6 '0'
config device
option name 'eth0'
option ipv6 '0'
config device
option name 'eth1'
option ipv6 '0'
config device
option type '8021q'
option ifname 'eth0'
option vid '30'
option name 'eth0.30'
option ipv6 '0'
config interface 'Management'
option proto 'static'
option device 'eth0.30'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
config device
option type '8021q'
option ifname 'eth0'
option vid '10'
option name 'eth0.10'
option ipv6 '0'
config interface 'IoT'
option proto 'static'
option device 'eth0.10'
option ipaddr '192.168.1.254'
option netmask '255.255.255.0'
config device
option type '8021q'
option ifname 'eth0'
option vid '40'
option name 'eth0.40'
option ipv6 '0'
config device
option type '8021q'
option ifname 'eth0'
option vid '50'
option name 'eth0.50'
option ipv6 '0'
config interface 'TWO'
option proto 'static'
option device 'eth1'
option ipaddr '10.254.0.1'
option netmask '255.255.255.0'
list dns '8.8.8.8'
option defaultroute '0'
config device
option type '8021q'
option ifname 'eth0'
option vid '20'
option name 'eth0.20'
option ipv6 '0'
config interface 'Media'
option proto 'static'
option device 'eth0.20'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
Firewall
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
list interface 'lan'
list interface 'IoT'
list interface 'Management'
list interface 'TWO'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'CATCH'
option interface 'CATCH'
option start '101'
option limit '150'
option leasetime '10m'
config dhcp 'Management'
option interface 'Management'
option start '10'
option limit '90'
option leasetime '2'
list dhcp_option '6,1.1.1.1'
config dhcp 'IoT'
option interface 'IoT'
option start '100'
option limit '100'
option leasetime '2'
config dhcp 'TWO'
option interface 'TWO'
option start '20'
option limit '10'
option leasetime '2m'
config dhcp 'Media'
option interface 'Media'
option start '100'
option limit '150'
option leasetime '2m'
list dhcp_option '6,1.1.1.1'
option ignore '1'
Any help would be appreciated.

