Something odd happeinig with my Linux box (its VM with bridge interface).
I have set eth0 to get IP address from DHCP. It seems like it reaches DHCP servers and gets IP but after all it releases it immediately and it repeats it in a loop until time out.
With this same DHCP server I have tried with WinXP box (VM with bridge interface also) and it simply works.
I have rebooted my router and it didnt help. If I assign static IP it works.
I see in a log MAC addr of my VM host:
hardware address 08:11:96:55:94:84 claims 192.168.0.119 instead of vm guest.
Im out of ideas whats wrong :/. Maybe someone of you can advise something
My system Slackware 14, dhcpcd 5.5.6
Here is a linting of dhcpcd.
Code:
# /etc/rc.d/rc.inet1 start
Polling for DHCP server on interface eth0:
dhcpcd[2326]: version 5.5.6 starting
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: broadcasting for a lease
dhcpcd[2326]: eth0: offered 192.168.0.119 from 192.168.0.1
dhcpcd[2326]: eth0: acknowledged 192.168.0.119 from 192.168.0.1
dhcpcd[2326]: eth0: checking for 192.168.0.119
dhcpcd[2326]: eth0: hardware address 08:11:96:55:94:84 claims 192.168.0.119 - MAC of VM host
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: broadcasting for a lease
dhcpcd[2326]: eth0: offered 192.168.0.120 from 192.168.0.1
dhcpcd[2326]: eth0: acknowledged 192.168.0.120 from 192.168.0.1
dhcpcd[2326]: eth0: checking for 192.168.0.120
dhcpcd[2326]: eth0: hardware address 08:11:96:55:94:84 claims 192.168.0.120 - MAC of VM host
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: broadcasting for a lease
dhcpcd[2326]: eth0: offered 192.168.0.121 from 192.168.0.1
dhcpcd[2326]: eth0: acknowledged 192.168.0.121 from 192.168.0.1
dhcpcd[2326]: eth0: checking for 192.168.0.121
dhcpcd[2326]: eth0: hardware address 08:11:96:55:94:84 claims 192.168.0.121 - MAC of VM host
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: timed out
dhcpcd[2326]: allowing 8 seconds for IPv4LL timeout
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: no IPv6 Routers available
dhcpcd[2326]: eth0: sending IPv6 Router Solicitation
dhcpcd[2326]: eth0: sendmsg: Cannot assign requested address
dhcpcd[2326]: eth0: broadcasting for a lease
dhcpcd[2326]: eth0: offered 192.168.0.122 from 192.168.0.1
dhcpcd[2326]: timed out
/var/state/dhcp/dhclient.leases is empty
Here is log from DHCP server (D-Link DIR-300):
Code:
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:34 2014
[Message:102]DHCP: Server receive DISCOVER from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:36 2014
[Message:103]DHCP: Server sending OFFER of 192.168.0.119.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:36 2014
[Message:104]DHCP: Server receive REQUEST from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:36 2014
[Message:105]DHCP: Server sending ACK to 192.168.0.119. (Lease time = 604800)
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:46 2014
[Message:106]DHCP: Server receive DISCOVER from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:48 2014
[Message:107]DHCP: Server sending OFFER of 192.168.0.120.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:48 2014
[Message:108]DHCP: Server receive REQUEST from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:48 2014
[Message:109]DHCP: Server sending ACK to 192.168.0.120. (Lease time = 604800)
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:20:58 2014
[Message:110]DHCP: Server receive DISCOVER from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:00 2014
[Message:111]DHCP: Server sending OFFER of 192.168.0.121.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:00 2014
[Message:112]DHCP: Server receive REQUEST from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:00 2014
[Message:113]DHCP: Server sending ACK to 192.168.0.121. (Lease time = 604800)
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:01 2014
[Message:114]Web login failure from 192.168.0.101
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:07 2014
[Message:115]Web login failure from 192.168.0.101 yes, it was me
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:10 2014
[Message:116]DHCP: Server receive DISCOVER from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:12 2014
[Message:117]DHCP: Server sending OFFER of 192.168.0.122.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:12 2014
[Message:118]DHCP: Server receive REQUEST from 00:0c:29:8f:46:e3.
--------------------------------------------------------------------------------------------
[Time]Mon Sep 29 19:21:12 2014
[Message:119]DHCP: Server sending ACK to 192.168.0.122. (Lease time = 604800)
--------------------------------------------------------------------------------------------