You are not logged in.

#1 2012-08-16 11:32:28

mpelikan
Member
Registered: 2012-06-26
Posts: 5

dhcpcd does not assign IP address from dhcp server

After yesterday's update, I booted the system but dhcpcd didnť assign IP address as usual. I tried to run dhcpcd manualy and it showed this:

# dhcpcd eth0
dhcpcd[8455]: version 5.6.0 starting
dhcpcd[8455]: eth0: sending IPv6 Router Solicitation
dhcpcd[8455]: eth0: broadcasting for a lease
dhcpcd[8455]: eth0: reject DHCP 192.168.12.11 via 192.168.15.254
dhcpcd[8455]: eth0: Router Advertisement from fe80::210:db00:eff:1002
dhcpcd[8455]: eth0: did not fork due to an absent RDNSS option in the RA
dhcpcd[8455]: eth0: reject DHCP 192.168.12.11 via 192.168.15.254

I installed dhclient from repsitories and started it with

dhclient eth0

. I received IP address as usual.

I suppose that it is caused when trying to assign IPv6 address.

Any clue if there is a bug in dhcpcd as there were no changes at DHCP server side?

Offline

#2 2012-08-19 09:37:50

fredson
Member
Registered: 2012-06-21
Posts: 4

Re: dhcpcd does not assign IP address from dhcp server

Same Problem.

Downgrading to dhcpcd-5.5.6-1.i686 did it for me, so far.

Has anyone more on that?

###EDIT###
Here's another workaround, sticking with dhcpcd 5.6:

Last edited by fredson (2012-08-19 21:02:47)

Offline

#3 2013-06-16 15:13:42

gkjarch
Member
Registered: 2013-03-31
Posts: 22

Re: dhcpcd does not assign IP address from dhcp server

Same problem on VirtualBox.

VBox version: 4.2.12.
Network: Host-only. (NAT is OK.)
Host OS: WinXP SP3 share internet connection.

The odd is ping server is OK, but can not update.

Here is output:

$ sudo systemctl restart dhcpcd@eth0
$ sudo systemctl status dhcpcd@eth0
dhcpcd@eth0.service - dhcpcd on eth0
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
   Active: active (running) since Sun 2013-06-16 22:42:52 HKT; 3s ago
  Process: 611 ExecStop=/usr/sbin/dhcpcd -x %I (code=exited, status=0/SUCCESS)
  Process: 615 ExecStart=/usr/sbin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)
 Main PID: 623 (dhcpcd)
   CGroup: name=systemd:/system/dhcpcd@.service/dhcpcd@eth0.service
           └─623 /usr/sbin/dhcpcd -q -w eth0

Jun 16 22:42:46 arch dhcpcd[615]: version 5.6.8 starting
Jun 16 22:42:46 arch dhcpcd[615]: eth0: sending IPv6 Router Solicitation
Jun 16 22:42:46 arch dhcpcd[615]: eth0: rebinding lease of 192.168.0.130
Jun 16 22:42:46 arch dhcpcd[615]: eth0: acknowledged 192.168.0.130 from 192.168.0.1
Jun 16 22:42:46 arch dhcpcd[615]: eth0: checking for 192.168.0.130
Jun 16 22:42:47 arch dhcpcd[615]: eth0: Router Advertisement from fe80::a00:27ff:f...cc7
Jun 16 22:42:47 arch dhcpcd[615]: eth0: did not fork due to an absent RDNSS option... RA
Jun 16 22:42:52 arch dhcpcd[615]: eth0: leased 192.168.0.130 for 604800 seconds
Jun 16 22:42:52 arch dhcpcd[615]: forked to background, child pid 623
Jun 16 22:42:52 arch systemd[1]: Started dhcpcd on eth0.

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.130  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2002:7419:6757:4:a00:27ff:fec1:977b  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::a00:27ff:fec1:977b  prefixlen 64  scopeid 0x20<link>
        inet6 fec0::4:a00:27ff:fec1:977b  prefixlen 64  scopeid 0x40<site>
        ether 08:00:27:c1:97:7b  txqueuelen 1000  (Ethernet)
        RX packets 47492  bytes 3713187 (3.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13109  bytes 110482516 (105.3 MiB)
        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 0  (Local Loopback)
        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

$ ping -c 3 mirrors.163.com
PING mirrors.163.com (123.58.173.89) 56(84) bytes of data.
64 bytes from 123.58.173.89: icmp_seq=1 ttl=54 time=55.2 ms
64 bytes from 123.58.173.89: icmp_seq=2 ttl=54 time=56.2 ms
64 bytes from 123.58.173.89: icmp_seq=3 ttl=54 time=54.1 ms

--- mirrors.163.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 54.198/55.239/56.242/0.834 ms

$ sudo pacman -Syyu
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.163.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.163.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirrors.163.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed to update community (download library error)
error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed to update archlinuxfr (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)

Offline

#4 2013-06-16 15:24:22

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

Re: dhcpcd does not assign IP address from dhcp server

Have you tried other mirrors?

Offline

#5 2013-06-16 15:52:19

gkjarch
Member
Registered: 2013-03-31
Posts: 22

Re: dhcpcd does not assign IP address from dhcp server

karol wrote:

Have you tried other mirrors?

When using NAT, update is OK.

$ sudo systemctl restart dhcpcd@eth0
$ sudo systemctl status dhcpcd@eth0
dhcpcd@eth0.service - dhcpcd on eth0
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
   Active: active (running) since Sun 2013-06-16 23:43:08 HKT; 6s ago
  Process: 910 ExecStop=/usr/sbin/dhcpcd -x %I (code=exited, status=0/SUCCESS)
  Process: 914 ExecStart=/usr/sbin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)
 Main PID: 919 (dhcpcd)
   CGroup: name=systemd:/system/dhcpcd@.service/dhcpcd@eth0.service
           └─919 /usr/sbin/dhcpcd -q -w eth0

Jun 16 23:43:03 arch dhcpcd[914]: version 5.6.8 starting
Jun 16 23:43:03 arch dhcpcd[914]: eth0: sending IPv6 Router Solicitation
Jun 16 23:43:03 arch dhcpcd[914]: eth0: rebinding lease of 10.0.2.15
Jun 16 23:43:03 arch dhcpcd[914]: eth0: acknowledged 10.0.2.15 from 10.0.2.2
Jun 16 23:43:03 arch dhcpcd[914]: eth0: checking for 10.0.2.15
Jun 16 23:43:07 arch dhcpcd[914]: eth0: sending IPv6 Router Solicitation
Jun 16 23:43:08 arch dhcpcd[914]: eth0: leased 10.0.2.15 for 86400 seconds
Jun 16 23:43:08 arch systemd[1]: Started dhcpcd on eth0.
Jun 16 23:43:11 arch dhcpcd[919]: eth0: sending IPv6 Router Solicitation

sudo pacman -Syyu
:: Synchronizing package databases...
 core                       103.6 KiB   291K/s 00:00 [############################] 100%
 extra                     1504.4 KiB   674K/s 00:02 [############################] 100%
 community                 1956.0 KiB   820K/s 00:02 [############################] 100%
 archlinuxfr                 14.3 KiB  23.1K/s 00:01 [############################] 100%
:: Starting full system upgrade...
 there is nothing to do

I notice the log difference. Host-only has this:

eth0: did not fork due to an absent RDNSS option... RA

I don't know what is that mean. I guess maybe it is the problem.

Offline

#6 2013-06-28 16:18:33

gkjarch
Member
Registered: 2013-03-31
Posts: 22

Re: dhcpcd does not assign IP address from dhcp server

I update VBox to version 4.2.14.
Pacman can update by host-only with VBox 4.2.14.
And dhcpcd still has that log.

Offline

Board footer

Powered by FluxBB