Examples/Resources/xIPAddress/2-AddingMultipleStaticIP.ps1
<#
.EXAMPLE Disabling DHCP and adding multiple static IP Addresses for IPv4 and IPv6 #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xDhcpClient DisabledDhcpClient { State = 'Disabled' InterfaceAlias = 'Ethernet' AddressFamily = 'IPv6' } xIPAddress NewIPv6Address { IPAddress = '2001:4898:200:7:6c71:a102:ebd8:f482/64','2001:4598:210:7:6d71:a102:ebe8:f483/64' InterfaceAlias = 'Ethernet' AddressFamily = 'IPV6' } xIPAddress NewIPv4Address { IPAddress = '192.168.10.5/24','192.168.10.6/24' InterfaceAlias = 'Ethernet' AddressFamily = 'IPV4' } } } |