[ofa-general] quick IPoIB config question
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Sun Jun 17 07:58:24 PDT 2007
Joe Landman wrote:
> Hi folks:
>
> Built OFED-1.2-rc4 on OpenSuSE 10.2, works fine as long as I turn of
> 32-bit build, and update to a 2.6.20 kernel. Installed the RPMs after
> build, and the system appears to be fine/well behaved. Is there a
> OFED-specific technique to have the ib0 interface configure at boot
> time, after drivers load? This might be distribution specific.
>
> I created a file named /etc/sysconfig/network/ifcfg-ib0 which contained
>
> BOOTPROTO='static'
> MTU=''
> REMOTE_IPADDR=''
> STARTMODE='onboot'
> USERCONTROL='no'
> NETMASK='255.255.0.0'
> IPADDR='10.1.32.2'
> DEVICE='ib0'
>
> Bringing the interface up with an 'ifconfig ib0 up' doesn't seem to
> assign the IP address and netmask to it.
>
> Hence my question. Is there an OFED specific method of configuring this
> (e.g. a config file I need to edit/create), or is it distribution
> dependent?
>
> If I force the issue with an ifconfig, it looks like it works fine. This
> is ok as a work around, and I can create an /etc/init.d/ib or similar to
> force the issue. I would prefer to do this "the right way", and if
> there is someone with guidance/pointers as to what that is, I would
> prefer to follow that.
>
> Thanks.
>
> Joe
>
Hi Joe,
You can do one of the following to set ib0 configuration from ifcfg-ib0:
* ifup ib0
* /etc/init.d/openibd restart
Regards,
Vladimir
More information about the general
mailing list