Static IP in Vista Unattend installation

H

Hege Berg

Hi,

I have generated an answer file for Windows Vista using the WAIK-tools.
Everything works just fine but I can't find any reference how to set a
static IP in unattend.xml. I have found the proper place (I think) for the
IP but can't seem to get the subnet mask set properly. Any ideas?


Thanks,

Hege
 
M

Matt Frost

I have the same problem you do. I did get the subnet mask to work. Under unicastipaddress--ipaddress if put in the ip address in teh following format it works.

192.168.0.1/24 would give you a subnet mask of 255.255.255.0
192.168.0.1/16 would give you a subnet mask of 255.255.0.0

Dont forget to put in the correct interface of the card default is

Local Area Connection

I am now stuck on default gateway I thinks its under routes-->NextHopAddress

But when ever I put in route info my vista install is failing for some reason. Let me know if you have any info on this

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
M

mattffrost

I have the same problem you do. I did get the subnet mask to work.
Under unicastipaddress--ipaddress if put in the ip address in teh
following format it works.

192.168.0.1/24 would give you a subnet mask of 255.255.255.0
192.168.0.1/16 would give you a subnet mask of 255.255.0.0

Dont forget to put in the correct interface of the card default is

Local Area Connection

I am now stuck on default gateway I thinks its under
routes-->NextHopAddress

But when ever I put in route info my vista install is failing for some
reason. Let me know if you have any info on this
 
M

Matt Frost

Ok,

I got this to work the static IP, subnet mask and default gateway. The <identifier> by default is Local Area Connection but could be somthing else. The IPaddress value with /24 give a subnet mask of 255.255.255.0 /16 would give 255.255.0.0 the nexthopipaddress gives the default gateway. The prefix of 0.0.0.0/0 is something that finally got this to work. I was getting setup error before this.

<settings pass="specialize">
<component name="Microsoft-Windows-TCPIP" language="neutral" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface>
<Identifier>Local Area Connection</Identifier>
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<UnicastIpAddresses>
<IpAddress wcm:keyValue="1">192.168.0.1/24</IpAddress>
</UnicastIpAddresses>
<Routes>
<Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>192.168.0.254</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
</settings>

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
M

mattffrost

Ok,

I got this to work the static IP, subnet mask and default gateway. The
<identifier> by default is Local Area Connection but could be somthing
else. The IPaddress value with /24 give a subnet mask of 255.255.255.0
/16 would give 255.255.0.0 the nexthopipaddress gives the default
gateway. The prefix of 0.0.0.0/0 is something that finally got this to
work. I was getting setup error before this.

<settings pass="specialize">
<component name="Microsoft-Windows-TCPIP" language="neutral"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface>
<Identifier>Local Area Connection</Identifier>
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<UnicastIpAddresses>
<IpAddress wcm:keyValue="1">192.168.0.1/24</IpAddress>
</UnicastIpAddresses>
<Routes>
<Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>192.168.0.254</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
</settings>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top