Get-BgpCustomRoute

Get-BgpCustomRoute

Gets custom route information from the BGP router.

Sintaxis

Parameter Set: Get1
Get-BgpCustomRoute [-AsJob] [-CimSession <CimSession[]> ] [-RoutingDomain <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Descripción detallada

The Get-BgpCustomRoute cmdlet gets custom route information from the Border Gateway Protocol (BGP) routing table. The cmdlet returns the interface and network mask for the custom routes from the BGP routing table. Custom routes are routes that an administrator configures and adds from a routing interface or network mask to the BGP routing table. If the BGP router is in a multitenant deployment, you must specify the RoutingDomain parameter. If the BGP router is not in a multitenant deployment, do not specify the RoutingDomain parameter,

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-RoutingDomain<String>

Specifies the name, as a string, of a routing domain. The name of a routing domain is a unique user-defined alphanumeric string.

Alias

RoutingDomainName

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Management.Infrastructure.CimInstance#BgpCustomNetworkInfo

Ejemplos

Example 1: Get all custom routes from the BGP router

This command gets all the interfaces and network prefixes for all custom routes from the BGP router.

PS C:\> Get-BgpCustomRoute

Example 2: Get custom routes for a routing domain

This command gets the interfaces and network prefixes for all custom routes from the BGP router for the routing domain named Rd_001 in a multi-tenant environment.

PS C:\> Get-BgpCustomRoute -RoutingDomain "Rd_001"

Temas relacionados

Add-BgpCustomRoute

Remove-BgpCustomRoute