Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
VMware NSX Cookbook
VMware NSX Cookbook

VMware NSX Cookbook: Over 70 recipes to master the network virtualization skills to implement, validate, operate, upgrade, and automate VMware NSX for vSphere

Arrow left icon
Profile Icon Bayu Wibowo Profile Icon Tony Sangha
Arrow right icon
zł39.99 zł177.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook Mar 2018 584 pages 1st Edition
eBook
zł39.99 zł177.99
Paperback
zł221.99
Subscription
Free Trial
Arrow left icon
Profile Icon Bayu Wibowo Profile Icon Tony Sangha
Arrow right icon
zł39.99 zł177.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook Mar 2018 584 pages 1st Edition
eBook
zł39.99 zł177.99
Paperback
zł221.99
Subscription
Free Trial
eBook
zł39.99 zł177.99
Paperback
zł221.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

VMware NSX Cookbook

Configuring VMware NSX Logical Switch Networks

In this chapter, you will learn how to configure VMware NSX Logical Switch Networks. We will be looking at the following recipes:

  • Configuring VXLAN networking
  • Configuring a VXLAN segment ID
  • Creating a NSX Transport Zone
  • Creating a NSX Logical Switch
  • Connecting a Virtual Machine to an NSX Logical Switch
  • Testing an NSX Logical Switch
  • Enabling the Controller Disconnected Operation Mode on a Transport Zone

By now, you should have a vSphere cluster that has been prepared for NSX, added the vSphere cluster onto a Virtual Distributed Switch for VXLAN, and have the physical network ready for VXLAN.

Introduction

In this chapter, we will show you how to configure and prepare the vSphere cluster for VXLAN and create a logical switch network. Before getting into the recipes, here is background information on VXLAN and other VMware NSX objects that are related to it.

VMware NSX Logical Switch and VXLAN

The VMware NSX logical switch is a layer 2 broadcast domain that is implemented using VXLAN (Virtual eXtensible LAN) overlay network. VXLAN is standardized in IETF RFC 7348 (https://tools.ietf.org/html/rfc7348). VXLAN adds 50 bytes on top of the original Ethernet frame (with a standard of 1,500 bytes) and encapsulates the source Ethernet frame in a new UDP packet. The 50 bytes consist of:

  • 8 bytes VXLAN header added on top...

Configuring VXLAN Networking

The VXLAN VIB is installed as part of the NSX host preparation but it is not ready to use until we configure VXLAN networking. In this recipe, we will prepare a vSphere cluster for VXLAN:

Attributes

Value

vDS

RegionA01-vDS-COMP

VLAN

130

MTU

1,600

VMKNic IP addressing

IP Pool

IP pool details

Name: VTEP_RegionA01-COMP01

Gateway: 192.168.130.1

Prefix Length: 24

Static IP Pool: 192.168.130.51-192.168.130.53

VMKNic teaming policy

Failover

VTEP

1

Getting ready

To configure VXLAN networking, the following prerequisites need to be satisfied:

  • The NSX Manager must be deployed.
  • The NSX controllers must be deployed.
  • The vSphere cluster should be prepared...

Configuring a VXLAN Segment ID

In this recipe, we will configure a VXLAN segment ID. In a physical network with VLAN, a ID or VLAN ID is required for each VLAN segment. Similar to VLAN, VXLAN requires an ID for each VXLAN segment that will be used by NSX logical switches. The VXLAN segments are identified by a 24-bit VXLAN network identifier (VNI) or segment ID in VMware NSX. In this example, we will configure a segment ID range of 10,000-15,000 with an optional multicast IP address range of 239.1.0.1-239.1.63.254.

Getting ready

VMware NSX VNIs (segment IDs) are between 5,000-167,772,15. As per vSphere maximum configurations, the maximum static/dynamic port groups per vCenter is 10,000; therefore, up to 10,000 VNIs per NSX...

Creating a NSX Transport Zone

An NSX transport zone container can be created before a logical switch. In this recipe, we will create a unicast transport zone called RegionA01_TZ and add the RegionA01-COMP cluster to be part of the transport zone:

Getting ready

By now, you should have a vSphere cluster with the VXLAN and segment ID range configured, as covered in previous recipes. When creating a transport zone, a replication mode must be chosen. See the Introduction section to understand the replication mode options and what to consider.

Once a replication mode has been chosen, you can still change it later in the transport zone level by editing the created transport zone. For example, you can create a unicast transport zone...

Creating a NSX Logical Switch

In this recipe, you will learn how to create a logical switch in NSX. In this example, four logical switches will be created on an existing transport zone, RegionA01_TZ:

Getting ready

To configure a logical switch, the following prerequisites need to be satisfied:

  • The segment ID must be configured; the segment ID range 10,000–15,000 was configured in the previous recipe
  • The transport zone should be created; we created the RegionA01_TZ transport zone in the previous recipe
  • The vSphere cluster(s) should be added into the transport zone; we added the RegionA01-COMP cluster into the RegionA01_TZ transport zone during the transport zone creation in the previous recipe
  • When using hybrid or...

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...

Testing an NSX Logical Switch

In the previous recipes, we demonstrated how to configure VXLAN, create a logical switch, and connect a VM to a logical switch. But we have not covered how to test the VXLAN logical switch connectivity. In this recipe, you will learn how to test and validate the NSX logical switch connectivity.

Getting ready

You will need to have at least an NSX logical switch created before we can test. VM is not mandatory; you can test a NSX logical switch even without a VM attached to it. The NSX plugin in the vSphere web client can perform a logical switch ping and the broadcast test.

How to do it...

...

Enabling the Controller Disconnected Operation Mode on a Transport Zone

As covered in the introduction, CDO mode provides additional control plane resiliency during controller connectivity and controller cluster unavailability. With CDO mode enabled, VMs can be moved between ESXi hosts without data plane disruption, even if the whole controller cluster is down. In this recipe, we will show you how to enable CDO mode on a transport zone in NSX.

Getting ready

CDO mode is disabled by default in NSX. To enable CDO mode, the following prerequisites need to be satisfied:

  • NSX is running on Version 6.3.0 or later
  • The vSphere cluster has been prepared for NSX with VXLAN configured
  • The NSX transport zone has been created
  • The vSphere...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Over 70 practical recipes created by two VCIX-NV certified NSX experts
  • Explore best practices to deploy, operate, and upgrade VMware NSX for vSphere
  • Leverage NSX REST API using various tools from Python in VMware vRealize Orchestrator

Description

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.

Who is this book for?

If you are a security and network administrator and looking to gain an intermediate level for network and security virtualization, then this book is for you. The reader should have a basic knowledge with VMware NSX.

What you will learn

  • Understand, install, and configure VMware NSX for vSphere solutions
  • Configure logical switching, routing, and Edge Services Gateway in VMware NSX for vSphere
  • Learn how to plan and upgrade VMware NSX for vSphere
  • Learn how to use built-in monitoring tools such as Flow Monitoring, Traceflow, Application Rule Manager, and Endpoint Monitoring
  • Learn how to leverage the NSX REST API for management and automation using various tools from Python to VMware vRealize Orchestrator

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 29, 2018
Length: 584 pages
Edition : 1st
Language : English
ISBN-13 : 9781785887598
Vendor :
VMware
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 29, 2018
Length: 584 pages
Edition : 1st
Language : English
ISBN-13 : 9781785887598
Vendor :
VMware
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 641.97
VMware Cross-Cloud Architecture
zł221.99
VMware NSX Cookbook
zł221.99
VMware vSphere 6.5 Cookbook
zł197.99
Total 641.97 Stars icon
Banner background image

Table of Contents

13 Chapters
Getting Started with VMware NSX for vSphere Chevron down icon Chevron up icon
Configuring VMware NSX Logical Switch Networks Chevron down icon Chevron up icon
Configuring VMware NSX Logical Routing Chevron down icon Chevron up icon
Configuring VMware NSX Layer 2 Bridging Chevron down icon Chevron up icon
Configuring VMware NSX Edge Services Gateway Chevron down icon Chevron up icon
Configuring VMware NSX Distributed Firewall (DFW) and SpoofGuard Chevron down icon Chevron up icon
Configuring Cross-vCenter NSX Chevron down icon Chevron up icon
Backing up and Restoring VMware NSX Components Chevron down icon Chevron up icon
Managing User Accounts in VMware NSX Chevron down icon Chevron up icon
Upgrading VMware NSX Chevron down icon Chevron up icon
Managing and Monitoring VMware NSX Platform Chevron down icon Chevron up icon
Leveraging the VMware NSX REST API for Management and Automation Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(4 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Jim Davis Aug 26, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A really brilliant way to get a realistic, practical knowledge of the NSX product.
Amazon Verified review Amazon
Zeek Aug 21, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I was hoping that the book is based on NSX 6.4.x but it its is based on NSX 6.3.0.
Amazon Verified review Amazon
Cm Jenkins Jul 10, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a good easy to read set of instructions
Amazon Verified review Amazon
Pepe Oct 23, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Los temas del libro esta muy completos y es ideal para profundizar en el conocimiento de NSX.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.