Hi!
You were configure C class subnet.
But your IP address not in same subnet range.
* 10.0.1.xxx vs 10.0.2.xxx
And...
1st interface is eth0, but 2nd interface is Ib0.
(Does it Ethernet mode and IPoIB mode?)
If you want to configure IPoIB, all interface must be ib0, ib1, ...
Good luck to be with you...:)