summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2017-03-08 22:00:23 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-03-09 11:53:35 +0000
commitec01f6e0ebf62949762434c07b5cb13630286df6 (patch)
tree9b1dd9553e7dd5f0ec1c2de0aaa381df58150c0b
parent8613b87dfd9bf25bd85bb9ef551f261e73ef707f (diff)
downloadphosphor-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-xnetman.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/netman.py b/netman.py
index 99984d0..230cb5e 100755
--- a/netman.py
+++ b/netman.py
@@ -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...")
OpenPOWER on IntegriCloud