From 510f11b82c1a17dd25872a94c4ea21fc06085c08 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 21 Jul 2009 09:09:11 +0000 Subject: [PATCH] fixed defect #2824711 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3843 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index cab95db64..290316d54 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -99,9 +99,9 @@ foreach my $num ( @nums ) { } } #Configure the IB interfaces. Customize the port num. - my $iba_num = $num; + my $iba_num = int($num / 2); my $ib_adapter = "iba$iba_num"; - my $port = 1; + my $port = $num + 1; my $mkib_cmd = "mkiba -a $ip -i $nic -A $ib_adapter -p $port -P -1 -S up -m $netmask"; runcmd($mkib_cmd); system("logger -t xcat 'configiba: successfully configured $nic.'");