1 Rookie
•
14 Posts
0
1371
November 10th, 2020 00:00
iDrac Redfish - Gateway is not set when configuring static ip address for mgmt interface
Hi,
On brand new servers (Dell PowerEdge R640 with iDrac 9, latest FW version) we are having issues when confuring a static ip address on the mgmt interface.
I tried two different methods but we see that the gateway is set to `192.168.0.1` instead of the gateway we pass along. When running the method a second time the set works.
First method:
Patch:
redfish/v1/Managers/iDRAC.Embedded.1/Attributes
{"Attributes":
{ "IPv4.1.DHCPEnable": "Disabled",
"IPv4.1.Address": "10.XXX.X.XX",
"IPv4.1.Gateway": "10.XXX.X.X",
"IPv4.1.Netmask": "255.255.252.0" }}
Alternative:
Patch:
Managers/iDRAC.Embedded.1/EthernetInterfaces/NIC.1
[{ 'Address': '10.XXX.X.XX',
'AddressOrigin': 'Static',
'Gateway': '10.XXX.X.X',
'SubnetMask': '255.255.252.0'
}]



DELL-Shine K
4 Operator
•
3K Posts
0
November 13th, 2020 04:00
This data is little different. These are static IP. The data you used before is directly changing IP address. In this payload we will set the static address first then change the mode from DHCP to Static.
Dell-Stephane T
9 Legend
•
3.7K Posts
0
November 10th, 2020 06:00
Hi Benoit,
I didn't know if the syntax is correct or not because I'm not a specialist.
For any IDRAC scripting purpose I recommand you to check this video's playlist :https://dell.to/36r1QlG
Regards,
DELL-Shine K
4 Operator
•
3K Posts
0
November 10th, 2020 08:00
First method you mentioned looks correct. Are you getting any error message when you tries the first method? As it is iDRAC network setting it way take up to 30 seconds to apply the setting and new iDRAC IP reachable.
For second method you need to try below data
{"IPv4Addresses":[{
"Address": "10.XXX.X.XX",
"Gateway": "10.XXX.X.X",
"SubnetMask": "255.255.252.0"
}]}
Note : AddressOrigin is a read only attribute and can not be patched. So if you want to change iDRAC IP from DHCP to Static you need to try first method.
digitalo_
1 Rookie
•
14 Posts
0
November 12th, 2020 03:00
We are currently using the first method and the patch operation does not return an error message.
The ip address and the subnet mask are set successfully but the gateway is not. This only occurs on a brand new server (which was been updated to the latest fw) where there has never been set a static ip before.
DELL-Shine K
4 Operator
•
3K Posts
0
November 12th, 2020 06:00
@digitalo_, Thanks for pointing out the details. Setting the gateway IP is failing when we try for first time on new server. We will work with our engineering to get this issue fixed in upcoming release. Mean time can you try with below payload on redfish/v1/Managers/iDRAC.Embedded.1/Attributes URI
{"Attributes":{
"IPv4Static.1.Address": "100.97.196.10",
"IPv4Static.1.Gateway": "100.97.196.1",
"IPv4Static.1.Netmask": "255.255.255.0",
"IPv4.1.DHCPEnable": "Disabled"
}}
digitalo_
1 Rookie
•
14 Posts
0
November 13th, 2020 04:00
That seems almost identical to my payload or do you suspect that changing the order would make a difference? (just checking if I'm not missing anything)
DELL-Erman O
Moderator
•
2.9K Posts
0
October 31st, 2024 15:32
Hi,
It’s tricky to pinpoint an exact version for me. From what I’ve found, making sure you have the latest firmware updates for both the iDRAC and Life Cycle Controller is key. But maybe our users can share their experiences.
user_597f52
1 Rookie
•
1 Message
0
October 13th, 2025 15:16
I am having this problem too and the suggested solution does NOT work. There is a PR about this issue:
https://www.dell.com/support/manuals/en-us/idrac9-lifecycle-controller-v5.x-series/idrac9_pub_rn_5.10.30.05/networking-and-io?guid=guid-32bbd1d4-9e64-47a8-8021-aa1c34da1fba&lang=en-us
The fix is use "IPv4Static" attribute instead of the "IPv4" attribute:
{"Attributes":{ "IPv4.1.DHCPEnable": "Disabled",
"IPv4Static.1.Address": "10.XXX.X.XX",
"IPv4Static.1.Gateway": "10.XXX.X.X",
"IPv4Static.1.Netmask": "255.255.252.0" }}
com_user
1 Rookie
•
6 Posts
0
December 18th, 2025 17:50
Hey, I've hit the same issue, but on iDRAC10 - PowerEdge R670;
/redfish/v1/Managers/iDRAC.Embedded.1/Attributes seems to not be a valid URI anymore.
I'm able to set static ips using the payload
{ 'Address': '10.XXX.X.XX',
'Gateway': '10.XXX.X.X',
'SubnetMask': '255.255.252.0'
} at the URI
/redfish/v1/Managers/iDRAC.Embedded.1/EthernetInterfaces/NIC.1
Since "AddressOrigin" is an RO parameter, its still as "DHCP".
I tried to disable DHCP using below payload at the URI /redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol
{"DHCP": {"ProtocolEnabled": false}}
But this is still not changing the "AddressOrigin" to "static" and so ending up losing IPv4 connectivity.
Any suggestions on what could be done?
Thanks in advance :)
DELL-Charles R
Moderator
•
4.7K Posts
1
December 18th, 2025 21:46
Hello,
See if this can help. You can run a GET against
/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1
Once you have a list of attributes, run a PATCH configuring them with a payload that looks like this:
example that disables DHCP
{"Attributes":{"IPv4.1.DHCPEnable": "Disabled"}}
You will want to include the other attributes with a comma separator such as the address, gateway, subnet or do them one at a time.
com_user
1 Rookie
•
6 Posts
0
December 22nd, 2025 15:03
Thanks, the suggested URI is able to disable dhcp for ipv4. I do not find an attribute like "IPv6.1.DHCPEnable" or similar. Can you suggest an URI for disabling dhcp on IPv6, please?
DELL-Chris H
Moderator
•
9.6K Posts
1
December 22nd, 2025 15:52
Here’s how to disable IPv6 DHCP (DHCPv6) using the iDRAC Redfish API:
The Redfish attribute to manage IPv6 DHCP configuration is handled via the iDRAC Attributes resource, not under EthernetInterfaces. The key parameters are:
IPv6.1.AutoConfigEnable – toggles automatic IPv6 address configuration (via SLAAC).
IPv6.1.DHCPv6DNS – toggles DHCPv6 for obtaining DNS server addresses.
These follow the same pattern as IPv4 attributes such as IPv4.1.DHCPEnable. [manualsdump.com]
Also, if you're configuring a static IPv6 address, set it afterward via the EthernetInterfaces endpoint.
Let me know if this helps.
com_user
1 Rookie
•
6 Posts
0
January 2nd, 2026 19:50
These parameters helped. Thanks!