[LEDE-DEV] wifi and wan ipv6 connectivity

Hans Dedecker dedeckeh at gmail.com
Fri Aug 11 01:27:02 PDT 2017


On Wed, Aug 9, 2017 at 4:46 PM, e9hack <e9hack at gmail.com> wrote:
> Hi,
>
> the issue isn't triggered by wifi directly. Calling '/etc/init.d/network reload' without any modification of the network
> config triggers the same issue.
I've exactly the same configuration in use as yours but I can't
reproduce the issue.
Are you using the latest version of netifd ?
Dynamic interfaces are not deleted upon a network reload as the node
version is set to -1 (see
https://git.lede-project.org/?p=project/netifd.git;a=blob;f=interface.c;h=900a523dc4252280277ca1cf559b9111929e219b;hb=HEAD#l876)
Can you also dump the output of ifstatus wan_6 ?

Hans
>
> Regards,
> Hartmut
>
> Am 08.08.2017 um 18:02 schrieb e9hack:
>> Hi,
>>
>> for testing I add a hotplug script. Bellow I did copy my test sequence and the output. There are a few seconds between
>> the commands. If 'wifi ...' is called, the 2003: address of my wan interface is gone. The other addresses are still
>> assigned. If 'ubus ...' is called, the wan interface gets the same 2003: address back.
>>
>> Regards,
>> Hartmut
>>
>>
>> root at WLAN:~# cat /etc/config/network
>> ...
>> config interface 'wan'
>>       option ifname 'eth0.7'
>>       option proto 'pppoe'
>>       option username 'xxxxxxxxxxxxyyyyyyyyyyyyyyyy at t-online.de'
>>       option password 'zzzzzzzz'
>>       option keepalive '10 5'
>>       option pppd_options 'debug'
>>       option persist '1'
>>       option maxfail '50'
>>       option holdoff '5'
>> ...
>>
>> root at WLAN:~# cat /etc/hotplug.d/iface/99-debug
>> #!/bin/sh
>> [ "$INTERFACE" = "wan_6" ] && logger -t DEBUG "hotplug: device='$INTERFACE' action='$ACTION'"
>>
>> root at WLAN:~# ifconfig pppoe-wan
>> pppoe-wan Link encap:Point-to-Point Protocol
>>           inet addr:217.xxx.yyy.zzz  P-t-P:87.xxx.yyy.zzz  Mask:255.255.255.255
>>           inet6 addr: 2003:AAAA:BBBB:CCCC:aaaa:bbbb:cccc:dddd/64 Scope:Global
>>           inet6 addr: fe80::aaaa:bbbb:cccc:dddd/10 Scope:Link
>>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>>           RX packets:129701 errors:0 dropped:0 overruns:0 frame:0
>>           TX packets:76890 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:3
>>           RX bytes:149174780 (142.2 MiB)  TX bytes:32962821 (31.4 MiB)
>>
>> root at WLAN:~# wifi reload
>>
>> root at WLAN:~# logread
>> ...
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: reading /tmp/resolv.conf.auto
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain test
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain onion
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain localhost
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain local
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain invalid
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.net
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.org
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.com
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using nameserver 217.xxx.yyy.zzz#53
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using nameserver 217.xxx.xxx.xxx#53
>> Tue Aug  8 17:33:39 2017 daemon.info dnsmasq[7773]: using 3 more local addresses
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' is now down
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' is disabled
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' has link connectivity loss
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Network alias 'pppoe-wan' link is up
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' is enabled
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' has link connectivity
>> Tue Aug  8 17:33:39 2017 daemon.notice netifd: Interface 'wan_6' is setting up now
>> Tue Aug  8 17:33:41 2017 user.notice DEBUG: hotplug: device='wan_6' action='ifdown'
>> Tue Aug  8 17:33:41 2017 user.notice ddns-scripts[27798]: dynv6_ipv6: PID '27798' terminated by 'SIGTERM' at 2017-08-08
>> 17:33
>> Tue Aug  8 17:33:41 2017 user.notice DEBUG: hotplug: device='wan_6' action='ifup-failed'
>> ...
>>
>> root at WLAN:~# ifconfig pppoe-wan
>> pppoe-wan Link encap:Point-to-Point Protocol
>>           inet addr:217.xxx.yyy.zzz  P-t-P:87.xxx.yyy.zzz  Mask:255.255.255.255
>>           inet6 addr: fe80::aaaa:bbbb:cccc:dddd/10 Scope:Link
>>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>>           RX packets:129722 errors:0 dropped:0 overruns:0 frame:0
>>           TX packets:76916 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:3
>>           RX bytes:149177731 (142.2 MiB)  TX bytes:32965765 (31.4 MiB)
>>
>> root at WLAN:~# ubus call network add_dynamic '{ "name": "wan_6", "ifname": "@wan", "proto": "dhcpv6", "zone": "wan" }'
>>
>> root at WLAN:~# ifconfig pppoe-wan
>> pppoe-wan Link encap:Point-to-Point Protocol
>>           inet addr:217.xxx.yyy.zzz  P-t-P:87.xxx.yyy.zzz  Mask:255.255.255.255
>>           inet6 addr: 2003:AAAA:BBBB:CCCC:aaaa:bbbb:cccc:dddd/64 Scope:Global
>>           inet6 addr: fe80::aaaa:bbbb:cccc:dddd/10 Scope:Link
>>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>>           RX packets:129871 errors:0 dropped:0 overruns:0 frame:0
>>           TX packets:77068 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:3
>>           RX bytes:149257479 (142.3 MiB)  TX bytes:32988794 (31.4 MiB)
>>
>> root at WLAN:~# logread
>> ...
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' is now down
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' is disabled
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' has link connectivity loss
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Network alias 'pppoe-wan' link is up
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' is enabled
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' has link connectivity
>> Tue Aug  8 17:35:55 2017 daemon.notice netifd: Interface 'wan_6' is setting up now
>> Tue Aug  8 17:35:55 2017 user.notice DEBUG: hotplug: device='wan_6' action='ifup-failed'
>> Tue Aug  8 17:36:06 2017 daemon.warn netifd: Failed to assign requested subprefix of size 60 for lan, trying other
>> Tue Aug  8 17:36:06 2017 daemon.notice netifd: Interface 'wan_6' is now up
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: reading /tmp/resolv.conf.auto
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain test
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain onion
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain localhost
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain local
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain invalid
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.net
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.org
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using local addresses only for domain example.com
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using nameserver 217.xxx.yyy.zzz#53
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using nameserver 217.xxx.yyy.zzz#53
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using nameserver 2003:AAAA:BBBB:CCCC::53#53
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using nameserver 2003:AAAA:BBBB:CCCC::53#53
>> Tue Aug  8 17:36:06 2017 daemon.info dnsmasq[7773]: using 3 more local addresses
>> Tue Aug  8 17:36:07 2017 user.notice firewall: Reloading firewall due to ifup of wan_6 (pppoe-wan)
>> Tue Aug  8 17:36:10 2017 user.notice DEBUG: hotplug: device='wan_6' action='ifup'
>> Tue Aug  8 17:36:13 2017 user.notice ddns-scripts[28972]: dynv6_ipv6: PID '28972' started at 2017-08-08 17:36
>> ...
>>
>>
>> Am 07.08.2017 um 18:49 schrieb Hans Dedecker:
>>> This is certainly not intended behavior as there's no direct link
>>> between wireless and dynamic interfaces in netifd.
>>>
>>> Can you elaborate a bit more giving the complete picture of the
>>> network config  and how the issue is triggered ?
>



More information about the Lede-dev mailing list