ProLiant Deployment and Provisioning
1832920 Members
3243 Online
110048 Solutions
New Discussion

Using SYSPREP to apply IP addres to Virtual NIC Team

 
SOLVED
Go to solution
Paul Jones_3
Occasional Advisor

Using SYSPREP to apply IP addres to Virtual NIC Team

I am using RDP to create an imaging process for a DL380-G3. I am able to create a NIC team via the CQNICCFG utility, but I can't seem to figure out how to apply a static IP address to the virtual NIC Team using SYSPREP.

Is it possible to apply a static IP to a virtual NIC using an automated process, such as SYSPREP?

Any suggestions or information would be appreciated.

Thanks,

Paul
2 REPLIES 2
Simon Fox_2
New Member
Solution

Re: Using SYSPREP to apply IP addres to Virtual NIC Team

Hello Paul

I use the following in unattend scripted builds which uses the template nicteam.txt and writes the required IP informtion in to a file based upon the systems ID.

rem ReplaceTokens .\deploy\configs\nicteam.txt .\deploy\configs\team\%ID%.txt

The contents of nicteam.txt is as follows:

IPAddress1="%NIC2IPADDR%"
SubnetMask1="%NIC2IPNETMASK%"
DefaultGateway1="%NIC2IPGATEWAY%"

strnetshell1="netsh.exe interface ip set address " & chr(34) & "Team #0 - Adapter Fault Tolerance Mode" & chr(34) & " static " & IPAddress1 & " " & SubnetMask1 & " " & DefaultGateway1 & " 1"

WshShell.run "cmd /c " & strnetshell1 & " >> %systemdrive%\log.txt",1,True

The above is just a subset of whats actually in the file and works a treat for me.

Hope this helps
Regards
Simon
Paul Jones_3
Occasional Advisor

Re: Using SYSPREP to apply IP addres to Virtual NIC Team

Simon,

Thanks for the help. This works perfectly. You've removed one of the biggest thorns in my side. Much appreciated.

Paul