You are not logged in.

#1 2015-04-18 20:16:42

victor175
Member
Registered: 2015-04-16
Posts: 3

Network connection failure - dhcpcd does not work properly

Hello,

My network connetion is fine most of the time but when I put the machine to a sleep state for a few times the dcpcd command does not work as usual and therefore I cannot connect to the network.

Here is the output I get when this occures:

sudo dhcpcd enp7s0
DUID 00:01:00:01:1c:a9:7c:5a:e0:db:55:f3:ef:15
enp7s0: IAID 55:f3:ef:15
enp7s0: soliciting an IPv6 router
enp7s0: soliciting a DHCP lease
enp7s0: no IPv6 Routers available
timed out
dhcpcd exited

How can I fix this the next time it happens?

Thanks.

Offline

#2 2015-04-18 20:25:44

LeonardK
Guest

Re: Network connection failure - dhcpcd does not work properly

Hello, please use code takes in future:

this is in code tags

Have you tried doing dhcpcd -k before issueing the command again, if this does not work pkill dhcpcd. Often solves it for me.

It is generally recommended to include - if possible - the error in the head. If dhcpcd *would* work properly you probably wouldn't post this anyways ;-)
Eg.: "dhcpcd - no IPv6 Routers available after sleep"

Additionally: I recommend - instead of manually "dhcpcd-ing" just using netctl-auto, which does this automatically.

#3 2015-04-19 19:36:57

victor175
Member
Registered: 2015-04-16
Posts: 3

Re: Network connection failure - dhcpcd does not work properly

Any other ideas? Because I have tried killing the process, but it did not solve it ( kill - sigkill [id] ).

Offline

#4 2015-04-19 21:50:32

LeonardK
Guest

Re: Network connection failure - dhcpcd does not work properly

Can you provide a dmesg from the time you are running dhcpcd?
Maybe manually doing

ip link set down dev enp7s0
ip link set up dev enp7s0

might help.

#5 2015-04-19 22:27:40

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: Network connection failure - dhcpcd does not work properly

@OP: do you actually have an IPV6 connection?

If not, you can try turning off the IPV6 stack by using this kernel parameter:

ipv6.disable=1

Jin, Jîyan, Azadî

Offline

#6 2015-04-22 12:36:20

victor175
Member
Registered: 2015-04-16
Posts: 3

Re: Network connection failure - dhcpcd does not work properly

The proposal from post #4 did not get any results.

Where exactly should I put

ipv6.disable=1

?

Also how should I restart my network clients, or something like that - I think it may help.

Offline

#7 2015-04-22 18:15:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Network connection failure - dhcpcd does not work properly

victor175 wrote:

Where exactly should I put

ipv6.disable=1

?

It's a kernel parameter: https://wiki.archlinux.org/index.php/Kernel_parameters , as Head_on_a_Stick stated.

Offline

Board footer

Powered by FluxBB