I'm trying to upgrade my home network from openwrt 21.xx to 24.10.
Started with some GS108Tv3 switches.
All VLAN's (id 3 to 8) are tagged on physical port 1 and 8
VLAN 3 is untagged at phyical port 3
When I connect a device to physical port 3, the device gets an ip from the main router = dhcp server out of the defined range of VLAN 3.
So I think everything works as expected.
But now I'm struggling with a WDR4900. I would like to run the device as switch too. Maybe I will upgrade to a Dumb-AP with WiFi later ...
What I have done as first steps.
- removed all firewall rules
- remove interfaces wan, wan6
- disabled dhcp server on interface lan
- changed protocol to DHCP client on interface lan
- added physical port "wan" to device br-lan
With this done I can connect a device to every physical port. As long as any Port is connected to an uplink port of another switch, the connected devices will get an IP Address via DHCP.
Fine.
Then I'm trying to get VLAN working.
Via Luci -> Network -> Interfaces -> devices
- added VLAN (802.1q) devices with VLAN id to br-lan ==> got new devices br-lan.3 .. br-lan.8
- added interfaces. one per VLAN
- configured device br-lan
-- set Bridge VLAN filtering to yes
-- added all VLAN-ID's
-- set physical port "wan" untagged id 1, tagged all other VLAN ID's
-- set physical port "lan1" untagged id 1
-- set physical port "lan3" to untagged id 3
But now, when I connect a device to physical port "lan3" I got an IP address from VLAN id 1 range and not from VLAN id 3 range as expected.
/etc/config/firewall
config defaults
option syn_flood '1'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
/etc/config/dhcp
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'
option dhcpv6 'hybrid'
option ra 'hybrid'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
/etc/config/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 'fcc0::/16'
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'
list ports 'wan'
option vlan_filtering '0'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
option ip6ifaceid '::5'
option delegate '0'
config device
option type '8021q'
option ifname 'br-lan'
option vid '3'
option name 'br-lan.3'
config device
option type '8021q'
option ifname 'br-lan'
option vid '4'
option name 'br-lan.4'
config device
option type '8021q'
option ifname 'br-lan'
option vid '5'
option name 'br-lan.5'
config device
option type '8021q'
option ifname 'br-lan'
option vid '6'
option name 'br-lan.6'
config device
option type '8021q'
option ifname 'br-lan'
option vid '7'
option name 'br-lan.7'
config device
option type '8021q'
option ifname 'br-lan'
option vid '8'
option name 'br-lan.8'
config interface 'Jail'
option proto 'none'
option device 'br-lan.3'
option delegate '0'
config interface 'Freifunk'
option proto 'none'
option device 'br-lan.4'
option delegate '0'
config interface 'PV'
option proto 'none'
option device 'br-lan.6'
option delegate '0'
config interface 'VoIP'
option proto 'none'
option device 'br-lan.7'
option delegate '0'
config interface 'FF_WAN'
option proto 'none'
option device 'br-lan.8'
option delegate '0'
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'lan1'
list ports 'lan2'
list ports 'lan4'
list ports 'wan'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan3'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '4'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '5'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '6'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '7'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '8'
list ports 'wan:t'
ubus call system board
{
"kernel": "6.6.73",
"hostname": "AP-WDR4900",
"system": "e500v2",
"model": "TP-Link TL-WDR4900 v1",
"board_name": "tplink,tl-wdr4900-v1",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.0",
"revision": "r28427-6df0e3d02a",
"target": "mpc85xx/p1010",
"description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
"builddate": "1738624177"
}
}