Skip to main content

Cornelis Technical Documentation

6.8.2. Rename the SuperNIC Interface

To rename the SuperNIC interface (for example, to ib0), create or update the following udev rule in /etc/udev/rules.d/70-persistent-ipoib.rules:

ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", \ 
ATTR{address}=="?*d0:06:6a:02:01:00:00:32", NAME="ib0"

Replace the ATTR{address} value with your SuperNIC port’s GUID. Note the following command can be issued to generate the GUID string for first SuperNIC in the system:

opainfo -p 2 | grep PortGID | awk -F: '{print $4}' | sed 's/../&:/g; s/:$//'

After modifying the udev rule, reload the ib_ipoib driver for the changes to take effect:

modprobe -r ib_ipoib 
modprobe ib_ipoib