5 Replies Latest reply on Feb 21, 2011 7:38 AM by Tony Cresswell

    HP Network teaming and renaming network connection name

      I am trying to team a couple of network cards, change the network connection name and assign ip address to the new teamed network connection.

       

       

      REM **************************************

      REM ***** Rename team NICs *****

      REM **************************************

      netsh interface set interface name="Local Area Connection 4" newname="Primary Team NIC"

      netsh interface set interface name="Local Area Connection" newname="Secondary Team NIC"

       

      REM ***************************************

      REM ***** Rename Backup NIC *****

      REM ***************************************

      netsh interface set interface name="Local Area Connection 2" newname="Backup LAN"

       

      REM *************************************

      REM ***** Disable Fourth NIC *****

      REM *************************************

      netsh interface set interface "Local Area Connection 3" disable

       

       

      REM *****************************************

      REM ***** Setup network teaming *****

      REM *****************************************

       

      c:

      cd \

      cd "Program Files"\HP\NCU

       

      start cqniccmd /c C:\TEMP\NICTEAM\teamcfg.xml

       

      REM *****************************************

      REM ***** Rename Teamed LAN *****

      REM *****************************************

       

      netsh interface set interface name="Local Area Connection" newname="Public LAN"

       

       

      REM *******************************************

      REM ***** Setup Teamed IP Config *****

      REM *******************************************

       

       

      netsh interface ip set address "Public LAN" static ??TARGET.IP_ADDRESS?? ??TARGET.SUBNET_MASK?? xxx.xx.x.x 1

       

      netsh interface ip set dns "Public LAN" static xxx.xx.x.xx

      netsh interface ip add dns "Public LAN" xxx.xx.x.xx

       

      netsh interface ip set wins "Public LAN" static xxx.xx.x.xx

      netsh interface ip add wins "Public LAN" xxx.xx.x.xx

       

      The above is the code that im running. I have tried creating a BL package with the code above as an external command and in a batch file and they both fail after teaming the network cards (fails after completing "start cqniccmd /c C:\TEMP\NICTEAM\teamcfg.xml")

       

      If i run the script manually on the host, it works fine.

       

      Has anyone else seen this problem before and how can i get around this?