diff --git a/xCAT-server/lib/xcat/plugins/slpdiscover.pm b/xCAT-server/lib/xcat/plugins/slpdiscover.pm index 3cbbc5b99..107c8dcf0 100644 --- a/xCAT-server/lib/xcat/plugins/slpdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/slpdiscover.pm @@ -204,7 +204,7 @@ sub setupIMM { } else { (my $sip,my $mask,my $gw) = xCAT_plugin::bmcconfig::net_parms($ip); my $cmd = "ifconfig eth0 -c static -i $ip -s $mask"; - if ($gw) { $cmd .= "-g $gw"; } + if ($gw) { $cmd .= " -g $gw"; } $ssh->cmd($cmd); } }