Metric (microsoft-windows-tcpip-interfaces-interface-ipv4settings-metric)
Metric
는 IPv4 프로토콜에 대한 인터페이스 메트릭을 지정합니다. 경로를 선택할 경우 기본 설정을 결정하는 데 사용되는 전체 메트릭은 경로 메트릭과 인터페이스 메트릭의 합계입니다.
일반적으로 인터페이스 메트릭은 두 개의 어댑터와 인터페이스를 동일한 대상에 연결하여 사용할 수 있다고 가정하여 특정 인터페이스에 대한 기본 설정을 제공합니다. 기본 설정을 지정하지 않으면 스택은 각 인터페이스의 스택에서 생성하는 자동 메트릭을 적용합니다.
이 시나리오는 일반적으로 서버에 여러 이더넷 NIC가 있고 새 WCM 기능으로 인해 클라이언트 시나리오에 적용되지 않는 서버 시나리오에 적용됩니다.
기본 설정을 지정하지 않으면 스택은 자동으로 무선이 아니라 기본 유선과 같은 자동 메트릭을 선택합니다.
값
메트릭 |
IPv4 프로토콜에 대한 인터페이스 메트릭을 지정합니다. 범위는 5(초당 2GB(기가바이트) 이상)에서 50(초당 500KB(킬로바이트) 미만)까지입니다. |
유효한 구성 패스
specialize
windowsPE
부모 계층
Microsoft-Windows-TCPIP | 인터페이스 | 인터페이스 | Ipv4Settings | 메트릭
적용 대상
이 구성 요소가 지원하는 Windows 버전 및 아키텍처의 목록은 Microsoft-Windows-TCPIP를 참조하세요.
XML 예
다음 XML 출력은 TCPIP를 구성하는 방법을 보여 줍니다.
<component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<!-- Add static IP address (192.168.0.1/24, ffff:1::3/48) & route (12.34.0.0/16) to interface with identifier "Ethernet 1" --> <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>Ethernet 1</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>Local Area Connection</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>
</component>