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

Connecting a Virtual Machine to an NSX Logical Switch


In the previous recipes, we have prepared the VXLAN networking, starting with configuring VXLAN, configuring the segment ID, creating the transport zone, and creating logical switches. This recipe will show you how to connect two VMs, web-01a and web-02a, to a logical switch called Web-Tier:

Getting ready

For this recipe, you will need a VM and a logical switch that you want to connect to.

How to do it...

Follow these steps to connect a virtual machine to a logical switch:

  1. Navigate to Networking & Security | Logical Switches.
  2. In the center pane, select or double-click the applicable logical switch name. Click the Actions button in the center pane and select Add VM or click the Add VM icon:

The Add Virtual Machines dialog box will open.

  1. Select the VM(s) and move the applicable VM from Available Objects on the left to Selected Objects on the right by double-clicking the VM or using the blue arrow. Click Next once you have selected all the required...