Disabling LAN access to IPMI via ipmitool

I want to be able to switch LAN access to IPMI on and off on my machine (e.g. using a script and ipmitool).

I've successfully configured static IP, netmask, password, and other settings using ipmitool on Ubuntu 16.04. I would have expected the following command to disable access to the LAN channel, 0x1:

$ ipmitool lan set 0x1 access off

The command returns 0 and produces the following output:

Set Channel Access for channel 1 was successful.

However, despite having successfully changed the setting, I am still able to access the web configuration interface via my previously configured static IP and netmask settings.

Here's the output of ipmitool channel info 0x1 prior to disabling access to the channel:

Channel 0x1 info:
  Channel Medium Type   : 802.3 LAN
  Channel Protocol Type : IPMB-1.0
  Session Support       : multi-session
  Active Session Count  : 0
  Protocol Vendor ID    : 7154
  Volatile(active) Settings
    Alerting            : enabled
    Per-message Auth    : enabled
    User Level Auth     : enabled
    Access Mode         : always available
  Non-Volatile Settings
    Alerting            : enabled
    Per-message Auth    : enabled
    User Level Auth     : enabled
    Access Mode         : always available

After running the command, the Access Mode field for both Volatile and Non-Volatile Settings reads 'disabled.'

Am I missing something here? How do people generally disable the IPMI LAN interface?

3
задан 31 August 2016 в 18:15
1 ответ
$ ipmitool lan set 0x1 access off

Эта команда относится конкретно к протоколу IPMI в локальной сети, а не к SSH / SNMP / HTTP / HTTPS и т. Д.

Протокол IPMI - UDP / 623, и вы используете его, когда запустите ipmitool на удаленный хост.

РЕДАКТИРОВАТЬ: Я понимаю, что не ответил на вопрос. Возможно, проще всего установить статический IP-адрес 0.0.0.0 на интерфейсе IPMI, когда вы хотите его отключить, а затем установить действительный статический IP-адрес, когда вы хотите, чтобы он был включен. Большинство контроллеров IPMI имеют какую-либо опцию межсетевого экрана, но, по крайней мере, для контроллеров IPMI на материнских платах SMC вы не можете настроить межсетевой экран через интерфейс IPMI CLI, только через веб-интерфейс.

1
ответ дан 3 December 2019 в 07:24

Теги

Похожие вопросы