You are not logged in.
My problem is that i do not get an ipv6 adress and ipv6 name resolving using netctl to configure my network.
The problem seems to be that dhcpcd is started by netctl with the -4 option (only ipv6) as seen here:
● netctl@wlp3s0\x2dTCBAI.service - Networking for netctl profile wlp3s0-TCBAI
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: active (exited) since Sat 2018-03-17 13:40:26 CET; 26min ago
Docs: man:netctl.profile(5)
Process: 449 ExecStart=/usr/lib/netctl/network start wlp3s0-TCBAI (code=exited, status=0/SUCCESS)
Main PID: 449 (code=exited, status=0/SUCCESS)
Status: "online"
Tasks: 2 (limit: 4915)
Memory: 9.3M
CGroup: /system.slice/system-netctl.slice/netctl@wlp3s0\x2dTCBAI.service
├─459 wpa_supplicant -q -B -P /run/wpa_supplicant-wlp3s0.pid -i wlp3s0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlp3s0.conf
└─656 dhcpcd -4 -q -t 30 -L wlp3s0
Mär 17 13:40:26 archrune systemd[1]: Started Networking for netctl profile wlp3s0-TCBAI.
Mär 17 13:40:26 archrune dhcpcd[607]: DUID 00:01:00:01:22:29:f6:60:a0:88:b4:e6:99:f8
Mär 17 13:40:26 archrune dhcpcd[607]: wlp3s0: IAID b4:e6:99:f8
Mär 17 13:40:26 archrune dhcpcd[607]: wlp3s0: rebinding lease of 192.168.2.104
Mär 17 13:40:26 archrune dhcpcd[607]: wlp3s0: probing address 192.168.2.104/24
Mär 17 13:40:30 archrune dhcpcd[607]: wlp3s0: leased 192.168.2.104 for 1814400 seconds
Mär 17 13:40:30 archrune dhcpcd[607]: wlp3s0: adding route to 192.168.2.0/24
Mär 17 13:40:30 archrune dhcpcd[607]: wlp3s0: adding default route via 192.168.2.1
Mär 17 13:40:31 archrune dhcpcd[607]: forked to background, child pid 656
Mär 17 13:40:31 archrune network[449]: Started network profile 'wlp3s0-TCBAI'
Netctl profile:
Description='Automatically generated profile by wifi-menu'
Interface=wlp3s0
Connection=wireless
Security=wpa
ESSID=TCBAI
IP=dhcp
IP6=stateless
Key=********
Is there any possybility to get rid of this -4 option?
If i start dhcpcd after starting the netctl profile without -4:
dhcpcd -q -t 30 -L wlp3s0
i get an ipv6 address and ipv6 name resolving.
The problem is already discussed in these threads but i did not figure out how to solve my problem.
https://bbs.archlinux.org/viewtopic.php?id=235379
https://bbs.archlinux.org/viewtopic.php?id=235137
Thanks!
Offline
Well, have you tried changing stateless to dhcp ? Then you can set dhcpcd.conf to slaac and have effectively the same thing.
ipv6rs # router solicitation
ipv6ra_autoconf # autoconfiguration
slaac hwaddr # or slaac private for privacy extensions
Last edited by Foucault (2018-03-17 17:49:32)
Offline
Well, have you tried changing stateless to dhcp ? Then you can set dhcpcd.conf to slaac and have effectively the same thing.
ipv6rs # router solicitation ipv6ra_autoconf # autoconfiguration slaac hwaddr # or slaac private for privacy extensions
Yes.
dhcpcd.conf:
slaac private
ipv6
ipv6ra_autoconf
ipv6rs
netctl:
IP=dhcp
IP6=dhcp
DHCP6Client=dhcpcd
With these settings i have for a few seconds an ipv6 address, but then the network fails, i get the following messages:
● netctl@wlp3s0\x2dTCBAI.service - Networking for netctl profile wlp3s0-TCBAI
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2018-03-17 19:40:16 CET; 2min 41s ago
Docs: man:netctl.profile(5)
Process: 2752 ExecStart=/usr/lib/netctl/network start wlp3s0-TCBAI (code=exited, status=1/FAILURE)
Main PID: 2752 (code=exited, status=1/FAILURE)
Mär 17 19:40:15 archrune network[2752]: DHCP IPv6 lease attempt failed on interface 'wlp3s0'
Mär 17 19:40:15 archrune dhcpcd[2942]: wlp3s0: carrier lost
Mär 17 19:40:15 archrune dhcpcd[2942]: wlp3s0: deleting route to 192.168.2.0/24
Mär 17 19:40:15 archrune dhcpcd[2942]: wlp3s0: deleting default route via 192.168.2.1
Mär 17 19:40:16 archrune network[2752]: Failed to bring the network up for profile 'wlp3s0-TCBAI'
Mär 17 19:40:16 archrune systemd[1]: netctl@wlp3s0\x2dTCBAI.service: Main process exited, code=exited, status=1/FAILURE
Mär 17 19:40:16 archrune dhcpcd[2942]: received SIGTERM, stopping
Mär 17 19:40:16 archrune dhcpcd[2942]: wlp3s0: removing interface
Mär 17 19:40:16 archrune dhcpcd[2942]: dhcpcd exited
Mär 17 19:40:16 archrune systemd[1]: netctl@wlp3s0\x2dTCBAI.service: Failed with result 'exit-code'.
with slaac hwaddr i dont even get an initial ipv6 address.
Last edited by friwiba (2018-03-17 18:51:23)
Offline
I do not understand why dhcpcd invoked via netctl is executed with the -4 option and how to change this (i want to get rid of this option)...
Offline
I believe this is because netctl assumes that you will launch a separate dhcpcd process with the -6 option for IPv6. At least this is what happens in my system
% pgrep -a dhcpcd
1555 dhcpcd -4 -q -t 30 -L enp3s0
1705 dhcpcd -6 -q -t 30 enp3s0
Do you have a separate -6 dhcpcd process?
Last edited by Foucault (2018-03-18 13:28:04)
Offline
With IP6=stateless i get:
$ pgrep -a dhcpcd
7734 dhcpcd -4 -q -t 30 -L wlp3s0
with IP6=dhcpcd the network will be established for a few seconds (i have an ipv6 address):
$ pgrep -a dhcpcd
8373 dhcpcd -4 -q -t 30 -L wlp3s0
8376 dhcpcd -6 -q -t 30 wlp3s0
but after ca. 5 seconds i get the following error:
network[8219]: DHCP IPv6 lease attempt failed on interface 'wlp3s0'
dhcpcd[8373]: wlp3s0: carrier lost
dhcpcd[8373]: wlp3s0: deleting route to 192.168.2.0/24
dhcpcd[8373]: wlp3s0: deleting default route via 192.168.2.1
network[8219]: Failed to bring the network up for profile 'wlp3s0-Funkblitz'
But, if i start dhcpcd from the commandline without any arguments, it is executed without the -4 option and i get an ipv4 and an ipv6 address. The -4 option is ipv4 only and ipv6 is deactivated.
Netctl starts dhcpcd with the -4 option and i could not figure out why. If it would start dhcpcd without the -4 option i would get an ipv6 Address.
Offline
This is a bug in dhcpcd-7.0.0 and dhcpcd-7.0.1.
It will be fixed in dhcpcd-7.0.2 when that is released shortly.
Offline