NetworkIpConfiguration provides comprehensive network IP configuration including interfaces, DNS, IP addresses, gateways, WINS, NetBIOS, routes, and IPv6 settings.
Use this resource when you need complete network configuration on a node, including static IP addresses, default gateways, DNS servers, WINS settings, NetBIOS configuration, static routes, IPv6 settings, and adapter bindings. This is the most comprehensive network configuration resource, combining capabilities from IpConfiguration and Network into a single resource.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
DisableNetBios |
Boolean |
Disable NetBios on all network interfaces. |
|
|
ConfigureIPv6 |
Int16 |
Configure IPv6 |
0 - 255 |
|
Hashtable[] |
List of network interfaces |
|||
Hashtable[] |
List of network routes |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Key |
String |
Alias of the network interface for which the IP address should be set. To use a specific InterfaceAlias a network adapter configuration is necessary. |
Default: Ethernet |
|
IpAddress |
String |
The desired IP address, optionally including prefix length using CIDR notation. See IPAddress |
||
Prefix |
Int |
IP address prefix. IPv4 classes:
|
Default: 24 |
|
Gateway |
String |
The desired default gateway address. |
||
DnsServer |
String[] |
The desired DNS Server address(es). See DNSServerAddress |
||
InterfaceMetric |
UInt32 |
Specifies the metric for an IP interface (IPv4 and IPv6). Typically, the interface metric gives preference to a particular interface, such as using wired if both wired and wireless are available. The default (empty) value is automatic. |
||
DisableNetBios |
Boolean |
Disable the NetBios on the network interface. See NetBios |
|
|
EnableLmhostsLookup |
Boolean |
Enable the LMHOSTS lookup on the network interface. |
|
|
EnableDhcp |
Boolean |
Enable the Dynamic Host Configuration Protocol (DHCP) for the IP interface. See NetIPInterface If set to |
|
|
DisableIPv6 |
Boolean |
Disable IPv6 on the network interface. |
|
|
NetworkCategory |
String |
Specifies the category of the network. You cannot set the category to The acceptable values for this parameter are:
|
|
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Key |
String |
Specifies the alias of a network interface. To use a specifc InterfaceAlias a network adapter configuration is necessary. |
Default: Ethernet |
|
AddressFamily |
Key |
String |
Specifies the IP address family. |
|
DestinationPrefix |
Key |
String |
Specifies a destination prefix of an IP route. A destination prefix consists of an IP address prefix and a prefix length, separated by a slash (/). |
|
NextHop |
Key |
String |
Specifies the next hop for the IP route. |
|
Ensure |
String |
Specifies whether the route should exist. |
|
|
RouteMetric |
UInt16 |
Specifies an integer route metric for an IP route. |
Default: |
|
Publish |
String |
Specifies the publish setting of an IP route. |
|
|
PreferredLifetime |
Real64 |
Specifies a preferred lifetime in seconds of an IP route. |
NetworkIpConfiguration:
DisableNetBios: true
ConfigureIPv6: 32
Interfaces:
- InterfaceAlias: Ethernet
IpAddress: 10.0.0.1
Prefix: 8
Gateway: 10.0.0.254
DnsServer:
- 10.1.1.1
- 10.1.1.2
EnableDhcp: false
- InterfaceAlias: Wi-Fi
EnableDhcp: true
DisableIPv6: true
InterfaceMetric: 50
Routes:
- InterfaceAlias: Ethernet
DestinationPrefix: 192.168.0.0/16
NextHop: 192.168.120.0
RouteMetric: 200Datum.yml (Excerpt)default_lookup_options: MostSpecific
lookup_options:
NetworkIpConfiguration:
merge_hash: deep
NetworkIpConfiguration\Interfaces:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- InterfaceAlias
NetworkIpConfiguration\Routes:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- InterfaceAlias
- AddressFamily
- DestinationPrefix
- NextHop