다음을 통해 공유


접두사

Prefix는 지정된 경로를 사용하는 NextHop의 대상 IP 주소를 지정합니다.

접두사 길이는 비트 단위로 지정됩니다. 처음 n비트(여기서 n은 접두사 길이임) 다음의 접두사 주소의 모든 비트는 0이어야 합니다.

참고 IPv6 프로토콜의 경우 접두사 길이는 64이며, 한 가지 예외가 있습니다. 접두사 주소의 처음 16비트가 0이면 접두사 길이가 0에서 128 사이일 수 있습니다.

경로 아래의 설정은 식별자, 메트릭, NextHopAddress접두사 순서로 추가해야 합니다. Windows SIM에 무인 파일을 저장한 후 아래 XML 예제와 같이 출력이 올바른 순서로 표시되는지 XML 파일에서 확인합니다.

Prefix

경로의 접두사를 지정합니다. Prefix는 최대 길이가 49자인 문자열입니다.

다음 방법 중 하나로 접두사에 입력할 수 있습니다.

  • 정수로 입력합니다.

    접두사 값은 IP 주소에서 일치해야 하는 비트 수입니다. 예를 들어 NextHop IP 주소가 12.34.0.0이고 접두사는 16(일반적으로 12.34.0.0/16)인 경우 12.34.*.\* 주소로 전송된 모든 트래픽은 해당 경로를 통과합니다(강력한 호스트 모델 및 라우팅 메트릭에 따라). 12.34.0.0은 비교할 주소의 일부이고 16은 일치해야 하는 비트 수입니다.

  • 문자열로 입력합니다.

    접두사가 문자열로 설정된 경우 NextHopAddress 값을 설정할 필요가 없습니다.

이 문자열 형식은 비어 있는 요소를 지원하지 않습니다. 이 설정에 빈 값을 만들지 마세요.

유효한 구성 패스

specialize

windowsPE

부모 계층

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

적용 대상

이 구성 요소가 지원하는 Windows 버전 및 아키텍처 목록은 Microsoft-Windows-TCPIP를 참조하세요.

XML 예

다음 XML 출력에서는 네트워크 경로 TCP/IP 접두사를 정수로 구성하는 방법을 보여줍니다.

<Prefix>16</Prefix>

다음 XML 출력에서는 IP v4 네트워크 접두사를 문자열로 구성하는 방법을 보여줍니다.

<Prefix>192.168/16</Prefix>

다음 XML 출력에서는 정수 형식의 경로 접두사 등 TCP/IP 인터페이스를 구성하는 방법을 보여줍니다.

<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>
      <Identifier>123</Identifier>
      <UnicastIpAddresses>
        <IpAddress wcm:action="add" wcm:keyValue="1">192.168.0.1/24</IpAddress>
        <IpAddress wcm:action="add" wcm:keyValue="2">ffff:1::3/48</IpAddress>
      </UnicastIpAddresses>      <Routes>
         <Route wcm:action="add">
            <Identifier>1</Identifier> 
            <Metric>10</Metric> 
            <NextHopAddress>12.34.0.0</NextHopAddress> 
            <Prefix>16</Prefix> 
         </Route>
         <Route wcm:action="add">
            <Identifier>10</Identifier> 
            <Metric>29</Metric> 
            <NextHopAddress>12.34.56.0</NextHopAddress> 
            <Prefix>24</Prefix> 
         </Route>
      </Routes>
   </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>
      <Identifier>456</Identifier>
       <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>12.34.0.0</NextHopAddress> 
            <Prefix>16</Prefix> 
         </Route>
      </Routes>
   </Interface>
</Interfaces>

다음 XML 출력에서는 문자열 형식의 경로 접두사 등 TCP/IP 인터페이스를 구성하는 방법을 보여줍니다.

<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>
      <Identifier>123</Identifier>
      <UnicastIpAddresses>
        <IpAddress wcm:action="add" wcm:keyValue="1">192.168.0.1/24</IpAddress>
        <IpAddress wcm:action="add" wcm:keyValue="2">ffff:1::3/48</IpAddress>
      </UnicastIpAddresses>      <Routes>
         <Route wcm:action="add">
            <Identifier>1</Identifier> 
            <Metric>10</Metric> 
            <Prefix>12.34/16</Prefix> 
         </Route>
         <Route wcm:action="add">
            <Identifier>10</Identifier> 
            <Metric>29</Metric> 
            <Prefix>12.34.56/24</Prefix> 
         </Route>
      </Routes>
   </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>
      <Identifier>456</Identifier> 
      <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> 
            <Prefix>12.34/16</Prefix> 
         </Route>
      </Routes>
   </Interface>
</Interfaces>

Route