HP C7000 – How to Change an ILO IP address through the OA CLI

Sometimes you don;t have access to an ILO IP, for example because you bought it refurbished or it moved from another data center.

First method:
A) Log on to the OA CLI through Putty (or similar)

B) Connect to the blade nr you wish to change the IP address of (e.g. Blade 10):

connect server 10

C) Change to the directory where the settings are:

cd /map1

D) Type the following, which resets all ILO settings (this works like a major refresh and is useful anyway, as sometimes ILO is stubborn)

reset

E) Go the C7000 GUI
Go to Enclosure Informaton -> Enclosure Settings -> Enclosure Bay IP Addressing -> IPv4
Set the IP address of the bay through the GUI options and press ‘Apply’.

Alternative method if the above does not work:

A) Log on to the OA CLI through Putty (or similar)

B) Connect to the blade nr you wish to change the IP address of (e.g. Blade 10):

connect server 10

C) Do this, and change the IP address to what you need:

set /map1/enetport1/lanendpt1/ipendpt1 IPv4Address=10.10.10.100

if you also need to change the subnetmask (to e.g. 255.255.255.0) do this instead:

set /map1/enetport1/lanendpt1/ipendpt1 IPv4Address=10.10.10.100 SubnetMask=255.255.255.0

How edit a NIC (Network Interface Card) on Centos 7

1). Check with the command ‘IP a' which NICs you have, and what they are called (for example ‘eno1’).

2). Change to the directory /etc/sysconfig/network-scripts/

The name of the file to be edited contains the NIC name. For example: ifcfg-eno1

3). Edit the file. E.g. with the NANO editor.

nano ifcfg-eno1

You’ll see something like this, in this case it’s for a fixed IP address.

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno1
UUID=xxxxx (you’ll see a long unique code)
DEVICE=eno1
ONBOOT=yes
IPADDR=10.10.10.30 (or your IP address)
PREFIX=24 (which is the same as a DNS mask of 255.255.255.0)

 

A typical DHCP setting looks like this:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno2
UUID=xxxxx (you’ll see a long unique code)
DEVICE=eno1
ONBOOT=yes

4) Make changes and save them (in the case of NANO by ctr – O to save, and then ctr – X to quit).

5) Restart the network service as follows:

systemctl restart network