mlnx-tools(8)
β¨ NAME β¨
ib2ib_setup β bestie, this is the little script that generates the files you need to prep your network so it can hang out with an IB Router π
(it lives in the mlnx-tools(8) manual, iykyk)
π¦ SYNOPSIS π¦
ib2ib_setup [-dDEVICE][-sSUBNET_NUMBER][-nNETWORK_SUBNET]
ib2ib_setup [-fIPSFILES]ips_file...
πΈ DESCRIPTION πΈ
okay so here's the tea, bestie π β ib2ib_setup goes and calls ibnetdiscover to scan the whole network and pull out the deets about host port names, LIDs and GUIDs. Then it uses arping to scan the subnet for IPs. And then β the moment we've all been waiting for β it writes all of that into 3 separate files, no cap:
ip2gid.dbβ this one holds the IP to GID mapping that theibacmservice running on every machine in the cluster uses. literally every single one π«Άguid2lidβ this one holds the mapping of GUID to LID. you gotta copy it into the SM cache directory. and ngl, rn it's only supported by host based OpenSM or a UFM appliance β switch based OpenSM does NOT support it π so don't come crying to mehostsβ this one holds the mapping of host name to IP, and it belongs in/etc/hosts, pointed at bynsswitch.conf(or alternatively, just use a DNS, main character energy π)
π OPTIONS π
-dβ "device name". like, for example:-d ib0. it's the interface that the subnet gets scanned through for the IP to GUID mapping usingarpingπ-nβ "Networks/mask to scan". for example:-n 12.1.1.1/24,24.1.1.1/24(note: different subnets get separated by a comma, okay? don't forget). the-nflag hands it a set of IPs to be scanned on the subnet (i.e.A.B.C.D/24), or you can use-fwith a text file holding an IP on each line π-sβ "Subnet number" β a unique number for the local subnet. (on each subnet you should give a different number, fr fr, don't be lazy) β¨-hβ "help". prints a brief help message and exits. short and sweet, we love that π-fβ "filename". specifies a file that holds the IPs list. if you provide it, it skips the scan of IPs entirely and overrides the-noption π₯
π EXAMPLES π
ib2ib_setup with -a (subnet to scan):
ib2ib_setup -d ib0 -a 61.130.1.1/24,61.130.2.1/24 -s 3
ib2ib_setup with -f (read IPs from file):
ib2ib_setup -d ib0 -f my_ips_list.txt -s 3
β SEE ALSO β
ibnetdiscover(8)β go read that one too, bestie π§
π okay that's the whole page, you ate that. now go configure something iconic.
this was the mlnx-tools(8) manual page from the System Manager's Manual, dated 2021-05-12 β mwah, love u, byeeee π¦β¨π
π¦ where this page comes from
- epel 10: mlnx-tools 23.07-5.el10_0 Β· CPL-1.0 OR BSD-2-Clause OR GPL-2.0-only
- epel 9: mlnx-tools 23.07-1.el9 Β· CPL-1.0 OR BSD-2-Clause OR GPL-2.0-only
- fedora 43: mlnx-tools 23.07-7.fc43 Β· CPL-1.0 OR BSD-2-Clause OR GPL-2.0-only
- fedora 44: mlnx-tools 23.07-8.fc44 Β· CPL-1.0 OR BSD-2-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms