Microsoft Azure Essentials Fundamentals of Azure Second Edition e-optimized 5x11 pdf


  Create the virtual network.  3



Download 8,71 Mb.
Pdf ko'rish
bet163/260
Sana16.09.2021
Hajmi8,71 Mb.
#176022
1   ...   159   160   161   162   163   164   165   166   ...   260
Bog'liq
9781509302963 Microsoft Azure Essentials Fundamentals of Azure 2nd ed pdf

2. 
Create the virtual network. 
3. 
Request a dynamically assigned public IP address for the gateway.  
4. 
Create the required certificates and install where needed. 
5. 
Create a network gateway. 
6. 
Configure the client, then establish and verify the VPN connection. 


152 
CHAPTER 5  |    Azure Virtual Networks 
 
Configuring point-to-site VPN 
Setup  
1. 
Open the PowerShell ISE as an administrator. Log into your Azure account.  
> Login-AzureRmAccount  
2. 
As you go through these, add them as variables in your PowerShell script. You can reuse the script 
later and just change the values of the variables as needed. 
$VNetName = "AzureBookP2SVNet"  #name of the virtual network; this will have 2 address spaces. 
$VNetAddressPrefix = "10.254.0.0/16" #address prefix for the VNet 
$FrontEndSubnetName = "FrontEndSubnet"  #name of the first subnet  
$FrontEndSubnetAddressPrefix = "10.254.10.0/24"  #address prefix of the first subnet 
$BackEndSubnetName = "BackEndSubnet"  #name of the second subnet 
$BackEndSubnetAddressPrefix = "10.254.20.0/24"  # address prefix of the second subnet 
$GatewaySubnetName = "GatewaySubnet" #must use this name in order to work 
$GatewaySubnetAddressPrefix = "10.254.200.0/26"  #address prefix for the gateway subnet 
$VPNClientAddressPool = "172.16.201.0/24"  # VPN clients that connect to our VNet using the P2S 
connection will receive an IP address from this range. 
$ResourceGroup = "AzureBookRGP2S"  #resource group we will create and use  
$Location = "West US"  # location of the VNet  
#This needs to be a DNS server that can resolve the names  
#   for the resources you are connecting to. For this demo,  
#   we will use a public IP address, but you will want to  
#   put your own values here if you use this in a production environment. 
$DNS = "8.8.8.8"  # IP address of the DNS server that you want to use for name resolution 
$GatewayName = "BookVnetGway"  # name of the gateway 
$GatewayIPName = "BookVnetGwayIP"  # name gateway IP 
$GatewayIPConfigName = "gatewayipconfig"  # name of the public IP 
$P2SrootCertName = "BookP2SRootCert.cer"  #name of root certificate uploaded to Azure 
3. 
Create a new resource group. You will put your network in this resource group.  
New-AzureRmResourceGroup –Name $ResourceGroup –Location $Location 
4. 
Create the subnet configurations. Note that some of these lines have continuation characters 
(backward tick). 
$FrontEndSubnetConfig = New-AzureRmVirtualNetworkSubnetConfig ` 
    -Name $FrontEndSubnetName -Address $FrontEndSubnetAddressPrefix 
$BackEndSubnetConfig = New-AzureRmVirtualNetworkSubnetConfig ` 
    -Name $BackEndSubnetName -Address $BackEndSubnetAddressPrefix  
$GatewaySubnetConfig = New-AzureRmVirtualNetworkSubnetConfig ` 
    -Name $GatewaySubnetName -Address $GatewaySubnetAddressPrefix 

Download 8,71 Mb.

Do'stlaringiz bilan baham:
1   ...   159   160   161   162   163   164   165   166   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish