You are not logged in.

#1 2020-05-03 13:11:38

Shino
Member
Registered: 2015-02-01
Posts: 51

[SOLVED] online.net Server with arch: Accquire IPv6 address via DHCP

Hi,

I've got a dedicated server at online.net with an IPv6 address. online.net says to use dhclient to request the ipv6 address:
https://documentation.online.net/en/ded … pv6/prefix

basically I used a config file with my DUID I got from my server hoster and executed dhclient.
I used this method for a few years now, but it suddenly stopped working. dhclient now says:

Internet Systems Consortium DHCP Client 4.4.2
Copyright 2004-2020 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf.   Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.

I think this is because dhcpcd is running, too. It gets my ipv4 address. If I disable it, I cannot acces smy server anymore. So I try to use dhcpcd as well to get my ipv6 address but wasn't successful the last few days. I do not know how to set ip up. I tried writing my DUID to /etc/dhcpcd.duid. This did not help. DHCPCD tells me in the logs, that it uses a completely different duid. I've then overwritten /var/lib/dhcpcd/duid. Still no success.

Can anyone tell me how to use dhcpcd with a DUID to request an IPv6 address?

Thank you.

Last edited by Shino (2020-05-11 20:04:15)

Offline

#2 2020-05-03 19:39:25

rsmarples
Member
Registered: 2009-05-12
Posts: 242

Re: [SOLVED] online.net Server with arch: Accquire IPv6 address via DHCP

I think on Arch dhcpcd uses /var/lib/dhcpcd/duid.
However, recent arch has enabled privsep in dhcpcd-9 (check your version), so it could also be relative to the directory of the dhcpcd user.

Check /var/lib/dhcpcd/var/lib/dhcpcd/duid.

Offline

#3 2020-05-04 14:20:47

Shino
Member
Registered: 2015-02-01
Posts: 51

Re: [SOLVED] online.net Server with arch: Accquire IPv6 address via DHCP

rsmarples wrote:

Check /var/lib/dhcpcd/var/lib/dhcpcd/duid.

Thanks. This seems to be right. I'll try it out and see if it works. Thank you!

EDIT: I tried it out for a few days and it works stable for me. Therefore, closed.

Last edited by Shino (2020-05-11 20:03:38)

Offline

#4 2020-06-19 22:16:13

Shino
Member
Registered: 2015-02-01
Posts: 51

Re: [SOLVED] online.net Server with arch: Accquire IPv6 address via DHCP

Shino wrote:
rsmarples wrote:

Check /var/lib/dhcpcd/var/lib/dhcpcd/duid.

Thanks. This seems to be right. I'll try it out and see if it works. Thank you!

EDIT: I tried it out for a few days and it works stable for me. Therefore, closed.

Since a dhcpcd update the file seems to be moved. dhcpcd stopped working and segfaultet until I created the file under /var/lib/dhcpcd/duid

Offline

Board footer

Powered by FluxBB