Hybrid access to the same Web service using azure lb and ILB (2)

Source: Internet
Author: User

now, let's start by configuring the Internal for the next two Web servers. Load balancer:

    1. Open Powershell , check the endpoint configuration for the current two virtual machines:

Get-azurevm-servicename Webstevennodes-name webstevennode2| Get-azureendpoint

2. Create an ILBthat specifies its service address as the intranet address 10.0.0.88:

Add-azureinternalloadbalancer-internalloadbalancername myilb-servicename Webstevennodes-subnetname Subnet-1- Staticvnetipaddress 10.0.0.88

3. Add endpoint information to both test VMS webstevennode1 and webstevennode2, noting that both the local port and the external port are 80:

PS c:\> get-azurevm-servicename webstevennodes-name webstevennode1 | Add-azureendpoint-name httpinternal-protocol tcp-localport 80-publicport 80-defaultprobe-internalloadbalancername m Yilb-lbsetname myilbset| Update-azurevm

PS c:\> get-azurevm-servicename webstevennodes-name webstevennode2| Add-azureendpoint-name httpinternal-protocol tcp-localport 80-publicport 80-defaultprobe-internalloadbalancername m Yilb-lbsetname myilbset| Update-azurevm

4. Once the add is complete, verify the endpoint configuration information:

PS c:\> get-azurevm-servicename webstevennodes-name webstevennode2| Get-azureendpoint

Get-azurevm-servicename Webstevennodes-name webstevennode2| Get-azureendpoint

You can see that the ILB configuration for the computer's two VMs is complete, and the service IP address is 10.0.0.88.

5. To test the actual effect, you need to login to the test Windows 2012 virtual machine, open IE browser, enter the ILB service address 10.0.0.88, test:

After a few more refreshes, you can see that the request can be distributed to VM1 and VM2:

6. We check the endpoint configuration on the portal of Azure, and we can see that because we are configuring the ILB port, we are not currently seeing it on the Portal:

Hybrid access to the same Web service using azure lb and ILB (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.