Need command to turn off/disable a NIC (from IPMI) from showing up

tsm37

Dabbler
Joined
Feb 19, 2023
Messages
46
I have an IPMI card that comes with the mobo installed today. This IPMI card has a NIC and Truenas Scale picks it up, but this NIC is always shown as "Link State Down". What is the command to tell truenas scale to turn this NIC off or disable it from even showing up under Network? I would like to insert this command line to a startup script under system Settings\Advanced\Init/shutdown scripts. I'm accessing this IPMI card via the browser through a dedicated IP configured in the bios and no issue. I think Truenas Scale has no business with the IPMI card, so I just don't want it to show up under Network.

The NIC's name is enx1e6636c96b8a

Thanks
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Please report your specific hardware
There's a trash can next to the network interfaces. Can you show the screenshots?

 

tsm37

Dabbler
Joined
Feb 19, 2023
Messages
46
Thanks, yes here is the screenshot attached. enx1e6636c96b8a is the IPMI card. As you can see, Truenas Scale picked up the the card and was able to display the MAC address but not the static IP address. I set the static IP address for this IPMI card in the bios and this card is physically connected to the network and I access the IPMI card via a browser in Windows. I can hit the trash can button to remove it, but it will come back up when I reboot the truenas scale box. Please shed some light on how to disable / remove it within Scale. I can't disable the IPMI card in bios because it will disable the card entirely.

I also ran the ethool and here is some info.
root@truenas[~]# ethtool enx1e6636c96b8a
Settings for enx1e6636c96b8a:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Half
Auto-negotiation: off
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
 

Attachments

  • Screenshot 2023-03-16 220204.jpg
    Screenshot 2023-03-16 220204.jpg
    56.9 KB · Views: 225

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Thanks, yes here is the screenshot attached. enx1e6636c96b8a is the IPMI card. As you can see, Truenas Scale picked up the the card and was able to display the MAC address but not the static IP address. I set the static IP address for this IPMI card in the bios and this card is physically connected to the network and I access the IPMI card via a browser in Windows. I can hit the trash can button to remove it, but it will come back up when I reboot the truenas scale box. Please shed some light on how to disable / remove it within Scale. I can't disable the IPMI card in bios because it will disable the card entirely.

I also ran the ethool and here is some info.
Feel free to report as a bug. My guess is that the intention should be for the interface tio be trashed persistently.
It might be fixed in 2.12.2.. you could wait to test that.
A temporary solution would be to do an init script.
 

tsm37

Dabbler
Joined
Feb 19, 2023
Messages
46
Feel free to report as a bug. My guess is that the intention should be for the interface tio be trashed persistently.
It might be fixed in 2.12.2.. you could wait to test that.
A temporary solution would be to do an init script.
I checked again and confirmed that the trash button doesn't get rid of of that IPMI network interface permanently. It just comes back and yes, I will report as a bug.

As for the temporary solution, what command should I apply for the initial script? Linux is still a territory that I'm exploring. Thank you
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
It should be feasible, but I don't know the specific command either... perhaps someone else will know.
 
Top