Enable zeroconf while writing configuration file

Resolves openbmc/openbmc#2265

Change-Id: Idf8200fa92d82ee8de4f23e27a2816efae356ea0
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index 5a7c61c..15fc473 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -487,6 +487,7 @@
 
     // write the network section
     stream << "[" << "Network" << "]\n";
+    stream << "LinkLocalAddressing=yes\n";
 
     // Add the VLAN entry
     for (const auto& intf: vlanInterfaces)
diff --git a/network_config.cpp b/network_config.cpp
index 050be0a..d0aa2b4 100644
--- a/network_config.cpp
+++ b/network_config.cpp
@@ -16,7 +16,7 @@
 
         filestream.open(filename);
         filestream << "[Match]\nName=" << interface <<
-                "\n[Network]\nDHCP=true\n"
+                "\n[Network]\nDHCP=true\nLinkLocalAddressing=yes\n"
                 "[DHCP]\nClientIdentifier=mac\n";
         filestream.close();
     }