Skip to content

Instantly share code, notes, and snippets.

@andreaswasita
Created July 6, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaswasita/20bc8ef75e5d6d278c5d to your computer and use it in GitHub Desktop.
Save andreaswasita/20bc8ef75e5d6d278c5d to your computer and use it in GitHub Desktop.
#Setting up a bgp session
$ServiceKey = "YourServiceKey"
$PriSN = "192.168.1.0/30"
$SecSN = "192.168.2.0/30"
#You can use Public ASN you own or Private ASN Greater than 65000
$ASN = "YourASN"
$VLAN = "100"
#Create a new bgp peering session
New-AzureBGPPeering -ServiceKey $ServiceKey -PrimaryPeerSubnet $PriSN -SecondaryPeerSubnet $SecSN -PeerAsn $ASN -VlanId $VLAN –AccessType Private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment