Book Image

VMware NSX Cookbook

By : Bayu Wibowo, Tony Sangha
Book Image

VMware NSX Cookbook

By: Bayu Wibowo, Tony Sangha

Overview of this book

This book begins with a brief introduction to VMware's NSX for vSphere Network Virtualization solutions and how to deploy and configure NSX components and features such as Logical Switching, Logical Routing, layer 2 bridging and the Edge Services Gateway. Moving on to security, the book shows you how to enable micro-segmentation through NSX Distributed Firewall and Identity Firewall and how to do service insertion via network and guest introspection. After covering all the feature configurations for single-site deployment, the focus then shifts to multi-site setups using Cross-vCenter NSX. Next, the book covers management, backing up and restoring, upgrading, and monitoring using built-in NSX features such as Flow Monitoring, Traceflow, Application Rule Manager, and Endpoint Monitoring. Towards the end, you will explore how to leverage VMware NSX REST API using various tools from Python to VMware vRealize Orchestrator.
Table of Contents (19 chapters)
Title Page
Packt Upsell
Foreword
Contributors
Preface
Index

Configuring a DHCP server


A DHCP server is required in networks where client machines (physical/virtual) are not assigned a static IP address; in this case, they use the DHCP mechanism to retrieve an IP address from a server. NSX ESGs provide the ability to act as a DHCP server on your network. The NSX Edge can be configured with multiple IP pools with common DHCP attributes and can also be used to set up reservations on your network.

The following diagram depicts the logical topology for the DHCP ESG, with the distributed logical router providing DHCP relay services to forward DHCP queries to the ESG. In addition, it includes the parameters we will use to configure the DHCP pool on the NSX ESG:

Getting ready

To configure the ESG for a DHCP server, the following prerequisites must be met:

  • User with NSX Enterprise Administrator or NSX Administrator role
  • Newly-deployed NSX edge to configure the DHCP server on; we will use a pre-created edge named Chapter5 for this recipe
  • ESXi cluster where the the...