Value (microsoft-windows-tcpip-interfaces-interface-unicastipaddresses-ipaddress-value)

Value specifies the value of the IpAddress.

It can also optionally specify a routing prefix length, which is often expressed as a subnet mask. The routing prefix length refers to the number of leading bits in the IP address. A subnet mask is a bit mask covering the number of bits used in the prefix.

If the routing prefix length is not defined, the default routing prefix length will be used, based on the class of the IP address.

Default routing prefix lengths and subnet masks for IPv4 addresses

Class Start End Default routing prefix length Default subnet mask in dotted decimal

A

0.0.0.0

127.255.255.255

8

255.0.0.0

B

128.0.0.0

191.255.255.255

16

255.255.0.0

C

192.0.0.0

223.255.255.255

24

255.255.255.0

D

224.0.0.0

239.255.255.255

Multicasting

Multicasting

E

240.0.0.0

255.255.255.254

Reserved

Reserved

Note   This element does not appear in the Properties pane of Windows System Image Manager (Windows SIM) until you add IpAddress to the unattended installation answer file.

Values

Value

Specifies the value of the IP Address, and routing prefix length. Value is a string.

To use the default routing prefix length, use the format: <IP_Address>. <IP_Address> can be any valid IPv4 or IPv6 address.

To define a routing prefix length, use the format: <IP_Address>/<Routing_Prefix_Length>. For IPv4 addresses, <Routing_Prefix_Length> can be any value between 0 and 32. For IPv6 addresses, <Routing_Prefix_Length> can be any value between 0 and 64.

Valid Configuration Passes

specialize

windowsPE

Parent Hierarchy

Microsoft-Windows-TCPIP | Interfaces | Interface | UnicastIpAddresses | IpAddress | Value

Applies To

For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-TCPIP.

XML Example

The following XML output shows how to configure two static IP addresses. In this example:

  • The IPv4 address is set to 192.168.1.0, with a routing prefix length of 25. This defines the subnet mask as 255.255.255.128.

  • The IPv6 address is set to ffff:1::3, with a routing prefix length of 48. This defines the subnet mask as ffff:ffff:ffff:0000:0000:0000:0000:0000.

      <UnicastIpAddresses>
         <IpAddress wcm:action="add" wcm:keyValue="1">192.168.0.1/25</IpAddress> 
         <IpAddress wcm:action="add" wcm:keyValue="2">ffff:1::3/48</IpAddress> 
      </UnicastIpAddresses>

The following XML output shows how to configure a single IP address. In this example, the IP address is set to 10.168.1.0. This is an IPv4 Class A address. Windows uses the default subnet mask of 255.0.0.0.

      <UnicastIpAddresses>
         <IpAddress wcm:action="add" wcm:keyValue="1">10.168.1.0</IpAddress> 
      </UnicastIpAddresses>

The following XML output shows how to configure a single TCP/IP address. In this example, the IP address is set to 160.168.1.0. This is an IPv4 Class B address. Windows uses the default subnet mask of 255.255.0.0.

      <UnicastIpAddresses>
         <IpAddress wcm:action="add" wcm:keyValue="1">160.168.1.0</IpAddress> 
      </UnicastIpAddresses>

IpAddress