You are not logged in.

#1 2012-03-30 00:20:00

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

DHCP doesn't appear to work, seems to be trying to get IPv6 address

I noticed that this 2 days, my internet is down. I think the problem is that DHCP for IPv4 has stopped working.

$ sudo ip addr

    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether f4:6d:04:cd:36:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f66d:4ff:fecd:3634/64 scope link 
       valid_lft forever preferred_lft forever

$ sudo dhcpcd                   
dhcpcd[1782]: version 5.5.4 starting
dhcpcd[1782]: eth0: sending IPv6 Router Solicitation
dhcpcd[1782]: eth0: broadcasting for a lease
dhcpcd[1782]: eth0: sending IPv6 Router Solicitation
dhcpcd[1782]: eth0: sending IPv6 Router Solicitation
dhcpcd[1782]: eth0: sending IPv6 Router Solicitation
dhcpcd[1782]: eth0: no IPv6 Routers available
dhcpcd[1782]: timed out
dhcpcd[1782]: forked to background, child pid 1798

Notice its just "sending IPv6 Router Solicitation", not IPv4?

I solved it by setting a static IP like:

dhcpcd -S ip_address=192.168.1.122/24 -S routers=192.168.0.1 -S domain_name_servers=8.8.8.8 eth0

But I'd like to know whats wrong? Am I right to say, `dhcpcd` is only trying to get IPv6 address? And how can I fix this?

Last edited by jiewmeng (2012-03-30 00:20:41)


Computer Science Student, Web Developer

Offline

#2 2012-03-30 00:24:06

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

I'm also getting this. I'm not sure what's wrong - I have disabled IPv6. Thanks for that idea of the workaround smile.

Offline

#3 2012-03-30 00:24:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

Perhaps not a complete explanation - but another solution with more information is in the wiki

EDIT: given /dev/zero's above comment this may not be useful, but I'll leave it just in case.

Last edited by Trilby (2012-03-30 00:24:43)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2012-03-30 05:31:18

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

The "sending IPv6 Router Solicitation" messages just mean that dhcpcd is trying to discover ipv6 routers on the link. It doesn't mean that it's only trying to query for ipv6 responses. If I set it up on a test machine here (which also has ipv6 disabled), I also get those "IPv6 Router Solicitation" messages, but it gets an ipv4 address assigned afterwards without any issues.

I know this is not an explanation of why your dhcp is not working (and why it keeps doing this even with ipv6 disabled), but just thought I'd mention it.


Burninate!

Offline

#5 2012-03-30 17:29:40

kmacleod
Member
Registered: 2009-03-27
Posts: 12

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

I'm having the same issue. Not getting an IPv4 address on startup.

But then running '/etc/rc.d/network stop && /etc/rc.d/network start' gets me a valid IPv4.  Weird.

Downgrading dhcpcd from 5.5.5-1 to 5.5.4-1 fixed it.

Offline

#6 2012-03-30 20:38:09

dunek
Member
Registered: 2010-05-15
Posts: 23

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

rc.d network doesn't work for me too, i'll just use dhclient in the time being.

Offline

#7 2013-10-12 09:51:26

thinkdoom
Member
Registered: 2013-10-12
Posts: 1

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

i have meet the same problem.  how to get the ipv4 addr.

[root@myarch ~]# ifconfig -a
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::20c:29ff:fee5:2f0e  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:e5:2f:0e  txqueuelen 1000  (Ethernet)
        RX packets 9  bytes 2280 (2.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55  bytes 14030 (13.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@myarch ~]# systemctl status dhcpcd@ens160
dhcpcd@ens160.service - dhcpcd on ens160
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
   Active: failed (Result: exit-code) since Sat 2013-10-12 09:23:56 UTC; 23min ago
  Process: 366 ExecStart=/usr/sbin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)

Oct 12 09:23:26 myarch dhcpcd[366]: ens160: sending IPv6 Router Solicitation
Oct 12 09:23:26 myarch dhcpcd[366]: ens160: broadcasting for a lease
Oct 12 09:23:30 myarch dhcpcd[366]: ens160: sending IPv6 Router Solicitation
Oct 12 09:23:34 myarch dhcpcd[366]: ens160: sending IPv6 Router Solicitation
Oct 12 09:23:38 myarch dhcpcd[366]: ens160: sending IPv6 Router Solicitation
Oct 12 09:23:38 myarch dhcpcd[366]: ens160: no IPv6 Routers available
Oct 12 09:23:56 myarch dhcpcd[366]: timed out
Oct 12 09:23:56 myarch systemd[1]: dhcpcd@ens160.service: control process exited, code=exited status=1
Oct 12 09:23:56 myarch systemd[1]: Failed to start dhcpcd on ens160.
Oct 12 09:23:56 myarch systemd[1]: Unit dhcpcd@ens160.service entered failed state.



[root@myarch ~]# journalctl -xn
-- Logs begin at Tue 2013-03-26 10:53:15 UTC, end at Sat 2013-10-12 09:48:04 UTC. --
Oct 12 09:47:34 myarch vmsvc[160]: [ warning] [guestinfo] Failed to get OS info.
Oct 12 09:47:34 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoReadDistroFile: Cannot work with empty file.
Oct 12 09:47:34 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoOSData: Error: no distro file found
Oct 12 09:47:34 myarch vmsvc[160]: [ warning] [guestinfo] Failed to get OS info.
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoReadDistroFile: Cannot work with empty file.
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoOSData: Error: no distro file found
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [guestinfo] Failed to get OS info.
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoReadDistroFile: Cannot work with empty file.
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [vmsvc] HostinfoOSData: Error: no distro file found
Oct 12 09:48:04 myarch vmsvc[160]: [ warning] [guestinfo] Failed to get OS info.

Offline

#8 2014-09-16 17:54:08

hydn
Member
From: St. Kitts
Registered: 2012-09-23
Posts: 105
Website

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

any fix?


Linux Performance Blog: http://haydenjames.io/

Offline

#9 2014-09-16 18:02:03

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

hydn, rather than bumping multiple old threads by OPs who have not posted for many months, may I suggest that you start a new thread with your specific problem, and link back to these old threads if you think they apply?

Offline

#10 2014-09-16 18:03:20

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

Re: DHCP doesn't appear to work, seems to be trying to get IPv6 address

Closing...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB