5. VMware AVI Global Server Load-Balancer
Lab 4 must be completed before starting this lab. In this lab, you will configure Global Load Balancer to ensure the connectivity across the two sites.
Adding DNS Entries.
In this section, we will create DNS Entries for both Site1 and Site2.
These DNS Entries will be used as VIP in AVI GSLB Configurations later.
This is a summary of the required DNS configuration. In Part 1 we will complete this required configuration.
Corp DNS Eritres |
Entity Description |
IP Address |
---|---|---|
dns-a.techseals.co |
Corp DNS for Site1 | 172.16.20.101 |
dns-b.techseals.co |
Corp DNS for Site2 |
172.16.50.101 |
- On your ControlCenter server
- from the desktop Shortcut or TaskBar,
- launch DNS
- from the DNS Manager
- expand Forward Lookup Zones on the left hand side of DNS Menu
- expand techseals.co
- expand Forward Lookup Zones on the left hand side of DNS Menu
- from the DNS Manager
- launch DNS
- from the desktop Shortcut or TaskBar,

- In the DNS Manager window
-
select on techseals.co
-
right-click
- select New Host (A or AAAA)...
-
right-click
-
select on techseals.co

- In the New Host window
- In the Name area
-
type dns-a
- In the IP address:
- type 172.16.20.101
- click Add Host
- In the DNS window
- select OK
- type 172.16.20.101
- In the IP address:
-
type dns-a
- In the Name area

- Repeat the steps to add Worker Node for Site-1 in the DNS Record
- In the New Host window
- In the Name area
-
type dns-b
- in the IP address:
- type 172.16.50.101
- click Add Host
- In the DNS window
- select OK
- to close the New Host window.
- select Done
- In the DNS window
- click Add Host
- type 172.16.50.101
- in the IP address:
-
type dns-b
- In the Name area
- In the New Host window

- In the DNS Manager Console
- Verify the following
- That all entries are added in the DNS record as shown in the image above.
- That your entries are created in the techseals.co Forward Lookup Zones
- Verify the following

Creating Delegation.
In this section, we will create Delegation using the DNS created in Section 1 for Site1 and Site2
- In the DNS Manager Window
-
right click on techseals.co
- select New Delegation...
-
right click on techseals.co

- In the New Delegation Wizard
- select Next

- In the New Delegation Wizard
- under Delegated Domain Name
- type
-
corp
- the Fully qualified domain name (FQDN), should show:
-
corp.techseals.co
- click Next
-
corp.techseals.co
- the Fully qualified domain name (FQDN), should show:
-
corp
- type
- under Delegated Domain Name

- In the Name Servers window
- click Add

- In the Server fully qualified domain name (FQDN): field
- type
-
dns-a.techseals.co
-
click Resolve
- click OK
-
click Resolve
-
dns-a.techseals.co
- type

Note: It will NOT resolve unless we create the GSLB
- In the Name Servers window
- click Add
- In Server fully qualified domain name (FQDN): area
- type
-
dns-b.techseals.co
- click Resolve
- click OK
- click Resolve
-
dns-b.techseals.co
- type
- In Server fully qualified domain name (FQDN): area
- click Add

Note: It will NOT resolve unless we create the GSLB
- In New Delegation Wizard
- click Next
- Click Finish
- click Next

- The Corp Delegation should look like shown in the picture above

Site Configuration.
In this section, we do Site Configuration in AVI
- On your ControlCenter Server
- open your Chrome Browser for Site-1
- In the Address bar, Enter or browse from the bookmark
- to https://avicontroller.techseals.co.
- under the Username area,
- enter admin
- under Password area,
- enter Pa$$w0rd
- under the Username area,
- select LOG IN
- to https://avicontroller.techseals.co.
- In the Address bar, Enter or browse from the bookmark
- open your Chrome Browser for Site-1

- In the NSX-ALB Console
- navigate to Infrastructure > GSLB > Site Configuration
- In the Site Configuration area
- to enable GSLB
- to right of GSLB:Off
- select the Pen icon
- to right of GSLB:Off
- to enable GSLB

- In the New GSLB Configuration window
- enter and validate the following entries, next to:
- Name: GSLB
- Username: admin
- Password: Pa$$w0rd
- IP Address: 192.168.210.71 (Default)
- Port: 443 (Default)
- GSLB Subdomain: techseals.co
- Client Group Ip Address Type : Public (Default)
- select Save
- enter and validate the following entries, next to:

- The Site Configuration should look as shown in the pic above.

Configure Geo Profile.
Since our Multi-Site lab is in same physical location, we need to update the AVI GEO DB with a custom configuration file so that client request coming from Site1 should be denoted as Bangalore and client request coming from Site 2 as Seattle.
Before doing Step 1 . Refresh you NSX-ALB admin console
- In the AVI admin page
- first Refresh the Admin Console
-
then go to
-
Infrastructure > Upload Geo Files
- below Please select the Geo files to upload
- select Select File
-
navigate to Desktop > Software >AVI
- select newgeo.tar.gz file
-
to upload the file
- select Open
-
navigate to Desktop > Software >AVI
- to the right of Select File
- from the dropdown
- select Avi
- from the dropdown
- select Upload File
-
Infrastructure > Upload Geo Files

- Once the upload is complete
- It should denote as Upload Complete 100%

- Under Infrastructure
- navigate to Geo Profile
- In the Geo Profile tab
- select CREATE
- In the Geo Profile tab
- navigate to Geo Profile

- In New Geo Profile window
- under General
- Name : NewGeo
- under Entries
- from the File Name dropdown
- select newgeo.tar.gz file which we uploaded in Part 2: Section 2: Step 1
- Priority : 10 (default)
- Format: AVI (default)
- click SAVE
- from the File Name dropdown
- under General

- Once the Geo Profile is saved
- It should look as shown in the screenshot below

We will now create VIPs (virtual IP address) using the DNS entries we configured in Part 1 for Site 1 and Site 2
- In the AVI Admin page
- go to Applications > VS VIPs
- to create a DNS VIP for Site1
- click CREATE

- In the Create VS VIP Page
- under General:
- enter under Name :
DNS1-VIP1
- select ADD

- In the Edit VIP: 1 window
- under General
-
validate Enable VIP checkbox is checked
- below Private IP :
- enter 172.16.20.101
- below Private IP :
- select SAVE
-
validate Enable VIP checkbox is checked
- in the Create VS VIP Page
- select SAVE
- under General

- In the VS VIPs, page
- to create DNS VIP for Site2
- click CREATE
- to create DNS VIP for Site2

- In the Create VS VIP Page
- in the General type area
- below Name* enter
- in the General type area
DNS2-VIP1
- select ADD

- In the Edit VIP: 1 page
- under General
- update the following:
-
next to Enable VIP
- validate the checkbox is enabled
-
next to Enable VIP
-
below IPv4 Address* :
- enter 172.16.50.101
- in the bottom right corner
- select SAVE
- in the Create VS VIP Page
- select SAVE
- update the following:
- under General

- The VS VIPs Page should look as shown in the screenshot below

In this section we create Virtual Service for Site1
- In the NSX-ALB Console
- Navigate to Applications > Virtual Services
- In the Virtual Services area
- to the top right,
- select CREATE VIRTUAL SERVICE
- select Advanced Setup.
- select CREATE VIRTUAL SERVICE
- to the top right,

- In the New Virtual Service wizard
-
Step 1: Settings area
- Enter the following under:
-
Name*
- enter DNS1
-
VS VIP *
- from the dropdown,
- select DNS1-VIP1
- from the dropdown,
-
Name*
- Enter the following under:
-
Step 1: Settings area

- In the New Virtual Service wizard
- to the right of VIP Address
- in the Profiles sub-area
-
below Application Profile
-
from the dropdown
- select System-DNS
-
from the dropdown
-
Note:
- You will notice, TCP/UDP Profile automatically changes to System-UDP-Per-pkt
-
below Application Profile
- in the Profiles sub-area
- to the right of VIP Address

- In the New Virtual Service wizard
- in the Service Port sub-area
- confirm Services is set to 53
-
in the bottom right corner
- select Next
-
in the bottom right corner
- confirm Services is set to 53
- in the Service Port sub-area

- In the Virtual Service wizard
- The warning message shows as
- You may want to select pool
- Ignore the message and proceed forward.
- The warning message shows as
Global VS will be stored on the controller; so no backend DNS pool required

- In the Virtual Service wizard
- leave the Pool Drop Down as Blank
- select Next
- under Step 2: Polices
- leave all default and select Next
- under Step 3 : Analytics
- leave all default and select Next
-
under Step 4: Advanced
- Leave all default and select Next
-
under Step 5 : DNS Records
- leave all default and select SAVE
- leave the Pool Drop Down as Blank

In the next section we setup the Virtual Service for Site 2
- In the NSX-ALB Console
- navigate to Applications > Virtual Services
- In the Virtual Services area
- in the top right, select CREATE VIRTUAL SERVICE
- select Advanced Setup.
- in the top right, select CREATE VIRTUAL SERVICE
- In the Virtual Services area
- navigate to Applications > Virtual Services

- In the New Virtual Service wizard
-
Step 1: Settings area
- enter the following under:
- next to Name*
- enter DNS2
- next to Name*
- in the VIP Address sub-area
- below VS VIP *
- from the dropdown,
- select DNS2-VIP1
- from the dropdown,
- below VS VIP *
- enter the following under:
-
Step 1: Settings area

- In the New Virtual Service wizard
- to the right of VIP Address
- In the Profiles sub-area
- under Application Profile
-
from the dropdown
- select : System-DNS
-
from the dropdown
- under Application Profile
- In the Profiles sub-area
- to the right of VIP Address
- Note: You will notice, TCP/UDP Profile automatically changes to System-UDP-Per-pkt

- Under Service Port
- Confirm Services is set to 53
- select Next
- Confirm Services is set to 53

- In the New Virtual Service:DNS2 wizard
- under Step 2: Polices
- leave all default
- Ignore the warning message, You may want to select a Pool
- select Next
- Ignore the warning message, You may want to select a Pool
- under Step 3 : Analytics
- leave all default
- select Next
- leave all default
-
under Step 4: Advanced
- leave all default
- select Next
- leave all default
-
under Step 5 : DNS Records
- leave all default
- select Save
- leave all default
- leave all default
- under Step 2: Polices

- Once both DNS1 and DNS2 are configured
- The Virtual Services Should look as shown in the Pic above

Linking Virtual Service With GSLB Site Configuration
- In the AVI-ALB console
- select the Infrastructure tab
- in the left menu
- select GSLB > expand
- in the expanded menu
- select Site Configuration
- in the expanded menu
- select GSLB > expand
- in the left menu
- under Active Members (Continuous Replication)
- to edit the GSLB
- In line with GSLB
- click on Pen Icon
- In line with GSLB
- to edit the GSLB
- select the Infrastructure tab

- In the Edit GSLB Site Page
- click on Save and Set DNS Virtual Services
- It will redirect you to Edit GSLB Site to link DNS Virtual Service to Subdomains
- click on Save and Set DNS Virtual Services

- In the Edit GSLB Site page
- enter the following:
- below DNS Virtual Service :
- from the dropdown
- select DNS1
- from the dropdown
- below Subdomains :
-
from the dropdown
- select techseals.co
-
from the dropdown
- to add Site2 DNS
- below the DNS Virtual Service : area
- click on + Add DNS VS
- below the DNS Virtual Service : area
- below DNS Virtual Service :
- enter the following:

-
In the Edit GSLB Site Page
- In the Edit GSLB Site page
- enter the following:
- below the second instance of DNS Virtual Service :
- from the dropdown
- select DNS2
- from the dropdown
- below the second instance of DNS Virtual Service :
- below the second instance of Subdomains :
- from the dropdown
- select techseals.co
- select Save
- from the dropdown

In the following section we will setup the GSLB Application Services
- In the NSX-ALB Console
- navigate to Applications > GSLB Services
- In the GSLB Services area
- to the top right, select CREATE
- select Advanced Setup.
- to the top right, select CREATE
- In the GSLB Services area
- navigate to Applications > GSLB Services

- In the New GSLB Service area
- configure the following
- below the Name : area
- enter GSLB-Service
- below the Application Name : area
- enter corp
- below Subdomain :
- validate that techseals.co is selected (default)
- below Groups Load Balancing Algorithm :
- from the dropdown
- select Geo location-based
- from the dropdown
- below the Name : area
- configure the following

- In the New GSLB Service Page
- Scroll down to GSLB pools
- to the right
- click Add Pool >
- It opens the New GSLB Pool window
- click Add Pool >
- to the right
- Scroll down to GSLB pools

- In the New GSLB Pool Window
- Enter the following
- under the Name : area
- type GSLB-Service-Pool
-
under Priority :
- validate the value is 10 (default)
- under the Pool Members Load Balancing Algorithm : area
- from the dropdown
- select Geo
- from the dropdown
- under the Pool Members Fallback Load Balancing Algorithm :
- from the dropdown
- select Consistent Hash
- from the dropdown
- leave everything else as default
- under the Name : area
- scroll down to Pool Member
- Enter the following

- In the New GSLB Pool Window
- under the Pool Member heading
- validate and configure the following
- below Site Cluster Controller* :
- from the dropdown
- select GSLB
- from the dropdown
- to the right of Site Cluster Controller* :
- below Virtual Service*:
- from the dropdown
- select Horizon-UAG-Site-1
- from the dropdown
- below Virtual Service*:
- below Ratio*:
- 1 (default)
- below Geo Location Source :
-
from the dropdown
- select User Configured
-
from the dropdown
- below Name :
- enter Bangalore
- below Latitude
- enter 12
- below Longitude :
- enter 77
- leave everything else as Default
- ensure the settings matches as per screenshot below
- below Site Cluster Controller* :
- validate and configure the following
- under the Pool Member heading
- To add Site2
-
scroll down
- select Add GSLB Pool Member
-
scroll down
an extension of the same interface appears (scroll down)

- In the New GSLB Pool window
-
Scroll down
- next to Virtual Service
- ensure the radio button is selected
- below Site Cluster Controller* :
- from the dropdown
- select GSLB
- (notice the Virtual Service box now appears)
- select GSLB
- from the dropdown
- to the right of Site Cluster Controller*
- below Virtual Service :
- from the dropdown
- select Horizon-UAG-Site-2
- from the dropdown
- below Virtual Service :
- ensure that below Ratio*:
- 1 (default) is the value
- below Geo Location Source :
-
from the dropdown
- select User Configured
-
from the dropdown
- under Name :
- enter Seattle
- under Latitude :
- enter 47
-
under Longitude :
- enter -122
- leave everything else as Default
- next to Virtual Service
-
scroll down
- select Done
-
Scroll down

- In the New GSLB Service window
- Ensure All the settings matches as per the screenshot below
- select Save
- Ensure All the settings matches as per the screenshot below

- Settings should match as per the screenshot above
- To show the status as Green, it could take up to 1 minute
- refresh your screen
- To show the status as Green, it could take up to 1 minute

Validate the configurations by enabling advance logging in AVI
- If required login to NSX-ALB Console
- On your ControlCenter Server
- Open your Chrome Browser for Site-1
- In the Address bar, Enter or browse from the bookmark
- To https://avicontroller.techseals.co
- under username,
- enter admin
- In the password area
- enter Pa$$w0rd
- Click Login
- under username,
- To https://avicontroller.techseals.co
- In the Address bar, Enter or browse from the bookmark
- Open your Chrome Browser for Site-1
- On your ControlCenter Server

- In the NSX-ALB Console
- Navigate to Applications > Virtual Services
-
To the left of DNS1, select the checkbox.
-
On the right hand side of DNS1.
- Click the pencil icon to edit the DNS1.
-
On the right hand side of DNS1.
-
To the left of DNS1, select the checkbox.
- Navigate to Applications > Virtual Services

- In Edit Virtual Service: DNS1
- Go to Analytics
-
next to Non-significant logs
- validate the checkbox is enabled
- Click Save
-
next to Non-significant logs
- Go to Analytics

- On your ControlCenter server
- On the Desktop
- Open the Remote Desktops Folder
- Open Site1
- Launch W11Client-01a.rdp
-
Login as Craig
- With the password Pa$$w0rd
- Open Site1
- Open the Remote Desktops Folder
- On the Desktop

- In W11Client-01a
-
Open Command Prompt from desktop
- In the Command Prompt, type
-
ping corp.techseals.co and press enter
- You would notice the response from 172.16.20.100
- The above IP is the VIP for Site-1
- You would notice the response from 172.16.20.100
-
ping corp.techseals.co and press enter
- In the Command Prompt, type
- Once the ping is complete, minimize W11Client-01a RDP Session
- Return to Control Center Desktop
-
Open Command Prompt from desktop

- On your ControlCenter server
- On the Desktop
- Open the Remote Desktops Folder
- open Site2
- launch W11Client-02a.RDP
- login as Malcolm
- with the password Pa$$w0rd
- login as Malcolm
- launch W11Client-02a.RDP
- open Site2
- Open the Remote Desktops Folder
- On the Desktop

- In W11Client-02a
-
Open Command Prompt from desktop
- In the Command Prompt,
- type ping corp.techseals.co and press enter
- You would notice the response from 172.16.50.100
- The above IP is the VIP for Site-2
- You would notice the response from 172.16.50.100
- type ping corp.techseals.co and press enter
- In the Command Prompt,
- Once the ping is complete, minimize W11Client-02a RDP Session
- Return to Control Center Desktop
-
Open Command Prompt from desktop

- If required, login to NSX-ALB Console
- On your ControlCenter Server
- Open your Chrome Browser for Site-1
- In the Address bar, enter or browse from the bookmark
- to https://avicontroller.techseals.co
- under Username,
- enter admin
- under Password,
- enter Pa$$w0rd
- click LOG IN
- enter Pa$$w0rd
- under Username,
- to https://avicontroller.techseals.co
- In the Address bar, enter or browse from the bookmark
- Open your Chrome Browser for Site-1
- On your ControlCenter Server

- In the NSX-ALB Console
- navigate to Applications > Virtual Services
- click on DNS1
- navigate to Applications > Virtual Services

- In the Virtual Service: DNS1 window
- in the top right-corner,
- select the pencil icon
- in the top right-corner,

- In the Edit Virtual Service:DNS1 window
- select the Analytics tab
- next to Non-significant logs
- select the checkbox
- next to Non-significant logs
- select the Analytics tab

- In the Edit Virtual Service:DNS1 window
- In the bottom right-corner
- select Save
- In the bottom right-corner

- In Virtual Service: DNS1 window
- select the Logs tab
- click on Non-Significant Logs as shows in 2
- verify the Client IP
- It should match the DNS Server IP of Site 1
- 192.168.110.10
- Expand the + (Plus) Symbol as shown in 3
- select the Logs tab
Note: If the logs are not seen, Click the refresh button as shown in 4
If refresh does not work , Ping again on Site 1
- Notice the following:
- Client IP
- Location
- Virtual Service IP
- GSLB Pool Name
- Service Engine
- Look at the IP of DNS Server for Site2
- 192.168.210.10
- Expand the + (Plus) Symbol to the extreme right
Note: If the logs are not seen, Click the refresh button as shown in 4
If refresh does not work , Ping again on Site 2

- Notice the following:
- Client IP
- Location
- Virtual Sevice IP
- GSLB Pool Name
- Service Engine
Note as this a Fast Track so you will get several opportunities to test corp.techseals.co in later labs. If you do feel like testing the GSLB with the Horizon client, follow the same process in Lab 1
This concludes the Global Server Load Balancing lab.
0 Comments
Add your comment