diff --git a/xCAT-server/share/xcat/netboot/esxi/47.xcat-networking b/xCAT-server/share/xcat/netboot/esxi/47.xcat-networking index e8804388a..f9507dbf8 100644 --- a/xCAT-server/share/xcat/netboot/esxi/47.xcat-networking +++ b/xCAT-server/share/xcat/netboot/esxi/47.xcat-networking @@ -11,6 +11,7 @@ if [ ! -z "$MACADDR" ]; then NIC=`esxcfg-nics -l|grep ${MACADDR}|awk '{print $1}'` esxcfg-vswitch -a vSwitch0:64 esxcfg-vswitch -A "Management Network" vSwitch0 + esxcfg-vswitch -L $NIC vSwitch0 esxcfg-vmknic -a -i DHCP -P -p "Management Network" esxcfg-init -R $MACADDR -K vmk0 fi