You are not logged in.

#1 2019-09-16 06:09:58

anon2019
Member
Registered: 2019-09-16
Posts: 4

[SOLVED] Problem with dhcpcd(strange behavior)

Hi. Have trouble with dhcpcd. Sometimes, when i run # dhcpcd wlo1, when i connected throw wpa_supplicant to my router, i have something like this:

 # dhcpcd wlo1
DUID 00:04:33:44:43:35:33:32:38:37:4a:35:d4:c9:ef:6d:b0:66
wlo1: IAID 2c:c7:3f:f9
wlo1: adding address fe80::662e:686d:a3c8:740d
wlo1: soliciting an IPv6 router
wlo1: rebinding lease of 192.168.1.34
wlo1: NAK: from 192.168.1.1
wlo1: soliciting a DHCP lease
wlo1: no IPv6 Routers available
timed out
dhcpcd exited

Or sometimes like this:

# dhcpcd wlo1
DUID 00:04:33:44:43:35:33:32:38:37:4a:35:d4:c9:ef:6d:b0:66
wlo1: IAID 2c:c7:3f:f9
wlo1: soliciting a DHCP lease
wlo1: soliciting an IPv6 router
wlo1: no IPv6 Routers available
timed out
dhcpcd exited

And if it works correct, it shows this:

# dhcpcd wlo1
wlo1: waiting for carrier
wlo1: carrier acquired
DUID 00:04:33:44:43:35:33:32:38:37:4a:35:d4:c9:ef:6d:b0:66
wlo1: IAID 2c:c7:3f:f9
wlo1: adding address fe80::662e:686d:a3c8:740d
wlo1: soliciting a DHCP lease
wlo1: soliciting an IPv6 router
wlo1: offered 192.168.1.34 from 192.168.1.1
wlo1: probing address 192.168.1.34/24
wlo1: leased 192.168.1.34 for 604800 seconds
wlo1: adding route to 192.168.1.0/24
wlo1: adding default route via 192.168.1.1
forked to background, child pid 1394

And if i no mistake, dhcpcd -4 wlo1, not help sad (but i will try test one more time, problem old on my laptop, but sometimes it is appear)
Yesterday i tryed to fix it, and i spoiled wlo1 interface smile

$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether d4:c9:ef:6d:b0:66  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 296  bytes 39185 (38.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 296  bytes 39185 (38.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::662e:686d:a3c8:740d  prefixlen 64  scopeid 0x20<link>
        ether fa:df:2c:c7:3f:f9  txqueuelen 1000  (Ethernet)
        RX packets 22  bytes 7712 (7.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 52  bytes 15800 (15.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

May be you know how fix wlo1 smile (there is show (Ethernet), before it isn't like this). it doesn't bother me, now i use wlo1, and it works normal.

Last edited by anon2019 (2019-09-16 19:40:36)

Offline

#2 2019-09-16 14:42:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,763

Re: [SOLVED] Problem with dhcpcd(strange behavior)

What is the output of

systemctl list-unit-files --state enabled

?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2019-09-16 19:01:39

anon2019
Member
Registered: 2019-09-16
Posts: 4

Re: [SOLVED] Problem with dhcpcd(strange behavior)

Now i use Gnome DE (before was lxde), may be it is changes something(in gnome, i connecting throw GUI).

 sudo systemctl list-unit-files --state enabled
UNIT FILE                                   STATE  
autovt@.service                             enabled
bluetooth.service                           enabled
dbus-org.bluez.service                      enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service  enabled
dbus-org.freedesktop.timesync1.service      enabled
display-manager.service                     enabled
gdm.service                                 enabled
getty@.service                              enabled
NetworkManager-dispatcher.service           enabled
NetworkManager-wait-online.service          enabled
NetworkManager.service                      enabled
postgresql.service                          enabled
systemd-timesyncd.service                   enabled
remote-fs.target                            enabled

But if you now don't see something strange, just say please, what it could be, just for future smile

Offline

#4 2019-09-16 19:06:03

loqs
Member
Registered: 2014-03-06
Posts: 8,779

Re: [SOLVED] Problem with dhcpcd(strange behavior)

NetworkManager.service                      enabled

Did you disable NetworkManager from managing wlo1?

Offline

#5 2019-09-16 19:13:44

anon2019
Member
Registered: 2019-09-16
Posts: 4

Re: [SOLVED] Problem with dhcpcd(strange behavior)

loqs wrote:
NetworkManager.service                      enabled

Did you disable NetworkManager from managing wlo1?

No smile, i just after boot, start my sript(it just choses file with config, and starts wpa_supplicant and dhcpcd)
But trouble in NetworkManager, yes?

Offline

#6 2019-09-16 19:16:22

loqs
Member
Registered: 2014-03-06
Posts: 8,779

Re: [SOLVED] Problem with dhcpcd(strange behavior)

Yes as noted here multiple programs trying to control the same interface leads to the strange behavior you are seeing.

Offline

#7 2019-09-16 19:18:31

anon2019
Member
Registered: 2019-09-16
Posts: 4

Re: [SOLVED] Problem with dhcpcd(strange behavior)

loqs wrote:

Yes as noted here multiple programs trying to control the same interface leads to the strange behavior you are seeing.

Okay, thanks for all who helps me smile, good luck!
Solved.

Offline

Board footer

Powered by FluxBB