In some scenarios it can be easier to set IPMI network directly using the builtin ipmitool
utility.
Get Current Network Setting
First is to get the currnet IPMI network configuration. On the FMADIO host system run the following command
sudo ipmitool lan print
This prints out the current IPMI network setting, example output below
fmadio@fmadio20v4-682-lite:~$ sudo ipmitool lan print
IANA PEN registry open failed: No such file or directory
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD OEM
Auth Type Enable : Callback : MD5
: User : MD5
: Operator : MD5
: Admin : MD5
: OEM : MD5
IP Address Source : Static Address
IP Address : 192.168.2.183
Subnet Mask : 255.255.255.0
MAC Address : 74:56:3c:84:db:b8
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 1.0 seconds
Default Gateway IP : 192.168.2.1
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 3,17
Cipher Suite Priv Max : XXXaXXXXXXXaXXX
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Bad Password Threshold : 0
Invalid password disable: no
Attempt Count Reset Int.: 0
User Lockout Interval : 0
fmadio@fmadio20v4-682-lite:~$
In the above output can see the IP address is static, IPv4 address and gateway information.
Disable DHCP
By default FMADIO systems are shipped with DHCP IPv4 address for the IPMI interface. This will show up as the following setting
To configure as static use the command below.
sudo ipmitool lan set 1 ipsrc static
Example output as follows
fmadio@fmadio20v4-682-lite:~$ sudo ipmitool lan set 1 ipsrc static
IANA PEN registry open failed: No such file or directory
fmadio@fmadio20v4-682-lite:~$
IPv4 Address
To set the IPv4 address use the following command. In the below example its setting to the address 192.168.2.183
sudo ipmitool lan set 1 ipaddr 192.168.2.183
Example output below
fmadio@fmadio20v4-682-lite:~$ sudo ipmitool lan set 1 ipaddr 192.168.2.183
IANA PEN registry open failed: No such file or directory
Setting LAN IP Address to 192.168.2.183
fmadio@fmadio20v4-682-lite:~$
IPv4 Netmask
Setting the IPv4 netmask use the following command.
sudo ipmitool lan set 1 netmask 255.255.255.0
Example output below
fmadio@fmadio20v4-682-lite:~$ sudo ipmitool lan set 1 netmask 255.255.255.0
IANA PEN registry open failed: No such file or directory
Setting LAN Subnet Mask to 255.255.255.0
fmadio@fmadio20v4-682-lite:~$
IPv4 Gateway
To set the default IPv4 Gateway use the following command
sudo ipmitool lan set 1 defgw ipaddr 192.168.2.1
Example output below
fmadio@fmadio20v4-682-lite:~$ sudo ipmitool lan set 1 defgw ipaddr 192.168.2.1
IANA PEN registry open failed: No such file or directory
Setting LAN Default Gateway IP to 192.168.2.1
fmadio@fmadio20v4-682-lite:~$