Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Configuring organization network services

Save for later
  • 9 min read
  • 22 Aug 2014

article-image

This article by Lipika Pal, the author of the book VMware vCloud Director Essentials, teaches you to configure organization network services. Edge devices can be used as DNS relay hosts owing to the release of vCloud Networking and Security suite 5.1. However, before we jump onto how to do it and why you should do it, let us discuss the DNS relay host technology itself.

(For more resources related to this topic, see here.)

If your client machines want to send their DNS queries, they contact DNS relay, which is nothing but a host. The queries are sent by the relay host to the provider's DNS server or any other entity specified using the Edge device settings.

The answer received by the Edge device is then sent back to the machines. The Edge device also stores the answer for a short period of time, so any other machine in your network searching for the same address receives the answer directly from the Edge device without having to ask internet servers again. In other words, the Edge device has this tiny memory called DNS cache that remembers the queries.

The following diagram illustrates one of the setups and its workings:

configuring-organization-network-services-img-0

In this example, you see an external interface configured on Edge to act as a DNS relay interface.

On the client side, we configured Client1 VM such that it uses the internal IP of the Edge device (192.168.1.1) as a DNS server entry.

In this setup, Client1 requests DNS resolution (step 1) for the external host, google.com, from Edge's gateway internal IP. To resolve google.com, the Edge device will query its configured DNS servers (step 2) and return that resolution to Client1 (step 3).

Typical uses of this feature are as follows:

  • DMZ environment
  • Multi-tenant environment
  • Accelerated resolution time

Configuring DNS relay

To configure DNS relay in a vShield Edge device, perform the following steps. Configure DNS relay when creating an Edge device or when there is an Edge device available.

This is an option for an organization gateway and not for a vApp or Org network.

Now, let's develop an Edge gateway in an organization vDC while enabling DNS relay by executing the following steps:

  1. Open the vCloud Director URL in a supported browser, for example, https://serverFQDN/cloud.
  2. Log in to the cloud as the administrator. You will be presented with the Home screen.
  3. Click on the Organization VDCs link and on the right-hand side, you will see some organization vDCs created.
  4. Click on any organization vDC. Doing this will take you to the vDC page.
  5. Click on the Administration page and double-click on Virtual Datacenter.
  6. Then click on the Edge Gateways tab.
  7. Click on the green-colored + sign as shown in the following screenshot:

    configuring-organization-network-services-img-1

  8. On the Configure Edge Gateway screen, click on the Configure IP Settings section. Use the other default settings and click on Next.
  9. On the Configure External Networks screen, select the external network and click on Add.
  10. You will see a checkbox on this same screen. Use the default gateway for DNS relay. Once you do, select it and click on Next, as shown in the following screenshot:

    configuring-organization-network-services-img-2

  11. Select the default value on the Configure IP Settings page and click on Next.
  12. Specify a name for this Edge gateway and click on Next.
  13. Review the information and click on Finish.

Let's look an alternative way to configure this, assuming you already have an Edge gateway and are trying to configure DNS Relay. Execute the following steps to configure it:

  1. Open the vCloud Director URL in a supported browser, for example, https://serverFQDN/cloud.
  2. Log in to the cloud as the administrator. You will be presented with the Home screen.
  3. On the Home screen, click on Edge Gateways.
  4. Select an appropriate Edge gateway, right-click, and select Properties, as shown in the following screenshot:

    configuring-organization-network-services-img-3

  5. Click on the Configure External Networks tab.
  6. Scroll down and select the Use default gateway for DNS Relay. checkbox, as shown in the following screenshot:

    configuring-organization-network-services-img-4

  7. Click on OK.

In this section, we learned to configure DNS relay. In the next section, we discuss the configuration of a DHCP service in vCloud Director.

DHCP services in vCloud Director

vShield Edge devices support IP address pooling using the DHCP service. vShield Edge DHCP service listens on the vShield Edge internal interface for DHCP discovery. It uses the internal interface's IP address on vShield Edge as the default gateway address for all clients. The broadcast and subnet mask values of the internal interface are used for the container network.

However, when you translate this with vCloud, not all types of networks support DHCP. That said, the Direct Connect network does not support DHCP. So, only routed and isolated networks support the vCNS DHCP service. The following diagram illustrates a routed organization vCD network:

configuring-organization-network-services-img-5

In the preceding diagram, the DHCP service provides an IP address from the Edge gateway to the Org networks connected to it.

The following diagram shows how vApp is connected to a routed external network and gets a DHCP service:

configuring-organization-network-services-img-6

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at R$50/month. Cancel anytime

The following diagram shows a vApp network and a vApp connected to it, and DHCP IP address being obtained from the vShield Edge device:

configuring-organization-network-services-img-7

Configuring DHCP pools in vCloud Director

The following actions are required to set up Edge DHCP:

  • Add DHCP IP pools
  • Enable Edge DHCP services

As a prerequisite, you should know which Edge device is connected to which Org vDC network. Execute the following steps to configure DHCP pool:

  1. Open up a supported browser. Go to the URL of the vCD server; for example, https://serverFQDN/cloud.
  2. Log in to vCD by typing an administrator user ID and password.
  3. Click on the Edge Gateways link.
  4. Select the appropriate gateway, right-click on it, and select Edge Gateway Services, as shown in the following screenshot:

    configuring-organization-network-services-img-8

  5. The first service is DHCP, as shown in the following screenshot:

    configuring-organization-network-services-img-9

  6. Click on Add.
  7. From the drop-down combobox, select the network that you want the DHCP to applied be on.
  8. Specify the IP range.
  9. Select Enable Pool and click on OK, as shown in the following screenshot:

    configuring-organization-network-services-img-10

  10. Click on the Enable DHCP checkbox and then on OK.

In this section, we learned about the DHCP pool, its functionality, and how to configure it.

Understanding VPN tunnels in vCloud Director

It's imperative that we first understand the basics of CloudVPN tunnels and then move on to a use case. We can then learn to configure a VPN tunnel.

A VPN tunnel is an encrypted or more precisely, encapsulated network path on a public network. This is often used to connect two different corporate sites via the Internet. In vCloud Director, you can connect two organizations through an external network, which can also be used by other organizations. The VPN tunnel prevents users in other organizations from being able to monitor or intercept communications. VPNs must be anchored at both ends by some kind of firewall or VPN device. In vCD, the VPNs are facilitated by vShield Edge devices. When two systems are connected by a VPN tunnel, they communicate like they are on the same network.

Let's have a look at the different types of VPN tunnels you can create in vCloud Director:

  • VPN tunnels between two organization networks in the same organization
  • VPN tunnels between two organization networks in two different organizations
  • VPN tunnels between an organization network and a remote network outside of VMware vCloud

While only a system administrator can create an organization network, organization administrators have the ability to connect organization networks using VPN tunnels. If the VPN tunnel connects two different organizations, then the organization administrator from each organization must enable the connection. A VPN cannot be established between two different organizations without the authorization of either both organization administrators or the system administrator. It is possible to connect VPN tunnels between two different organizations in two different instances of vCloud Director.

The following is a diagram of a VPN connection between two different organization networks in a single organization:

configuring-organization-network-services-img-11

The following diagram shows a VPN tunnel between two organizations. The basic principles are exactly the same.

configuring-organization-network-services-img-12

vCloud Director can also connect VPN tunnels to remote devices outside of vCloud. These devices must be IPSec-enabled and can be network switches, routers, firewalls, or individual computer systems. This ability to establish a VPN tunnel to a device outside of vCD can significantly increase the flexibility of vCloud communications. The following diagram illustrates a VPN tunnel to a remote network:

configuring-organization-network-services-img-13

Configuring a virtual private network

To configure an organization-to-organization VPN tunnel in vCloud Director, execute the following steps:

  1. Start a browser. Insert the URL of the vCD server into it, for example, https://serverFQDN/cloud.
  2. Log in to vCD using the administrator user ID and password.
  3. Click on the Manage & Monitor tab.
  4. Click on the Edge Gateways link in the panel on the left-hand side.
  5. Select an appropriate gateway, right-click, and select Edge Gateway Services.
  6. Click on the VPN tab.
  7. Click on Configure Public IPs.
  8. Specify a public IP and click on OK, as shown in the following screenshot:

    configuring-organization-network-services-img-14

  9. Click on Add to add the VPN endpoint.
  10. Click on Establish VPN to and specify an appropriate VPN type (in this example, it is the first option), as shown in the following screenshot:

    configuring-organization-network-services-img-15

  11. If this VPN is within the same organization, then select the Peer Edge Gateway option from the dropdown.
  12. Then, select the local and peer networks.
  13. Select the local and peer endpoints. Now click on OK.
  14. Click on Enable VPN and then on OK.

This section assumes that either the firewall service is disabled or the default rule is set to accept all on both sides.

In this section, we learned what VPN is and how to configure it within a vCloud Director environment. In the next section, we discuss static routing and various use cases and implementation.