Note:

Configure DNS Virtual Service on NSX Advanced Load Balancer in Oracle Cloud VMware Solution SDDC

Introduction

In this series, we have covered the deployment and configuration of NSX Advanced Load Balancer (formerly known as Avi Networks) controllers.

This is the third tutorial which describes how to configure Domain Name System (DNS) virtual service on VMware NSX Advanced Load Balancer (NSX ALB) controller hosted on an Oracle Cloud VMware Solution Software-Defined Data Center (SDDC).

RackWare RMM BYOL

Objectives

Prerequisites

Task 1: Define IP Range on the NSX-T Cloud Connector Network Profile

After adding NSX-T Cloud connector on Oracle Cloud VMware Solution SDDC, we need to define the network IP ranges that will be assigned to Service Engines (SE) and virtual services. To define the IP range, follow these steps:

  1. Log in to the NSX ALB (Avi) controller portal, under Infrastructure tab, expand Cloud Resources, click Networks, and then select OCVS NSX-T Cloud connector from the drop-down menu.

    RackWare RMM BYOL

    We should see the networks that we select during the NSX-T Cloud connector wizard. The avi-mgmt overlay segment will provide management IP addresses to the NSX ALB (Avi) Service Engine. We will carve out a portion of IP address from this range that will be used by Service Engines.

  2. Click Edit for the avi-mgmt network and enter IP Address Management information.

    • Enable DHCP: Deselect enable DHCP.
    • Enable IPv6 Auto Configuration: Deselect enable IPv6 auto configuration.
    • Routing Context: global.

    RackWare RMM BYOL

  3. In the Subnets section, click Add and enter the following information.

    • Subnet Prefix: Enter the CIDR for the avi-mgmt overlay segment.
    • Deselect the Use Static IP Address for VIPs and SE.
  4. In Static IP Ranges, click Add and enter the IP Address Range for the virtual service virtual IP (VIP), IP address range used for Service Engine (SE) vNIC, and then save the configuration.

    RackWare RMM BYOL

  5. Click Save to save the configuration again in the Edit Network Settings window.

    RackWare RMM BYOL

  6. We also need to define IP address range for the avi-vs segment as it is required by Service Engines to connect to the backend servers. Click Edit link for the avi-vs overlay segment and enter IP Address Management information.

    • Enable DHCP: Deselect enable DHCP.
    • Enable IPv6 Auto Configuration: Deselect enable IPv6 auto configuration.
    • Routing Context: Tier-1.

    RackWare RMM BYOL

  7. In the Subnets section, click Add and enter the following information.

    • Subnet Prefix: Enter the CIDR for the avi-vs overlay segment.
    • Deselect the Use Static IP Address for VIPs and SE.
  8. In Static IP Ranges, click Add and enter the IP Address Range for the virtual service virtual IP (VIP) and IP address range use for Service Engine (SE) vNIC, and then save the configuration.

    RackWare RMM BYOL

  9. Click Save to save the configuration again in the Edit Network Settings page.

    RackWare RMM BYOL

The configuration is shown in the following image.

RackWare RMM BYOL

Task 2: Add a Default Route on the Tier-1 Virtual Routing and Forwarding (VRF)

We need to define static route for the virtual service overlay segment.

  1. Under the Infrastructure tab, click Cloud Resources and VRF Context.

  2. Click on the Select Cloud drop-down list and select OCVS NSX-T as Cloud connector.

    RackWare RMM BYOL

  3. Click Edit to edit the Tier-1 VRF context. Under Static Route, click Add.

  4. Enter the following information and click Save.

    • Gateway Subnet: Default route 0.0.0.0/0.
    • Next Hop: Pointing it to the avi-vs default gateway which is 172.28.11.1.

    RackWare RMM BYOL

Task 3: Deploy a DNS Virtual Service

NSX ALB has an inbuilt DNS server functionality to offer dynamic name resolution for the virtual services that are created. In most cases, we define NSX ALB as an authoritative DNS server. We can create a DNS delegation and forwarder from the corporate networks and point the domain demoocvs.xyz to DNS virtual service for name resolution. To deploy DNS virtual service, follow these steps:

  1. Log in to the NSX ALB (Avi) controller portal, navigate to Applications, Virtual Services, Create Virtual Service and click Advanced Setup.

    RackWare RMM BYOL

  2. In the Select Cloud window, select OCVS NSX-T and click Next.

    RackWare RMM BYOL

  3. In the VRF Context, select Tier-1.

    RackWare RMM BYOL

  4. Enter the Virtual Service Name and select the Application Profile as System-DNS.

    RackWare RMM BYOL

  5. Click on the VS VIP drop-down list, Create VS VIP and select Tier1 Logical Router as Tier-1.

  6. In the VIP window, click Add. Keep the default options and enter avi-vs as VIP Address Allocation Network, specify the associated CIDR block as IPv4 Subnet, and then click Save.

    RackWare RMM BYOL

  7. In the DNS section, click Add, keep the default configuration, and then click Save.

    RackWare RMM BYOL

  8. We are not adding any backend pool. Click Next and keep the default options under the Policies section.

  9. In the Analytics section, update non-significant log duration to 0 to keep all the non-significant logs and click Next to finish the wizard.

    RackWare RMM BYOL

NSX ALB (Avi) controller will initiate deployment of the SE on Oracle Cloud VMware Solution vCenter. It will take few minutes and the DNS virtual service will change to green or available state.

RackWare RMM BYOL

NSX ALB (Avi) would have deployed two Service Engines as per the default configuration and the SE virtual machines (VM’s) will get an IP from the range we defined in the above step.

RackWare RMM BYOL

Task 4: Configure a DNS Virtual Service to host DNS Records

We have deployed the base DNS service which will host DNS records for all upcoming applications or websites that we host via NSX ALB.

  1. Log in to the NSX ALB (Avi) controller portal, navigate to Administration, System Settings and click Edit.

  2. In the DNS Service section, click Add. In the Virtual Service drop-down list, select the DNS virtual service that we deployed in Task 3 and click Save.

    RackWare RMM BYOL

Next Steps

To configure HTTP virtual service on NSX Advanced Load Balancer in Oracle Cloud VMware Solution SDDC for internal users, see Tutorial 4: Configure HTTP Virtual Service on NSX Advanced Load Balancer in OCVS SDDC for Internal Users.

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.