Value

Value 指定的值IpAddressValue specifies the value of the IpAddress.

它可以選擇性地指定路由的首碼長度,這通常會以子網路遮罩。It can also optionally specify a routing prefix length, which is often expressed as a subnet mask. 路由的首碼長度指的是在 IP 位址的前置位元數目。The routing prefix length refers to the number of leading bits in the IP address. A子網路遮罩是變數位元遮罩涵蓋的前置詞中使用的位元數。A subnet mask is a bit mask covering the number of bits used in the prefix.

如果未定義的路由的首碼長度,將會使用預設路由的首碼長度,根據 IP 位址的類別。If the routing prefix length is not defined, the default routing prefix length will be used, based on the class of the IP address.

預設路由的前置長度和 IPv4 位址的子網路遮罩Default routing prefix lengths and subnet masks for IPv4 addresses

類別Class 開始時間Start 結束End 預設路由的首碼長度Default routing prefix length 小數點十進位格式的預設子網路遮罩Default subnet mask in dotted decimal

AA

0.0.0.00.0.0.0

127.255.255.255127.255.255.255

88

255.0.0.0255.0.0.0

BB

128.0.0.0128.0.0.0

191.255.255.255191.255.255.255

1616

255.255.0.0255.255.0.0

CC

192.0.0.0192.0.0.0

223.255.255.255223.255.255.255

2424

255.255.255.0255.255.255.0

DD

224.0.0.0224.0.0.0

239.255.255.255239.255.255.255

多點傳送Multicasting

多點傳送Multicasting

EE

240.0.0.0240.0.0.0

255.255.255.254255.255.255.254

保留Reserved

保留Reserved

附註  不會顯示此項目,這是在屬性窗格中的 Windows 系統映像管理員 (Windows SIM) 直到您將新增IpAddress自動安裝回應檔案。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

指定的 IP 位址和路由的首碼長度的值。Specifies the value of the IP Address, and routing prefix length. 是一個字串。Value is a string.

若要使用預設的路由前置詞長度,使用格式:<IP_Address>To use the default routing prefix length, use the format: <IP_Address>. <IP_Address> 可以是任何有效的 IPv4 或 IPv6 位址。<IP_Address> can be any valid IPv4 or IPv6 address.

若要定義路由的首碼長度,使用格式:<IP_Address>/<Routing_Prefix_Length>To define a routing prefix length, use the format: <IP_Address>/<Routing_Prefix_Length>. IPv4 位址<Routing_Prefix_Length>可以是介於 0 到 32 之間的任何值。For IPv4 addresses, <Routing_Prefix_Length> can be any value between 0 and 32. 對 IPv6 位址而言<Routing_Prefix_Length>可以是介於 0 與 64 之間的任何值。For IPv6 addresses, <Routing_Prefix_Length> can be any value between 0 and 64.

有效的設定階段Valid Configuration Passes

特製化specialize

windowsPEwindowsPE

父階層Parent Hierarchy

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

套用至Applies To

如需此元件支援的架構與 Windows 版本的清單,請參閱Microsoft-Windows-TCPIPFor a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-TCPIP.

XML 範例XML Example

下列的 XML 輸出會顯示如何設定兩個靜態 IP 位址。The following XML output shows how to configure two static IP addresses. 在此範例中:In this example:

  • IPv4 位址設定為 192.168.1.0,路由前置詞長度為 25。The IPv4 address is set to 192.168.1.0, with a routing prefix length of 25. 這會為 255.255.255.128 定義子網路遮罩。This defines the subnet mask as 255.255.255.128.

  • IPv6 位址設定為 ffff:1::3,路由前置詞長度為 48。The IPv6 address is set to ffff:1::3, with a routing prefix length of 48. 這會為 ffff:ffff:ffff:0000:0000:0000:0000:0000 定義子網路遮罩。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>

下列的 XML 輸出會顯示如何設定單一 IP 位址。The following XML output shows how to configure a single IP address. 在此範例中,IP 位址設為 10.168.1.0。In this example, the IP address is set to 10.168.1.0. 這是 IPv4 類別 A 位址。This is an IPv4 Class A address. Windows 會使用預設的子網路遮罩 255.0.0.0。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>

下列的 XML 輸出會顯示如何設定單一的 TCP/IP 位址。The following XML output shows how to configure a single TCP/IP address. 在此範例中,IP 位址設為 160.168.1.0。In this example, the IP address is set to 160.168.1.0. 這是 IPv4 類別 B 位址。This is an IPv4 Class B address. Windows 會使用預設的子網路遮罩 255.255.0.0。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>

IpAddressIpAddress