介面 (microsoft-windows-tcpip-介面) Interfaces (microsoft-windows-tcpip-interfaces)

Interfaces 指定 TCP/IP 介面設定的詳細資料。Interfaces specifies details about the TCP/IP interface settings.

TCP/IP 設定可分成兩個主要群組:全域設定和介面設定。TCP/IP settings can be divided into two primary groups—global settings and interface settings. 全域設定適用于整個通訊協定,並套用至所有網路介面。Global settings apply to the protocols as a whole and are applied across all network interfaces. 介面設定是特定的網路介面。Interface settings are specific to a particular network interface.

子元素Child Elements

設定Setting DescriptionDescription
介面Interface 包含 TCP/IP 介面的設定。Contains settings for the TCP/IP interface.

有效的設定階段Valid Configuration Passes

特殊化specialize

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-TCPIP | 介面Microsoft-Windows-TCPIP | Interfaces

套用至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 輸出顯示如何設定 TCPIP。The following XML output shows how to configure 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>

Microsoft-Windows-TCPIPMicrosoft-Windows-TCPIP