<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Itshould be like this<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">[DHCPv4]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">SendHostname=true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hostname=myhostname<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Susant<o:p></o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">systemd-devel <systemd-devel-bounces@lists.freedesktop.org><br>
<b>Date: </b>Thursday, 2 April 2020 at 6:18 PM<br>
<b>To: </b>systemd Mailing List <systemd-devel@lists.freedesktop.org><br>
<b>Subject: </b>[systemd-devel] systemd-networkd override hostname not being sent to DHCP<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Hi<br>
<br>
I have a network file like this:<br>
<br>
---<br>
[Match]<br>
Name=enp2s0<br>
<br>
[Network]<br>
DHCP=ipv4<br>
Domains=faster rstore<br>
Hostname=myhostname<br>
SendHostname=True<br>
----<br>
<br>
After saving the file, doing a systemctl daemon-reload and a<br>
systemdctl restart systemd-networkd it would seem that this is still<br>
not being applied.<br>
<br>
When I do a capture for the traffic, Wireshark tells me for instance<br>
that the DHCP Discover packet sent to 255.255.255.255 includes the<br>
following:<br>
<br>
DHCP->Option: (81) Client FQDN: myothername.mycompany.tld<br>
<br>
Which it repeats a few moments later in the DHCP Request packet<br>
<br>
<br>
Host is Arch Linux 64 bit running 5.5.13<br>
systemd 245 (245.3-2-arch)<br>
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP<br>
+LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS<br>
+KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid<br>
<br>
Can anyone see what I am doing wrong here?<br>
<br>
Thank you<br>
<br>
<br>
Andy<br>
_______________________________________________<br>
systemd-devel mailing list<br>
systemd-devel@lists.freedesktop.org<br>
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fsystemd-devel&data=02%7C01%7Cssahani%40vmware.com%7C8e7b09d25a9244a3f0f508d7d70411d9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637214284889344583&sdata=dlFF9Cy3msJyGu3nub0IpNmYEEa%2B4bmaqp59CrUzaHw%3D&reserved=0">https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fsystemd-devel&data=02%7C01%7Cssahani%40vmware.com%7C8e7b09d25a9244a3f0f508d7d70411d9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637214284889344583&sdata=dlFF9Cy3msJyGu3nub0IpNmYEEa%2B4bmaqp59CrUzaHw%3D&reserved=0</a><o:p></o:p></p>
</div>
</div>
</body>
</html>