New-SCNCBGPRouter

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

Syntax

New-SCNCBGPRouter
   [-VMMServer <ServerConnection>]
   -LocalASN <UInt32>
   [-RouterPeers <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.NCBGPPeer]>]
   [<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 2019 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 2019 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
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RouterPeers

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.NCBGPPeer]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False