Examples/Resources/xDefaultGatewayAddress/2-SetDefaultGateway.ps1

<#
    .EXAMPLE
    Adding a default gateway to the interface
#>

Configuration Example
{
    param
    (
        [string[]] $NodeName = 'localhost'
    )

    Import-DscResource -Module xNetworking
    Node $NodeName
    {
        xDefaultGatewayAddress SetDefaultGateway
        {
            Address        = '192.168.1.1'
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv6'
        }
    }
}