匯出 (0) 列印
全部展開

路由及遠端存取服務 (RRAS) 範本

更新日期: 2014年11月

請將以下範本當做指導方針。對於 RRAS,建議您最好在管理入口網站中下載可用的指令碼。如需指令碼和使用方式的詳細資訊,請參閱 Windows Azure 虛擬網路中使用 Windows Server 2012 RRAS 的站對站 VPN

這是要當做指導方針使用的 Windows PowerShell 指令碼範本。請視需要修改指令碼,以配合您自己的環境。

# Microsoft Corporation
# Windows Azure Virtual Network
# This configuration template applies to Microsoft RRAS running on Windows Server 2012.
# This configuration template configures an IPSec VPN tunnel used to connect your on-premises VPN device with the Windows Azure Virtual Network gateway.
# !!! In this version, the following support restrictions apply for RRAS:
# !!! 1. Only IKEv2 is currently supported
# !!! 2. Only route-based VPN configuration is supported.
# Install RRAS role
Import-Module ServerManager
Install-WindowsFeature RemoteAccess -IncludeManagementTools
Add-WindowsFeature -name Routing -IncludeManagementTools
# !!! NOTE: You may be required to reboot before continuing on with the script.
# Install S2S VPN
Import-Module RemoteAccess
Install-RemoteAccess -VpnType VpnS2S
# Add S2S VPN interface
Add-VpnS2SInterface -Protocol IKEv2 -AuthenticationMethod PSKOnly -NumberOfTries 3 -ResponderAuthenticationMethod PSKOnly -Name <SP_AzureGatewayIpAddress> -Destination <SP_AzureGatewayIpAddress> -IPv4Subnet @("<SP_AzureNetworkCIDR>:<SP_AzureNetworkMetric>") -SharedSecret <SP_PresharedKey>
# Restart the RRAS service
Restart-Service RemoteAccess
# Dial-in to Azure gateway (optional)
#Connect-VpnS2SInterface -Name <SP_AzureGatewayIpAddress> 

Important重要事項
靜態路由組態不受支援。

另請參閱

顯示:
© 2014 Microsoft