< Back

New-NsxLogicalRouterBgpNeighbour

Sat Jan 18, 2020 9:17 pm

NAME New-NsxLogicalRouterBgpNeighbour



SYNOPSIS

Creates a new BGP neighbour and adds it to the specified ESGs BGP

configuration.





SYNTAX

New-NsxLogicalRouterBgpNeighbour [-LogicalRouterRouting] <XmlElement> [-Confirm] [-IpAddress] <IPAddress>

[-RemoteAS] <Int32> [-ForwardingAddress] <IPAddress> [-ProtocolAddress] <IPAddress> [[-Weight] <Int32>]

[[-HoldDownTimer] <Int32>] [[-KeepAliveTimer] <Int32>] [[-Password] <String>] [[-Connection] <PSObject>]

[<CommonParameters>]





DESCRIPTION

An NSX Logical Router is a distributed routing function implemented within

the ESXi kernel, and optimised for east west routing.



Logical Routers perform ipv4 and ipv6 routing functions for connected

networks and support both static and dynamic routing via OSPF and BGP.



The New-NsxLogicalRouterBgpNeighbour cmdlet adds a new BGP neighbour to the

bgp configuration of the specified LogicalRouter.





PARAMETERS

-LogicalRouterRouting <XmlElement>



Required? true

Position? 1

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



-IpAddress <IPAddress>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-RemoteAS <Int32>



Required? true

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-ForwardingAddress <IPAddress>



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProtocolAddress <IPAddress>



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Weight <Int32>



Required? false

Position? 6

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-HoldDownTimer <Int32>



Required? false

Position? 7

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-KeepAliveTimer <Int32>



Required? false

Position? 8

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Password <String>



Required? false

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? 10

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 neighbour 1.2.3.4 with remote AS number 1234 with defaults.



PS C:\\> Get-NsxLogicalRouter | Get-NsxLogicalRouterRouting | New-NsxLogicalRouterBgpNeighbour -IpAddress 1.2.3.4

-RemoteAS 1234 -ForwardingAddress 1.2.3.1 -ProtocolAddress 1.2.3.2









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Add a new neighbour 1.2.3.4 with remote AS number 22235 specifying weight, holddown and keepalive timers

and dont prompt for confirmation.



PS C:\\> Get-NsxLogicalRouter | Get-NsxLogicalRouterRouting | New-NsxLogicalRouterBgpNeighbour -IpAddress 1.2.3.4

-RemoteAS 22235 -ForwardingAddress 1.2.3.1 -ProtocolAddress 1.2.3.2 -Confirm:$false -Weight 90 -HoldDownTimer 240

-KeepAliveTimer 90 -confirm:$false











RELATED LINKS