You are not logged in.

#1 2015-04-19 06:37:51

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Weird behavior for dhcpcd?

So I was having some problems with my internet, both wired and Wifi, and after a while I had to unplug and plug the cable or disable/enable wifi in order to keep using the internet.
i decided to delete every file on the /var/lib/dhcpcd/ folder and after that my internet is working with no problem at all [at least until now].

a few minutes ago I decided to check the status of dhcpcd and this was what I got

systemctl status dhcpcd
----------------------------------------------------------------------
abr 19 01:30:51 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:30:55 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:30:59 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:02 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:07 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:11 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:15 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:19 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:22 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 01:31:27 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254

as you can see this message repeats itself every 4-5 seconds, but I don't know if it is something wrong or expected, since I'm using my internet with no problem at all[yet].

Last edited by MGu3l (2015-04-19 06:38:11)


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#2 2015-04-19 06:51:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Weird behavior for dhcpcd?

Are you using a Fritz box?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-04-19 06:57:22

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Weird behavior for dhcpcd?

Nope, in fact I don't think I have seen one of those in my country tongue I'm using a technicolor tc7300, it looks pretty much like this one:

http://bit.ly/1FWB7ao

I just found out that this behavior is only happening when connecting to the internet through the Ethernet Port,

systemctl status dhcpcd
---------------------------------------------------
abr 19 02:18:30 Arch dhcpcd[399]: enp0s9: reject NAK via 192.168.1.254
abr 19 02:18:30 Arch dhcpcd[399]: enp0s9: carrier lost
abr 19 02:18:30 Arch dhcpcd[399]: wlp1s0b1: adding route to 192.168.1.0/24
abr 19 02:18:30 Arch dhcpcd[399]: wlp1s0b1: adding default route via 192.168.1.254
abr 19 02:18:35 Arch dhcpcd[399]: enp0s6f1u4c4i2: removing interface

right now it's 2:29, 11 minutes have passed and there's no other message. So do you know wht could be the ethernet problem?

Last edited by MGu3l (2015-04-19 07:30:59)


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#4 2015-04-20 07:10:34

rsmarples
Member
Registered: 2009-05-12
Posts: 288

Re: Weird behavior for dhcpcd?

The DHCP NAK message is missing the required ServerID option - this is not RFC compliant.
Remove the restriction in /etc/dhcpcd.conf and it may start working - well accept the NAK and move onto the next one.

Offline

#5 2015-04-20 14:57:27

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Weird behavior for dhcpcd?

In fact I just deleted  that file [since I never wrote anything on it I suppose the system would create another file with the config needed] and it started working again, both Wifi and ethernet.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#6 2015-04-20 17:09:15

rsmarples
Member
Registered: 2009-05-12
Posts: 288

Re: Weird behavior for dhcpcd?

That works smile

Offline

#7 2015-04-20 19:47:56

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: Weird behavior for dhcpcd?

can you mark thread as solved please if your good to go?


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

Board footer

Powered by FluxBB