Set static IP to IB adapters.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2795 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1e5a470fdd
commit
1653eb7f59
@ -57,7 +57,7 @@ foreach my $num (@nums) {
|
||||
}
|
||||
if (!open(FILE, ">$dir/ifcfg-$nic")) { system("logger -t xcat 'configiba: cannot open $dir/ifcfg-$nic.'"); exit 1; }
|
||||
print FILE "DEVICE=$nic\n";
|
||||
print FILE "BOOTPROTO=none\n";
|
||||
print FILE "BOOTPROTO=static\n";
|
||||
print FILE "IPADDR=$ip\n";
|
||||
print FILE "NETMASK=$netmask\n";
|
||||
print FILE "GATEWAY=$gateway\n";
|
||||
|
Loading…
Reference in New Issue
Block a user