Bug 1555387
| Summary: | RFE: generate system-wide DUID for dhclient | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pavel Zhukov <pzhukov> |
| Component: | dhcp | Assignee: | Pavel Zhukov <pzhukov> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jpopelka, knweiss, pemensik, pzhukov, thozza, udovdh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-07-31 06:55:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 832712 | ||
|
Description
Pavel Zhukov
2018-03-14 15:17:53 UTC
Workaround 1: https://bugzilla.redhat.com/show_bug.cgi?id=626514#c161 Workaround 2: dhclient -P -6 -d <any_ethernet_iface> Ctrl-C dhclient -P -6 -d ppp0 Workaround: killall -9 dhclient 2> /dev/null echo 'default-duid "\000\002\000\001\017\214\227y\000@c\366\002\000";' > /var/lib/dhclient/dhclient6.leases dhclient -6 -P ppp0 & Thanks. But this will save static constant duid for all machines which is not good. generator suggested by Steven should work better. myhwaddr=`ip add | grep link/ether | cut -f 6 -d \ | tail -n 1 | sed s/:/\\\\\\\\x/g` echo "default-duid \"\\x00\\x03\\x00\\x01\\x$myhwaddr\";" > $LEASEFILE NetworkManager uses machine-id for duid generation so it's duid-uuid (RFC 6355 section 4). We may want to switch to it. It should bring consistency in distribution but upgrade may be problematic because of duid change. And it's systemd related feature so will be hard to get it merged upstream Please bear in mind that NM is not everywhere. (In reply to udo from comment #5) > Please bear in mind that NM is not everywhere. I don't want to bring NM everywhere for sure. I'm thinking about using /etc/machine-id as source of UUID for duid-uuid generarion. /etc/machine-id is everywhere in Fedora nowadays. System Wide change template https://fedoraproject.org/wiki/Changes/DUID_UUID I was thinking we already use DUID-UUID by default: https://bugzilla.redhat.com/show_bug.cgi?id=560361#c60 https://src.fedoraproject.org/rpms/dhcp/blob/master/f/dhcp-duid_uuid.patch or is that DHCPv4 only ? (In reply to Jiri Popelka from comment #9) > I was thinking we already use DUID-UUID by default: > https://bugzilla.redhat.com/show_bug.cgi?id=560361#c60 > https://src.fedoraproject.org/rpms/dhcp/blob/master/f/dhcp-duid_uuid.patch > > or is that DHCPv4 only ? According to the code it should work for IPv6 too. Checking. Thank you! The problem was not in DUID generation itself. it works as Jiri mentioned but in seed uniqueness during xid generation in case of interface without hw address. this should be mitigated now by using hw address of "underlying" interface. Closing |