diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-03-08 22:00:23 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-09 11:53:35 +0000 |
commit | ec01f6e0ebf62949762434c07b5cb13630286df6 (patch) | |
tree | 9b1dd9553e7dd5f0ec1c2de0aaa381df58150c0b | |
parent | 8613b87dfd9bf25bd85bb9ef551f261e73ef707f (diff) | |
download | phosphor-networkd-ec01f6e0ebf62949762434c07b5cb13630286df6.tar.gz phosphor-networkd-ec01f6e0ebf62949762434c07b5cb13630286df6.zip |
networkd-config: force ipv4 clientid to 'mac'
Traditionally the DHCP clients will send the ethernet
MAC address as the 'ClientID' in the DHCP request.
DHCP on IPv6 introduced a new identifier called a DUID
as the primary system identifier that is sent to the DHCP
server. This was also added back to IPv4 via RFC 4361
and is the default in systemd-networkd.
Some legacy system installations do not support DUIDs
and as a short-term fix, we will force 'mac' to be used
instead of 'duid'. See openbmc/openbmc#1280 for long-term
discussion.
Fixes openbmc/openbmc#1272.
Change-Id: Idd46c08071b51ad8d1f40f43efade98c9c030dea
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rwxr-xr-x | netman.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -309,6 +309,8 @@ class NetMan (dbus.service.Object): networkconf.write ('Name=' + (device) + '\n') networkconf.write ('[Network]' + '\n') networkconf.write ('DHCP=yes') + networkconf.write ('[DHCP]' + '\n') + networkconf.write ('ClientIdentifier=mac' + '\n') networkconf.close () print("Restarting networkd service...") |