Server Products
Data Center Products including boards, integrated systems, Intel® Xeon® Processors, RAID Storage, and Intel® Xeon® Processors
4761 Discussions

Set BMC DNS and/or NTP via command line

superwombat
Beginner
2,868 Views

We're trying to activate DNS on our BMC's to allow specifying an NTP server by host name and not IP.  In the GUI, we can set a primary and secondary DNS server but I cannot find a way to do this via command line.  The intel syscfg utility appears to support it, but fails when I run it:

 

 

~]$ sudo /usr/bin/syscfg/syscfg /lc 1 C5 10.0.0.10

Error: DNS IP Address Set failed

Ipmitool doesn't have this option that I can see.  How can we set this via command line?

 

Board:  S7200AP

 

Thanks

0 Kudos
6 Replies
JoseH_Intel
Moderator
2,852 Views

Hello superwombat,


Thank you for joining the community


The IPMI have some options to configure LAN settings of the BMC on the local server:


ipmitool lan set 1 ipsrc [ static | dhcp ]

ipmitool lan set 1 ipaddr {YOUR DESIRED IP}

ipmitool lan set 1 netmask {YOUR NETMASK}

ipmitool lan set 1 defgw ipaddr 10.0.1.1


Let me check if there is any specific command to configure DNS


Regards


Jose A.

Intel Customer Support Technician

For firmware updates and troubleshooting tips, visit:

https://intel.com/support/serverbios


JoseH_Intel
Moderator
2,827 Views

Hello superwombat,


Here is Hexa command to set the DNS name using IPMITool.

ipmitool -C17 -Ilanplus -H%1 -U%UserID% -P%password% raw 0x0c 0x01 0x03 0xC5 %DNS1%

ipmitool -C17 -Ilanplus -H%1 -U%UserID% -P%password% raw 0x0c 0x01 0x03 0xC6 %DNS2%


Example IP: 10.21.12.85

DNS1=0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff 0x0a 0x15 0x0c 0x55


Command looks like below:

ipmitool -C17 -Ilanplus -H%1 -U%UserID% -P%password% raw 0x0c 0x01 0x03 0xC5 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff 0x0a 0x15 0x0c 0x55


This is an example only, you need to change the IP address into Hexa format to use above command. Only last 4 values they need to change.


You can use the following website to convert from ip to hex : Convert an IP Address to Hex - Online Hex Tools


Regards


Jose A.

Intel Customer Support Technician

For firmware updates and troubleshooting tips, visit:

https://intel.com/support/serverbios


superwombat
Beginner
2,816 Views

Jose,

 

Thanks a lot for this, I'll give it a try later today!  Is there a guide somewhere to all these raw commands?  I'd like access to the full functionality of the hardware, but these raw commands are brutal.

0 Kudos
JoseH_Intel
Moderator
2,788 Views

Hello superwombat,


This is this Intel IPMI Technical Resources website with plenty of information IPMI Technical Resources (intel.com). Other than that will be a 3rd party forum of similar.


Regards


Jose A.

Intel Customer Support Technician

For firmware updates and troubleshooting tips, visit:

https://intel.com/support/serverbios


0 Kudos
JoseH_Intel
Moderator
2,771 Views

Hello superwombat,


I am just following up to double-check if you found the provided information useful. If you have further questions please don't hesitate to ask. If you consider the issue to be completed please let us know so we can proceed to mark this thread as closed. I will try to reach you back on next Monday 29th. After that the ticket will be automatically archived. 


Regards


Jose A.

Intel Customer Support Technician

For firmware updates and troubleshooting tips, visit:

https://intel.com/support/serverbios


0 Kudos
JoseH_Intel
Moderator
2,725 Views

Hello superwombat,


We will proceed to mark this thread as closed. If you have further issues or questions just go ahead and submit a new topic.


Regards


Jose A.

Intel Customer Support Technician

For firmware updates and troubleshooting tips, visit:

https://intel.com/support/serverbios


0 Kudos
Reply