User Manual

Rev 2.0-3.0.0
Mellanox Technologies
214
Step 5. IB requires loading an IPv6 module. If you do not have it in your initrd, please add it using
the following command:
Step 6. To load the modules, you need the insmod executable. If you do not have it in your
initrd, please add it using the following command:
Step 7. If you plan to give your IB device a static IP address, then copy ifconfig. Otherwise, skip
this step.
Step 8. If you plan to obtain an IP address for the IB device through DHCP, then you need to copy the
DHCP client which was compiled specifically to support IB;
Otherwise, skip this step.
To continue with this step, DHCP client v3.1.3 needs to be already installed on the machine you
are working with.
Copy the DHCP client v3.1.3 file and all the relevant files as described below.
Step 9. Create a configuration file for the DHCP client (as described in Section 4.3.3.1) and place it
under
/tmp/initrd_ib/sbin. The following is an example of such a file (called
dclient.conf):
dhclient.conf:
Step 10. Now you can add the commands for loading the copied modules into the file init. Edit the file
/tmp/initrd_ib/init and add the following lines at the point you wish the IB driver to be
loaded.
host1$ cp /lib/modules/`uname -r`/kernel/net/ipv6/ipv6.ko \
/tmp/initrd_ib/lib/modules
host1$ cp /sbin/insmod /tmp/initrd_ib/sbin/
host1$ cp /sbin/ifconfig /tmp/initrd_ib/sbin
host1# cp <path to DHCP client v3.1.3>/dhclient /tmp/initrd_ib/sbin
host1# cp <path to DHCP client v3.1.3>/dhclient-script /tmp/initrd_ib/sbin
host1# mkdir -p /tmp/initrd_ib/var/state/dhcp
host1# touch /tmp/initrd_ib/var/state/dhcp/dhclient.leases
host1# cp /bin/uname /tmp/initrd_ib/bin
host1# cp /usr/bin/expr /tmp/initrd_ib/bin
host1# cp /sbin/ifconfig /tmp/initrd_ib/bin
host1# cp /bin/hostname /tmp/initrd_ib/bin
# The value indicates a hexadecimal number
# For a ConnectX device interface "ib0" {send dhcp-client-identifier
ff:00:00:00:00:00:02:00:00:02:c9:00:00:02:c9:03:00:00:10:39;
}
The order of the following commands (for loading modules) is critical.
echo “loading ipv6”
/sbin/insmod /lib/modules/ipv6.ko
echo “loading IB driver”
/sbin/insmod /lib/modules/ib/ib_addr.ko