diff options
-rw-r--r-- | ethernet_interface.cpp | 1 | ||||
-rw-r--r-- | network_config.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
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 @@ void EthernetInterface::writeConfigurationFile() // 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 @@ namespace bmc 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(); } |