< Back

New-NsxEdgeStaticRoute

Sat Jan 18, 2020 9:16 pm

NAME New-NsxEdgeStaticRoute



SYNOPSIS

Creates a new static route and adds it to the specified ESGs routing

configuration.





SYNTAX

New-NsxEdgeStaticRoute [-EdgeRouting] <XmlElement> [-Confirm] [-Vnic <Int32>] [-MTU <Int32>] [-Description

<String>] -NextHop <IPAddress> -Network <String> [-AdminDistance <Int32>] [-Connection <PSObject>]

[<CommonParameters>]





DESCRIPTION

An NSX Edge Service Gateway provides all NSX Edge services such as firewall,

NAT, DHCP, VPN, load balancing, and high availability. Each NSX Edge virtual

appliance can have a total of ten uplink and internal network interfaces and

up to 200 subinterfaces. Multiple external IP addresses can be configured

for load balancer, site???????????????to???????????????site VPN, and NAT services.



ESGs perform ipv4 and ipv6 routing functions for connected networks and

support both static and dynamic routing via OSPF, ISIS and BGP.



The New-NsxEdgeStaticRoute cmdlet adds a new static route to the routing

configuration of the specified Edge Services Gateway.





PARAMETERS

-EdgeRouting <XmlElement>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-Vnic <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MTU <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextHop <IPAddress>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Network <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AdminDistance <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add a new static route to ESG Edge01 for 1.1.1.0/24 via 10.0.0.200



PS C:\\> Get-NsxEdge Edge01 | Get-NsxEdgeRouting | New-NsxEdgeStaticRoute -Network 1.1.1.0/24 -NextHop 10.0.0.200











RELATED LINKS