Jump to content

Static IP using Autounattend.xml


Recommended Posts

Hi,

I am trying to set Static IP using Autounattend.xml. Below it the XML snippet.

But it IP is not getting set.

I have a query. We are trying to set IP is specialization pass but the drivers for the ethernet device are provided during auditsystem pass. So during specialization pass no driver is present for the ethernet device but we are still trying to assign static IP. Is this failing as device is not detected?

Any solution to this problem?

<component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" language="neutral" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface wcm:action="add">
<UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="30">10.1.1.1/25</IpAddress>
</UnicastIpAddresses>
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<Identifier>68-ef-bd-f6-72-18</Identifier>
<Routes>
<Route wcm:action="add">
<Identifier>35</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>10.10.10.10</NextHopAddress>
</Route>
</Routes>
</Interface>
<Interface wcm:action="add">
<UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="31">20.2.2.2/25</IpAddress>
</UnicastIpAddresses>
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<Identifier>68-ef-bd-f6-72-19</Identifier>
<Routes>
<Route wcm:action="add">
<Identifier>36</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>20.20.20.20</NextHopAddress>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
<component name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" language="neutral" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="40">1.1.1.1</IpAddress>
<IpAddress wcm:action="add" />
</DNSServerSearchOrder>
<Identifier>68-ef-bd-f6-72-18</Identifier>
</Interface>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="41">2.2.2.2</IpAddress>
</DNSServerSearchOrder>
<Identifier>68-ef-bd-f6-72-19</Identifier>
</Interface>
</Interfaces>
</component>

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...