Prefix

Prefix specifies the prefix for the route. This setting should be specified as <address>/<prefix length> (for example, 10.0.0.0/8 or ffff:ffff:ffff:ffff::0/64).

The prefix length is specified in bits. All bits of the prefix address after the first n bits (where n is the prefix length) must be zero.

Note

For the IPv6 protocol, the prefix length is 64, with one exception. If the first 16 bits of the prefix address are zero, the prefix length can vary between 0 and 128.

Values

Prefix

Specifies the prefix for the route. Prefix is a string with a maximum length of 49 characters.

This string type does not support empty elements. Do not create an empty value for this setting.

Valid Passes

specialize

windowsPE

Parent Hierarchy

Microsoft-Windows-TCPIP | Interfaces | Interface | Routes | Route | Prefix

Applies To

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

XML Example

The following XML output shows how to configure TCPIP.

<Interfaces>
   <Interface wcm:action="add">
      <Ipv4Settings>
         <DhcpEnabled>true</DhcpEnabled> 
         <Metric>20</Metric> 
         <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled> 
      </Ipv4Settings>
      <Ipv6Settings>
         <DhcpEnabled>false</DhcpEnabled> 
         <Metric>30</Metric> 
         <RouterDiscoveryEnabled>true</RouterDiscoveryEnabled> 
      </Ipv6Settings>
      <Routes>
         <Route wcm:action="add">
            <Identifier>1</Identifier> 
            <Metric>10</Metric> 
            <NextHopAddress>10.0.0.1</NextHopAddress> 
            <Prefix>10</Prefix> 
         </Route>
         <Route wcm:action="add">
            <Identifier>10</Identifier> 
            <Metric>29</Metric> 
            <NextHopAddress>123.45.67.8</NextHopAddress> 
            <Prefix>234</Prefix> 
         </Route>
      </Routes>
      <UnicastIpAddresses>
         <IpAddress wcm:action="add" wcm:keyValue="1">123.45.6.78</IpAddress> 
         <IpAddress wcm:action="add" wcm:keyValue="2">fff:1::3</IpAddress> 
      </UnicastIpAddresses>
      <Identifier>123</Identifier>
   </Interface>
   <Interface wcm:action="add">
      <Ipv4Settings>
         <DhcpEnabled>true</DhcpEnabled> 
         <Metric>20</Metric> 
         <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled> 
      </Ipv4Settings>
      <Ipv6Settings>
         <DhcpEnabled>false</DhcpEnabled> 
         <Metric>10</Metric> 
         <RouterDiscoveryEnabled>true</RouterDiscoveryEnabled> 
      </Ipv6Settings>
      <UnicastIpAddresses>
         <IpAddress wcm:action="add" wcm:keyValue="1">123.45.67.8</IpAddress> 
         </UnicastIpAddresses>
      <Routes>
         <Route wcm:action="add">
            <Identifier>1</Identifier> 
            <Metric>10</Metric> 
            <NextHopAddress>123.45.67/8</NextHopAddress> 
            <Prefix>12345</Prefix> 
         </Route>
      </Routes>
      <Identifier>456</Identifier> 
   </Interface>
</Interfaces>

See Also

Concepts

Route