digitalo_

updated

8 months ago

D

digitalo_

2 Intern

14 Posts

0

1450

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

    6 Operator

    3042 Posts

    1071

    0

    Posted 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

    11 Legend

    3699 Posts

    1144

    0

    Posted 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

    6 Operator

    3042 Posts

    1138

    0

    Posted 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_

    2 Intern

    14 Posts

    1102

    0

    Posted 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

    6 Operator

    3042 Posts

    1092

    0

    Posted 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_

    2 Intern

    14 Posts

    1075

    0

    Posted 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

    2984 Posts

    14874 Points

    0

    0

    Posted 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.

    DELL-Erman O

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • user_597f52

    1 Rookie

    1 Message

    2 Points

    0

    0

    Posted 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

    2 Points

    0

    0

    Posted 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

    4730 Posts

    25476 Points

    0

    1

    Posted 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.

     

    DELL-Charles R

    Social Media and Communities Professional
    Dell Technologies | Enterprise Support Services
    #IWork4Dell

    Did I answer your query? Please click on ‘Accept as Solution’. ‘Thumbs up’ the posts you like!