<div dir="ltr">Hi everyone<div><br></div><div>I couldn't find any other mention of this and hope this hasn't been asked / answered / solved before.</div><div><br></div><div>We're using both an NC-SI based NIC and the USB virtual NIC on a AST2500 BMC (on the TYAN S7106 mainboard). I found that phosphor-networkd clobbers the networking configuration (IP address) for the USB virtual NIC (usb0) in the following scenario:</div><div><ol><li>The USB virtual NIC (usb0) has it default IP address hard coded in /etc/systemd/network/00-bmc-usb0.network.</li><li>The host has not yet loaded the USB NIC driver (cdc_ether). In this case the USB NIC on the BMC does not have an IP address assigned (I haven't investigated why that is, but it seems ok).</li><li>A process actively assigns / changes the IP address for the BMC's other NIC (i.e. eth0) via phosphor-networkd, e.g. via IPMI from the host.</li></ol><div>At step #3 phosphor-networkd overwrites all files in /etc/systemd/network (EthernetInterface::writeConfigurationFile() called from Manager::writeToConfigurationFile()). Specifically, it rewrites all files with information captured from the running system. Since the USB NIC (usb0) doesn't have an IP address at that time, the rewritten file is missing the IP address, too.<br></div></div><div><br></div><div></div><div>I can think of various ways to fix this:<br></div><div><ul><li>Make the host explicitly configure usb0 via IPMI before trying to talk with the BMC via the USB NIC. This won't work since we'd like to stop using IPMI from the host completely.</li><li>Enhance phosphor-networkd to always explicitly exclude "usb0" as a managed device. I wonder if this could be done by adding a new key/value pair to /etc/systemd/network/00-bmc-usb0.network, e.g. "[PhosphorNetworkD] managed=false". This seems pretty straightforward.<br></li><li>Come up with some "automatic" way to not clobber the configuration file if the running configuration does not match. It feels that this goes against the fundamental design of phosphor-networkd.</li></ul><div>Thoughts? Ideas? Opinions?</div></div><div><br></div><div>Thanks</div><div>Oskar.</div></div>