You are not logged in.

#1 2016-03-10 04:37:47

ruddy32
Member
Registered: 2016-02-29
Posts: 27

[DHCP] IPV4 not provided (solved)

I have configure systemd-networkd with following settings :

[Match]
Name=enp2s0
[Network]
DHCP=ipv4

systemd-networkd and systemd-resolved are enabled.

ip a does not show ipv4 for enp device.

journalctl -b show error :

enp2s0: Gained carrier
enp2s0: Gained IPv6LL
enp2s0: Starting DHCPv6 client after NDisc timeout failed: Invalid argument

Why ipv4 is not provided as defined in the configuration file ?

Last edited by ruddy32 (2016-03-13 20:52:01)

Offline

#2 2016-03-10 06:14:42

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

ruddy32 wrote:

ip a does not show ipv6 only for enp device.

What does it show? Is there an IPv4 DHCP server on the network segment? What happens if you do:

systemctl stop systemd-networkd
systemctl start dhcpcd@enp2s0.service

Offline

#3 2016-03-10 07:00:09

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

I correct my sentence

ruddy32 wrote:

ip a does not show ipv6 onbly ipv4 for enp device.


There is a DHCP server on the network.

Stopping systemd-networkd service and starting dhcpcd service shows

DUID: ...
enp2s0: IAID ...
wlp4s0: waiting for carrier
enp2s0: soliciting an IPv6 router
enp2s0: soliciting a DHCP lease
enp2s0: no IPv6 Routers available

Last edited by ruddy32 (2016-03-10 07:20:37)

Offline

#4 2016-03-10 07:17:50

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [DHCP] IPV4 not provided (solved)

The stock dhcpcd.conf should work fine. Are you sure your dhcp server is offering ipv4 leases?

Offline

#5 2016-03-10 07:22:37

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

It works fine two days ago. I have installed avahi since this time. Is it possible that avahi change dhcp behavior ?

Offline

#6 2016-03-10 07:24:01

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [DHCP] IPV4 not provided (solved)

I don't know if avahi can interfere with getting a lease. But perhaps you can try stopping it and restart the dhcpcd service.

Offline

#7 2016-03-10 07:38:50

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

I have already done it. It does not fix the problem.

Offline

#8 2016-03-10 16:11:45

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

Assuming your network infrastructure is all working properly (don't take this for granted), it's probably a hardware or driver problem.

Are you receiving any packets at all? You can check with

ip -s link show dev enp2s0

Check before and after starting dhcpcd and compare receive packet counts.

Do you have another Linux box on the network that you could run tcpdump or wireshark on to see if your DHCP Discover packets are actually getting on to the network? These are broadcast so all nodes should see them.

ps. Is this the same box as in [1] with all the ACPI and PCIe errors?

[1] https://bbs.archlinux.org/viewtopic.php … 3#p1608543

Offline

#9 2016-03-10 21:25:46

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

[1] This the same box.

The system is installed with Gnome and NetworkManager. Starting NetworkManager, it shows :

DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 5
...
<warn> (enp2s0): DHCPv4 request time out. 

I have anothe box installed with Sabayon running with the DHCP server.

Last edited by ruddy32 (2016-03-10 21:25:58)

Offline

#10 2016-03-10 21:59:28

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

ruddy32 wrote:

I have anothe box installed with Sabayon running with the DHCP server.

Great. Then you should be able to access the DHCP server log directly and see if the server is actually receiving the DHCP Discover packets.

Also, did you get the receive packet count from enp2s0 as i suggested previously?

Offline

#11 2016-03-11 22:42:10

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

The second box receive DHCPDISCOVER request from the installed PC.

The DHCP server (Internet provider box) has registered the PC MAC addr, but no IP addr is assigned. Why the DHCP client do not receive IP addr from server ?

I'm able to configure the PC with static address.

Last edited by ruddy32 (2016-03-11 22:46:05)

Offline

#12 2016-03-11 23:06:00

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

Ok good, so we know the packets get out. Can you capture the DHCP sequence with tcpdump or wireshark on the box you are having trouble with? If it were working you would see something to the effect of:
-> DISCOVER
<- OFFER
-> REQUEST
<- ACKNOWLEDGE

Would be good to see which step is not happening.

Offline

#13 2016-03-12 00:09:33

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

Using tshark -i enp2s0 -w /tmp/my_file

  1 0.000000000      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x6caf45b
  2 3.388541529 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
  5 7.628161374      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x6caf45b
  6 26.844935267 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 86 Neighbor Solicitation for fe80::ae72:89ff:fe1d:bc9e from 68:15:90:23:6c:86
  7 28.747955573 mydhcp_ip -> 192.168.21.255 BROWSER 250 Local Master Announcement LIVEBOX, Workstation, Server, Print Queue Server, Xenix Server, NT Workstation, NT Server, Master Browser, DFS server
  8 28.748441352 mydhcp_ip -> 192.168.21.255 BROWSER 250 Domain/Workgroup Announcement WORKGROUP, NT Workstation, Domain Enum
 11 43.387433855 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
 12 51.024852766 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 86 Neighbor Solicitation for myipv6 from 68:15:90:23:6c:86
 13 57.079209882 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 118 Echo (ping) request id=0x0337, seq=0, hop limit=255
 17 83.387160189 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
 18 84.346568162 mydhcp_ip -> 224.0.0.251  IGMPv2 60 Membership Report group 224.0.0.251
 21 101.244107782 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 86 Neighbor Solicitation for fe80::ae72:89ff:fe1d:bc9e from 68:15:90:23:6c:86
 22 110.810619985           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 23 110.827339554           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 24 110.834507976      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0xcb3f353f
 25 110.940737258           :: -> ff02::1:ffb1:bf66 ICMPv6 78 Neighbor Solicitation for myipv6
 26 111.944109751 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 27 112.371727648 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 28 112.500679862 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 29 116.026501794      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0xcb3f353f
 30 116.372081606 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 31 120.375303503 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 32 122.250772537      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0xcb3f353f
 33 123.386123895 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
 36 132.841411523      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0xcb3f353f
 37 150.622518942      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0xcb3f353f
 41 156.407298917           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 42 156.431189174      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x5f5d3e48
 43 156.557388060           :: -> ff02::1:ffb1:bf66 ICMPv6 78 Neighbor Solicitation for myipv6
 44 156.784018113           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 45 157.560757513 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 46 157.561606825 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 47 158.477348995 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 48 161.374832106 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 49 163.385531759 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
 50 164.364159142      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x5f5d3e48
 51 165.375023922 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 52 168.655239891 mydhcp_ip -> 224.0.0.251  IGMPv2 60 Membership Report group 224.0.0.251
 53 175.642977730 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 86 Neighbor Solicitation for fe80::ae72:89ff:fe1d:bc9e from 68:15:90:23:6c:86
 54 177.204888441 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 118 Echo (ping) request id=0x0337, seq=0, hop limit=255
 55 177.204957429 myipv6 -> ff02::1:ff23:6c86 ICMPv6 86 Neighbor Solicitation for fe80::6a15:90ff:fe23:6c86 from 40:8d:5c:b1:bf:66
 56 177.205732498 fe80::6a15:90ff:fe23:6c86 -> myipv6 ICMPv6 86 Neighbor Advertisement fe80::6a15:90ff:fe23:6c86 (rtr, sol, ovr) is at 68:15:90:23:6c:86
 57 177.205773835 myipv6 -> fe80::6a15:90ff:fe23:6c86 ICMPv6 118 Echo (ping) reply id=0x0337, seq=0, hop limit=64
 58 177.217779104 fe80::6a15:90ff:fe23:6c86 -> ff02::1      ICMPv6 86 Neighbor Solicitation for myipv6 from 68:15:90:23:6c:86
 59 177.217830177 myipv6 -> fe80::6a15:90ff:fe23:6c86 ICMPv6 86 Neighbor Advertisement myipv6 (sol, ovr) is at 40:8d:5c:b1:bf:66
 60 177.336020799 fe80::6a15:90ff:fe23:6c86 -> ff02::fb     MDNS 152 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 61 177.337461887 mydhcp_ip -> 224.0.0.251  MDNS 132 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 62 178.356117333 fe80::6a15:90ff:fe23:6c86 -> ff02::fb     MDNS 152 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 63 178.357473187 mydhcp_ip -> 224.0.0.251  MDNS 132 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 64 180.365929559 fe80::6a15:90ff:fe23:6c86 -> ff02::fb     MDNS 152 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 65 180.368418770 mydhcp_ip -> 224.0.0.251  MDNS 132 Standard query 0x0000 PTR 6.6.f.b.1.b.e.f.f.f.c.5.d.8.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question
 66 182.928770901      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x5f5d3e48
 67 183.855433512 Sagemcom_23:6c:86 -> Broadcast    HomePlug 60 MAC Management
 68 183.855596935 Sagemcom_23:6c:86 -> Broadcast    HomePlug AV 60 MAC Management, Get Bridge Informations Request
 69 186.407414119 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 70 186.407420635 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 71 186.417498913 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 72 186.417505643 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 73 188.632115719 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 74 188.632121829 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 75 188.642247772 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 76 188.642275277 myipv6 -> ff02::1      BJNP 78 Scanner Command: Discover
 77 198.454023261      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x5f5d3e48
 78 201.410614603           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 79 201.437920086      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x1049a944
 80 202.090710635           :: -> ff02::1:ffb1:bf66 ICMPv6 78 Neighbor Solicitation for myipv6
 81 202.124012055           :: -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 82 203.094091372 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 83 203.371609909 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 84 203.385113898 mydhcp_ip -> 224.0.0.1    IGMPv2 60 Membership Query, general
 85 203.564722661 mydhcp_ip -> 224.0.0.251  IGMPv2 60 Membership Report group 224.0.0.251
 86 203.604016272 myipv6 -> ff02::16     ICMPv6 90 Multicast Listener Report Message v2
 87 207.371934231 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 88 207.736478669      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x1049a944
 89 211.375125557 myipv6 -> ff02::2      ICMPv6 62 Router Solicitation
 90 213.875109756 Sagemcom_23:6c:86 -> Broadcast    HomePlug 60 MAC Management
 91 213.875290320 Sagemcom_23:6c:86 -> Broadcast    HomePlug AV 60 MAC Management, Get Bridge Informations Request
 92 219.168719418      0.0.0.0 -> 255.255.255.255 DHCP 342 DHCP Discover - Transaction ID 0x1049a944

Offline

#14 2016-03-12 00:35:24

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

Looks like a problem with the DHCP server. The client keeps sending Discovers but the server never responds.

Offline

#15 2016-03-12 08:58:13

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

Other connected boxes uses dhcp with success. I guess there is a problem on this client.

The server shows 2 connected clients only.

Last edited by ruddy32 (2016-03-12 08:59:33)

Offline

#16 2016-03-12 09:24:38

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [DHCP] IPV4 not provided (solved)

There is this hint in the wiki: https://wiki.archlinux.org/index.php/Av … IP_address
Did you try it?

Offline

#17 2016-03-12 09:50:28

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

It does not solve the problem. The system is using NetworkManager.

The ethernet interface is 8168 and installed driver is r8169. Is it a problem ?

I found this post.

Last edited by ruddy32 (2016-03-12 09:51:20)

Offline

#18 2016-03-12 14:27:43

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [DHCP] IPV4 not provided (solved)

There are some revisions of the r8168 chip that have had problems, but it worked on your system before with the driver. Still, to try there is https://www.archlinux.org/packages/comm … _64/r8168/

Offline

#19 2016-03-13 02:28:22

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [DHCP] IPV4 not provided (solved)

ruddy32 wrote:

I have configure systemd-networkd with following settings :

ruddy32 wrote:

The system is using NetworkManager.

Which is it? Not both I hope.

Post #13 says DISCOVER's go out but no OFFER's come back. If there is connectivity, which can be verified by:

sudo arping -I enp2s0 <dhcp_server_ip>

then the problem is on the server. If the client sends a DISCOVER but no OFFER comes back there is nothing the client can do.

Is it possible the server previously gave a lease to this MAC address with a different IAID and will therefore not give another lease on the MAC? You might try configuring enp2s0 with a different MAC address.

Offline

#20 2016-03-13 20:51:42

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [DHCP] IPV4 not provided (solved)

I connect the box on another network with DHCP server. The box gets an IP address from the new DHCP server.

I do a test with the initial network and the box get an address. I don't know what goes wrong.

Thanks for you support.

Offline

#21 2016-03-13 22:57:45

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [DHCP] IPV4 not provided (solved)

ruddy32 wrote:

I connect the box on another network with DHCP server. The box gets an IP address from the new DHCP server.

I do a test with the initial network and the box get an address. I don't know what goes wrong.

If you go back to dhcpcd, you can test what branch means in the last sentence by simply changing /etc/dhcpcd.duid - https://wiki.archlinux.org/index.php/Dh … Identifier
maybe try also https://wiki.archlinux.org/index.php/Dh … nt_routers

Offline

Board footer

Powered by FluxBB