DSCResources/DSC_DefaultGatewayAddress/en-US/about_DefaultGatewayAddress.help.txt
.NAME
DefaultGatewayAddress .DESCRIPTION The resource is responsible for creating and managing the Default Gateway for an interface on a node. .PARAMETER InterfaceAlias Key - String Alias of the network interface for which the default gateway address is set. .PARAMETER AddressFamily Key - String Allowed values: IPv4, IPv6 IP address family. .PARAMETER Address Write - String The desired default gateway address - if not provided default gateway will be removed. .EXAMPLE 1 Remove the IPv4 default gateway from the network interface 'Ethernet'. Configuration DefaultGatewayAddress_RemoveDefaultGateway_Config { Import-DscResource -Module NetworkingDsc Node localhost { DefaultGatewayAddress RemoveDefaultGateway { InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } } } .EXAMPLE 2 Set the IPv4 default gateway of the network interface 'Ethernet' to '192.168.1.1'. Configuration DefaultGatewayAddress_SetDefaultGateway_Config { Import-DscResource -Module NetworkingDsc Node localhost { DefaultGatewayAddress SetDefaultGateway { Address = '192.168.1.1' InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } } } |