IPv6 на NetworkManager (NM не получает адрес)

SLAX, Deep Style, ZenWalk

Модератор: Модераторы разделов

Ответить
BratSinot
Сообщения: 812
ОС: Slackware64

IPv6 на NetworkManager

Сообщение BratSinot »

Доброго времени суток!

Проблема проста, NW не хочет получать IPv6 адрес. Конфиг в части IPv6 такой:

Код: Выделить всё

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=shared
В лог NW пишет подобное:

Код: Выделить всё

May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916259.9160] device (wlan0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916259.9671] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.0142] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.0606] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.1128] manager: NetworkManager state is now CONNECTED_LOCAL
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.1193] manager: NetworkManager state is now CONNECTED_SITE
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.1196] policy: set 'net56spb' (wlan0) as default for IPv4 routing and DNS
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.2446] device (wlan0): Activation: successful, device activated.
May 19 22:24:20 lBratSinot NetworkManager[1956]: <info>  [1589916260.2461] manager: NetworkManager state is now CONNECTED_GLOBAL
May 19 22:24:21 lBratSinot NetworkManager[1956]: <info>  [1589916261.7432] policy: ipv6-pd: no device to obtain a subnet to share on wlan0 from
Весь цимес в том, что если выполнить dhclient -v -6 -P -D LL wlan0 то адрес получится!
Спасибо сказали:
Аватара пользователя
bormant
Сообщения: 1354

Re: IPv6 на NetworkManager

Сообщение bormant »

Кто в настройках NM отвечает за DHCP (internal, dhcpcd, dhclient)?
Добавлено (09:00):
И еще: смущает то, что сообщение помечено «policy:», т.е. согласно заданной политики NM не знает на каком устройстве получать подсеть (с кем разделять ее знает — с wlan0, а где брать — не знает), а потому даже и не пытается ее получать

Код: Выделить всё

policy: ipv6-pd: no device to obtain a subnet to share on wlan0 from
Могу ошибаться, но копать нужно в сторону настроек самого NM.
Добавлено (09:12):
https://developer.gnome.org/NetworkManager/stable/settings-ipv6.html
method
string
IP configuration method. NMSettingIP4Config and NMSettingIP6Config both support "disabled", "auto", "manual", and "link-local". See the subclass-specific documentation for other values. In general, for the "auto" method, properties such as "dns" and "routes" specify information that is added on to the information returned from automatic configuration. The "ignore-auto-routes" and "ignore-auto-dns" properties modify this behavior. For methods that imply no upstream network, such as "shared" or "link-local", these properties must be empty. For IPv4 method "shared", the IP subnet can be configured by adding one manual IPv4 address or otherwise 10.42.x.0/24 is chosen. Note that the shared method must be configured on the interface which shares the internet to a subnet, not on the uplink which is shared.
Спасибо сказали:
BratSinot
Сообщения: 812
ОС: Slackware64

Re: IPv6 на NetworkManager

Сообщение BratSinot »

bormant писал(а):
20.05.2020 08:53
Кто в настройках NM отвечает за DHCP (internal, dhcpcd, dhclient)?
dhcpd (попробовал dhclient таже петрушка):

Код: Выделить всё

root@lBratSinot NetworkManager cat /etc/NetworkManager/conf.d/00-dhcp-client.conf 
[main]
# Choose a DHCP client below. Upstream recommends internal, but results may vary.
# dhcpcd is the DHCP client usually used by Slackware:
dhcp=dhcpcd
# dhclient is the ISC reference DHCP client, part of the dhcp package:
#dhcp=dhclient
# This is a simple DHCP client that is built into NetworkManager:
#dhcp=internal
bormant писал(а):
20.05.2020 08:53
Добавлено (20.05.2020 09:00):
И еще: смущает то, что сообщение помечено «policy:», т.е. согласно заданной политики NM не знает на каком устройстве получать подсеть (с кем разделять ее знает — с wlan0, а где брать — не знает), а потому даже и не пытается ее получать
Вот в том-то и проблема я так и не нашел никого с похожей проблемой или вообще что это значит. Пытался найти по запросам "networkmanager ipv6 prefix delegation" но тоже ничего путного.

А вообще для shared написано, что:

Код: Выделить всё

Note that the shared method must be configured on the interface which shares the internet to a subnet, not on the uplink which is shared.
только не очень понимаю что это значит, что с этим делать и почему "dhclient -v -6 -P -D LL wlan0" работает.
Спасибо сказали:
Ответить