New-SCNCBGPRouter

Creates VMM BGP Router object that can be used for BGP configuration.

Syntax

New-SCNCBGPRouter -LocalASN <UInt32>
 [-RouterPeers <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.NCBGPPeer]>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The New-SCNCBGPRouter cmdlet creates a VMM Border Gateway Protocol (BGP) Router object that can be used for BGP configuration with System Center 2016 Virtual Machine Manager. You must configure either a BGP Router or a BGP Peer role to provide connectivity between your data center and external internet end points. You can create and configure more than one BGP Router by using one System Center 2016 Virtual Machine Manager installation.

Examples

Example: Create a BGP Router and peer with BGP Peer

PS C:\> $bgpPeer = New-SCNCBGPPeer RouterName "BGPPeer01"  -RouterIPAddress "10.10.50.45"  -RouterAsn 65 PS C:\> $bgpRouter = New-SCNCBGPRouter -LocalASN 64 -RouterPeers @($bgpPeer

This example creates a BGP Peer with router name BGPPeer01 and peers with BGP Router. The BGP Router object can be used in Set-SCFabricRoleResource to configure the BGP peer routers for Fabric Role Resources such as Load Balancer and Gateway.

Step 1: Create BGP Peer

Step 2: Create BGP Router

Step 3: Use the bgpRouter created in step 2 to configure the BGP peer routers for Fabric Role Resources using Set-SCFabricRoleResource.

Parameters

-LocalASN
Type:UInt32
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RouterPeers
Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.NCBGPPeer]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer
Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False