I just had exactly the same issue during my attempt to replace my ISP provided box (french Freebox Revolution, 10G-EPON fiber) with a NanoPI R4S router powered by OpenWrt.
my setup is based on:
- an intermediate ONU/ONT provided by the ISP (transforming 10G-EPON into 1G)
- a [TP-Link MC220L] for SFP 1G => ethernet 1G conversion
- an IPv6 stack available on VLAN 836
- a NanoPI R4S + 'work in progress' support for NanoPi R4S in OpenWrt
- the package
map
to allow `4rd{ encapsulation of IPv4 traffic into IPv6 paquets (this is requirement specific to french ISP 'Free' in 10G-EPON connectivity case)
My openWrt config:
config interface 'wan6'
option ifname 'eth0.836'
option proto 'dhcpv6'
option reqprefix 'auto'
option reqaddress 'try'
option macaddr 'F4:CA:XX:XX:XX:XX'
option mtu '1700'
list dns '2001:4860:4860::8888' # google IPv6 DNS
option peerdns '0'
without promiscuous mode, I get no DHCPv6 lease from ISP & the following logs:
root@OpenWrt:~# logread
Sun Feb 21 18:28:57 2021 daemon.notice netifd: Interface 'wan6' is now down
Sun Feb 21 18:28:57 2021 daemon.notice netifd: Interface 'wan6' is disabled
Sun Feb 21 18:28:57 2021 kern.info kernel: [ 2489.045174] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet]
Sun Feb 21 18:28:57 2021 kern.info kernel: [ 2489.058499] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
Sun Feb 21 18:28:57 2021 kern.warn kernel: [ 2489.059196] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
Sun Feb 21 18:28:57 2021 kern.info kernel: [ 2489.059810] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
Sun Feb 21 18:28:57 2021 daemon.notice netifd: Interface 'wan6' is enabled
Sun Feb 21 18:29:00 2021 kern.info kernel: [ 2492.464898] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Sun Feb 21 18:29:00 2021 kern.info kernel: [ 2492.465738] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Feb 21 18:29:00 2021 daemon.notice netifd: Network device 'eth0' link is up
Sun Feb 21 18:29:00 2021 daemon.notice netifd: VLAN 'eth0.836' link is up
Sun Feb 21 18:29:00 2021 daemon.notice netifd: Interface 'wan6' has link connectivity
Sun Feb 21 18:29:00 2021 daemon.notice netifd: Interface 'wan6' is setting up now
Sun Feb 21 18:29:00 2021 kern.info kernel: [ 2492.467137] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.836: link becomes ready
Then, a few secondes after I enable the promiscous mode on eth0 with ifconfig eth0 promisc
, I get:
Sun Feb 21 21:16:33 2021 kern.info kernel: [ 103.205826] device eth0 entered promiscuous mode
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6' is now up
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain test
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain onion
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain localhost
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain local
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain invalid
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain bind
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using only locally-known addresses for domain lan
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using nameserver 8.8.8.8#53
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using nameserver 8.8.4.4#53
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using nameserver 9.9.9.9#53
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: using nameserver 2001:4860:4860::8888#53
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: read /etc/hosts - 4 addresses
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: read /tmp/hosts/odhcpd - 0 addresses
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq[1833]: read /tmp/hosts/dhcp.cfg01411c - 20 addresses
Sun Feb 21 21:17:24 2021 daemon.info dnsmasq-dhcp[1833]: read /etc/ethers - 0 addresses
Sun Feb 21 21:17:24 2021 user.notice firewall: Reloading firewall due to ifup of wan6 (eth0.836)
Sun Feb 21 21:17:24 2021 daemon.debug dnsmasq[1833]: listening on map-wan6_4(#7): xxx.yyy.zzz.ttt port 53
Sun Feb 21 21:17:24 2021 daemon.debug dnsmasq[1833]: listening on map-wan6_4(#7): fe80::dc97:86ff:fexx:xxxx%map-wan6_4 port 53
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4' is now up
Sun Feb 21 21:17:24 2021 daemon.notice netifd: tunnel 'map-wan6_4' link is up
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Network alias 'eth0.836' link is up
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4_' is enabled
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4_' is setting up now
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4_' is now up
Sun Feb 21 21:17:24 2021 daemon.notice netifd: Interface 'wan6_4_' has link connectivity
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 153.624955] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 153.625656] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 153.626306] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 user.notice firewall: Reloading firewall due to ifup of wan6_4 (map-wan6_4)
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.113044] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.178135] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.179029] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.179394] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.180414] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:24 2021 kern.warn kernel: [ 154.181077] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:25 2021 kern.warn kernel: [ 154.237926] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:25 2021 kern.warn kernel: [ 154.238745] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:25 2021 kern.warn kernel: [ 154.239487] ip6_tunnel: map-wan6_4 xmit: Local address not yet configured!
Sun Feb 21 21:17:25 2021 daemon.debug dnsmasq[1833]: listening on eth0.836(#6): 2a01:e0a:69:xxxx:xxxx:xxxx:xxxx:3 port 53
Sun Feb 21 21:17:26 2021 daemon.debug dnsmasq[1833]: listening on br-lan(#5): 2a01:e0a:69:xxxx::1 port 53
Sun Feb 21 21:17:26 2021 daemon.debug dnsmasq[1833]: listening on eth0.836(#6): 2a01:e01:8:xxxx:xxxx::xxxx port 53
I noticed in thread discussing about WiP port of OpenWrt on NanoPIR4S @BotoX who said: "use r8168-8.048.03 realtek kernel module (much better than r8169)", something I didn't do yet. I'm still using default r8169 kernel module.
=> Could this issue be related to a bug and/or a bad behavior of Realtek driver ?