diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index f913b0dc8..c49cafbf2 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -744,8 +744,14 @@ sub addnic { #add a section if not there $restartdhcp=1; print "Adding NIC $nic\n"; - push @dhcpconf, "#shared-network $nic {\n"; - push @dhcpconf, "#\} # $nic nic_end\n"; + if ($nic =~ /!remote!/) { + push @dhcpconf, "#shared-network $nic {\n"; + push @dhcpconf, "#\} # $nic nic_end\n"; + } else { + push @dhcpconf, "shared-network $nic {\n"; + push @dhcpconf, "\} # $nic nic_end\n"; + } + } #return; #Don't touch it, it should already be fine..