After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746041 - Configures IPv6 link-local address even when IPv6 disabled for network
Configures IPv6 link-local address even when IPv6 disabled for network
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-03-11 18:19 UTC by Josh Triplett
Modified: 2020-11-12 14:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Josh Triplett 2015-03-11 18:19:18 UTC
I've edited NetworkManager's settings for both a wired and wireless network to have IPv6 explicitly disabled; the system-connection files for those connections have:

[ipv6]
method=ignore

That seems to have worked for my wired connection; however, after NetworkManager brings up my wireless interface, it has an IPv6 address with "scope link".

I've observed this problem both with Debian unstable (network-manager 0.9.10.0-6) and Debian experimental (network-manager 1.0.0-3).

Probably not relevant, but: Linux kernel 3.16, running iwlwifi on an Intel wifi card with the 6205 chipset (PCI ID 8086:0085).

dmesg when connecting to wifi:

[ 4715.240927] wlan0: authenticate with (mac address omitted)
[ 4715.246645] wlan0: send auth to (mac address omitted) (try 1/3)
[ 4715.258030] wlan0: authenticated
[ 4715.258958] wlan0: associate with (mac address omitted) (try 1/3)
[ 4715.266026] wlan0: RX AssocResp from (mac address omitted) (capab=0x431 status=0 aid=22)
[ 4715.285049] wlan0: associated
[ 4715.285118] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 4715.285183] cfg80211: Calling CRDA to update world regulatory domain

That IPv6 ADDRCONF message seems notable.

Log messages from NetworkManager:

Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> WiFi hardware radio set enabled
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> WiFi now enabled by radio killswitch
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0) supports 5 scan SSIDs
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: starting -> ready
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: ready -> disconnected
Mar 11 11:15:14 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0) supports 5 scan SSIDs
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: disconnected -> inactive
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Auto-activating connection 'TSNOfficeWLAN'.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) starting connection 'TSNOfficeWLAN'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0/wireless): access point 'TSNOfficeWLAN' has security, but secrets are required.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0/wireless): connection 'TSNOfficeWLAN' has security, and secrets exist.  No new secrets needed.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'ssid' value 'TSNOfficeWLAN'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'scan_ssid' value '1'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'eap' value 'TLS'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'fragment_size' value '1300'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'ca_path' value '/etc/ssl/certs'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'ca_path2' value '/etc/ssl/certs'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'ca_cert' value '/home/josh/.cert/intel-certchain.crt'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'private_key' value '/home/josh/.cert/priv-key-machine.pem'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'private_key_passwd' value '<omitted>'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'client_cert' value '/home/josh/.cert/machine-cert.argus.pem'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'identity' value 'host/jtriplet-mobl1.amr.corp.intel.com'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: added 'proactive_key_caching' value '1'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Config: set interface ap_scan to 1
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: inactive -> authenticating
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: authenticating -> associating
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: associating -> associated
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'TSNOfficeWLAN'.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> dhclient started with pid 6360
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Mar 11 11:15:17 jtriplet-mobl1 dhclient[6360]: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Mar 11 11:15:17 jtriplet-mobl1 dhclient[6360]: DHCPACK from 10.24.0.10
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): DHCPv4 state changed preinit -> reboot
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   address 10.24.3.24
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   plen 21 (255.255.248.0)
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   gateway 10.24.0.1
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   server identifier 10.22.224.196
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   lease time 28800
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   nameserver '10.248.2.1'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   nameserver '10.22.224.196'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   nameserver '10.3.86.116'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   domain name 'jf.intel.com'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   wins '134.134.128.37'
Mar 11 11:15:17 jtriplet-mobl1 dhclient[6360]: bound to 10.24.3.24 -- renewal in 13151 seconds.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info>   wins '10.4.23.170'
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) started...
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: ip-config -> ip-check (reason 'none') [70 80 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: ip-check -> secondaries (reason 'none') [80 90 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> (wlan0): roamed from BSSID (mac address omitted) (TSNOfficeWLAN) to (mac address omitted) (TSNOfficeWLAN)
Mar 11 11:15:17 jtriplet-mobl1 NetworkManager[5980]: <info> Activation (wlan0) successful, device activated.
Comment 1 Thomas Haller 2015-03-12 09:57:33 UTC
"ignore" means:
 
 * IPv6 is not required or is handled by some other mechanism, and NetworkManager
 * should not configure IPv6 for this connection.

In fact, there is no method "disabled" for IPv6. If you set it to "ignore", it depends on the kernel sysctl values you set for the interface. 


Unless you
  echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
an interface must have a IPv6 link local address.


It's interesting that your wired connection would behave differently...



related: 
https://bugzilla.gnome.org/show_bug.cgi?id=682932
https://fedoraproject.org/wiki/Networking/Ideas/NetworkManagerMethods
Comment 2 Josh Triplett 2015-03-12 15:50:51 UTC
(In reply to Thomas Haller from comment #1)
> "ignore" means:
>  
>  * IPv6 is not required or is handled by some other mechanism, and
> NetworkManager
>  * should not configure IPv6 for this connection.
> 
> In fact, there is no method "disabled" for IPv6. If you set it to "ignore",
> it depends on the kernel sysctl values you set for the interface. 
> 
> 
> Unless you
>   echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
> an interface must have a IPv6 link local address.

That's helpful, thanks.  Though it's unfortunate that I can't manage that through NetworkManager.

> It's interesting that your wired connection would behave differently...

Indeed.

> related: 
> https://bugzilla.gnome.org/show_bug.cgi?id=682932

The idea of renaming these methods to be more useful does make sense, though I'd still like to have a global option to have NetworkManager disable link-local address assignment.
Comment 3 Elliott Sales de Andrade 2017-03-14 08:27:43 UTC
Seems like something useful to have in NM, especially if it could be configured per-wireless-network.
Comment 4 André Klapper 2020-11-12 14:25:33 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).