Share via


AddGREInterface method of the PS_VpnS2SInterface class

Creates an S2S interface.

Syntax

static uint32 AddGREInterface(
  [in]  string          Name,
  [in]  uint32          GreKey,
  [in]  string          Destination[],
  [in]  boolean         AdminStatus,
  [in]  uint32          EnableQoS,
  [in]  uint64          TxBandwidthKbps,
  [in]  uint64          RxBandwidthKbps,
  [in]  string          IPv4Subnet[],
  [in]  string          IPv6Subnet[],
  [in]  boolean         PassThru,
  [in]  string          RoutingDomain,
  [in]  boolean         InternalIPv4,
  [in]  boolean         InternalIPv6,
  [in]  string          IPv4Address,
  [in]  string          IPv6Address,
  [in]  string          SourceIpAddress,
  [in]  boolean         GreTunnel,
  [out] VpnS2SInterface cmdletOutput
);

Parameters

Name [in]

The name of the connection.

GreKey [in]

The GRE key for this interface.

Destination [in]

The destination end-point of the S2S connection.

AdminStatus [in]

The admin status of the cmdlet.

EnableQoS [in]

Whether QoS is enabled on the interface.

TxBandwidthKbps [in]

The transmit bandwidth limit for the interface, in kbps.

RxBandwidthKbps [in]

The receive bandwidth limit for the interface, in kbps.

IPv4Subnet [in]

The IPv4 subnet that is routed on this connection.

IPv6Subnet [in]

The IPv6 subnet that is routed on this connection.

PassThru [in]

Set True to return the object or objects on which the operation is done.

RoutingDomain [in]

The routing domain name to which the interface is added.

InternalIPv4 [in]

Specifies Negotiation of IPv4 Address.

InternalIPv6 [in]

Specifies Negotiation of IPv6 Address.

IPv4Address [in]

The IPv4 address for this interface.

IPv6Address [in]

The IPv6 address for this interface.

SourceIpAddress [in]

The IP address of the interface.

GreTunnel [in]

TBD

cmdletOutput [out]

The cmdlet output.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_VpnS2SInterface