summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2023-04-21 08:42:35 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2023-04-21 10:00:20 +0300
commita512e6ec0aa59a5efa87e63d371b7e988ef44ab5 (patch)
treee012464201e8fca826a0d4580c451e693248598e
parent57ffec27b48d8bba0255f8d34eb15d21847458ed (diff)
downloadopenbmc-a512e6ec0aa59a5efa87e63d371b7e988ef44ab5.tar.xz
meta-ampere: usbnet: explicit configure usb0 as static IP
usb0 is a virtual USB Ethernet which is configured to static IP 192.168.0.10 in /etc/systemd/network/00-bmc-usb0.network without DHCP parameter with expecting that DHCP=no. However, IPMI and Redfish report IP source as DHCP, not static. This commit explicitly specifies in network configuration as DHCP=no so that IPMI and Redfish report correctly. Tested: 1. Check address source for usb0 via IPMI # ipmitool lan print 3 | grep "IP Address Source" IP Address Source : Static Address 2. Check address source for usb0 via Redfish Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Id14bfc289da6d36552bd37448ec1e4c30ff32a0a
-rw-r--r--meta-ampere/meta-common/recipes-ampere/network/ampere-usbnet/00-bmc-usb0.network1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-ampere/meta-common/recipes-ampere/network/ampere-usbnet/00-bmc-usb0.network b/meta-ampere/meta-common/recipes-ampere/network/ampere-usbnet/00-bmc-usb0.network
index 640fe04b9c..73d84b1178 100644
--- a/meta-ampere/meta-common/recipes-ampere/network/ampere-usbnet/00-bmc-usb0.network
+++ b/meta-ampere/meta-common/recipes-ampere/network/ampere-usbnet/00-bmc-usb0.network
@@ -5,3 +5,4 @@ Address=192.168.0.10/16
[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
+DHCP=no