Hello,
I got a TP-Link RE650 running OpenWRT as Routed AP. I followed the official tutorial and the IP4 setup kind of works. (192.168.0.m-Router) -> (SwitchVlan1) -> (RE650-OpenWRT) -> (192.168.1.n-SwitchVlan2/WLAN). The only change on my old router was adding an ip4-static-route to OpenWRT. I am still experiencing that the radios (radio0 and radio1 for both wifi devices) are randomly getting disabled and they are only occasionally powering up. Maybe you spot a problem there. I have to reload network service multiple times till the radios get assigned.
I don't know much about IPv6 but I want to get it running too. My internet connection is dual stack. I enabled prefix delegation on my old router. My first step on OpenWRT was to add a DHCPv6 interface on the same device as the DHCP Client and add it to the same firewall zone. After powering the new interface up it got a IPv6 and IPv6-PD address starting with 2a02 with a prefix length of 64 respectively 62. When going to diagnostics tab and pinging on ip6 it always gets 100% packet loss. Can you please help me with setting IPv6 up? I tried to ignore the failed test and set everything to 'relay mode' in my wlan interface under dhcp ipv6 configuration. In that case the interface doesn't come up at all. I tried to add a new firewall zone for IPv6 which has masquerade = off but this was not successful.
This is the system log when reenabling the DHCPv6 interface:
Wed Oct 23 23:13:12 2019 daemon.notice netifd: Interface 'lan6' is now down
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: reading /tmp/resolv.conf.auto
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain test
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain onion
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain localhost
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain local
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain invalid
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain bind
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using local addresses only for domain lan
Wed Oct 23 23:13:12 2019 daemon.info dnsmasq[1686]: using nameserver 192.168.0.1#53
Wed Oct 23 23:13:36 2019 daemon.notice netifd: Interface 'lan6' is setting up now
Wed Oct 23 23:13:40 2019 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Wed Oct 23 23:13:40 2019 daemon.notice netifd: Interface 'lan6' is now up
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: reading /tmp/resolv.conf.auto
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain test
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain onion
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain localhost
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain local
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain invalid
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain bind
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using local addresses only for domain lan
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using nameserver 192.168.0.1#53
Wed Oct 23 23:13:40 2019 daemon.info dnsmasq[1686]: using nameserver fd00::9a9b:cbff:feca:cb1e#53
Wed Oct 23 23:13:40 2019 user.notice firewall: Reloading firewall due to ifup of lan6 (eth0.1)
Wed Oct 23 23:13:41 2019 daemon.warn odhcpd[950]: A default route is present but there is no public prefix on lan thus we don't announce a default route!
The configuration was done with luci. I don't understand everything from the files.
network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0a:1e56:17ad::/48'
config interface 'lan'
option ifname 'eth0.1'
option proto 'dhcp'
config interface 'lan6'
option ifname 'eth0.1'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
config interface 'wlan'
option proto 'static'
option type 'bridge'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
option delegate '0'
option ifname 'eth0.2'
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 '6t 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option ports '6t 0t'
dhcp
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 authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option nonwildcard '1'
option localservice '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ra_management '1'
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 'wlan'
option leasetime '12h'
option interface 'wlan'
option start '150'
option limit '100'
firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config forwarding
option src 'lan'
option dest 'wan'
config include
option path '/etc/firewall.user'
config zone
option input 'ACCEPT'
option forward 'REJECT'
option name 'LAN'
option output 'ACCEPT'
option masq '1'
option mtu_fix '1'
option network 'lan lan6'
config zone
option network 'wlan'
option input 'ACCEPT'
option forward 'REJECT'
option name 'WLAN'
option output 'ACCEPT'
config forwarding
option dest 'LAN'
option src 'WLAN'
config forwarding
option dest 'WLAN'
option src 'LAN'
wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
option htmode 'HT20'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'wlan'
option mode 'ap'
option ssid 'blabla'
option encryption 'psk2+ccmp'
option key 'blabla'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'pci0000:00/0000:00:01.0/0000:02:00.0'
option htmode 'VHT80'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'wlan'
option mode 'ap'
option ssid 'blabla'
option encryption 'psk2+ccmp'
option key 'blabla'
list maclist 'blabla'
option macfilter 'deny'