en-US/about_xRoute.help.txt

.NAME
    xRoute
 
# Description
     
    This resource is used to control static routes on an interface for a node.
     
.PARAMETER InterfaceAlias
    Key - string
    Specifies the alias of a network interface.
 
.PARAMETER AddressFamily
    Key - string
    Allowed values: IPv4, IPv6
    Specifies the IP address family.
 
.PARAMETER 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 (/).
 
.PARAMETER NextHop
    Key - String
    Specifies the next hop for the IP route.
 
.PARAMETER Ensure
    Write - String
    Allowed values: Present, Absent
    Specifies whether the route should exist.
 
.PARAMETER RouteMetric
    Write - Uint16
    Specifies an integer route metric for an IP route.
 
.PARAMETER Publish
    Write - String
    Allowed values: No, Yes, Age
    Specifies the publish setting of an IP route.
 
.PARAMETER PreferredLifetime
    Write - Real64
    Specifies a preferred lifetime in seconds of an IP route.
 
 
    .EXAMPLE
    Add a net route to the Ethernet interface
 
Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )
 
    Import-DSCResource -ModuleName xNetworking
 
    Node $NodeName
    {
        xRoute NetRoute1
        {
            Ensure = 'Present'
            InterfaceAlias = 'Ethernet'
            AddressFamily = 'IPv4'
            DestinationPrefix = '192.168.0.0/16'
            NextHop = '192.168.120.0'
            RouteMetric = 200
        }
    }
}