Tuesday, November 22, 2016

VMware NSX Configuration Part 2

I will be demonstrating following configuration tasks in this post

  • Configure Default Gateway in Logical Router as IP of Edge Services Gateway
  • Configure OSPF on Logical Router with Area ID 101
  • Configure Uplink Interface on Edge Services Gateway attached to VLAN based Port Group
  • Configure OSPF on Edge Services Gateway with Area ID 101


Configure Default Gateway in Logical Router


Navigate to Logical Router under NSX Edges and Click on Routing Tab. You may notice Default Gateway is not configured. Click on Edit and specify the details


You will need to publish the change to get it reflected


To Test the connectivity  SSH into the Edge Services Gateway and try pinging IP for Logical Router. It should work fine



Configure OSPF on Logical Router


This will help configure dynamic routing between Logical Router and Edge Services Gateway

Navigate to Logical Router under NSX Edges and Click on Routing Tab Press  Global Configuration

You may notice OSPF is Disabled under Dynamic Routing Configuration


Click on Edit and set the "Router ID"


Don’t forget to Publish the Changes



Navigate to the OSPF on the left


Specify the Uplink Interface Address as "Forwarding Address" and Chose any free IP from the same Range as "Protocol Address'


Don’t forget to publish




Now we will create an Area Definition for the communication between Logical Router and Edge Services Gateway



Don’t forget to publish the Changes. By now you would have already noticed that I prefer to public with each change I make


Next we will do Area to Interface Mapping


Publish the Changes



Configure Uplink Interface on Edge Services Gateway


Navigate to Edge Services Gateway under NSX Edges and Click on Settings Tab Press  Interface

Select vnic1 and Click Edit icon



Select the Transport VLAN Port Group  which has access to the External World





Make sure IP is reachable from external servers

Configure OSPF in Edge Services Gateway


This will help configure dynamic routing between Logical Router and Edge Services Gateway

Navigate to Edge Services Gateway under NSX Edges and Click on Routing Tab Press  Global Configuration

You may notice OSPF is Disabled under Dynamic Routing Configuration
Click on Edit and set the "Router ID"






 Navigate to the OSPF on the left



Please ensure to check Enable OSPF


Publish the Changes


Now we will create an Area Definition for the communication between Edge Services Gateway and Logical Router. Please ensure Area ID is the same we created in Logical Router



Publish the Changes



Next we will do Area to Interface Mapping


Publish the Changes



Tests


In order to Test I created a New Logical Switch Test and added Internal Interface on the Logical Router with IP Range of 172.17.1/24

I logged in the console for Edge Services Gateway to see if it propagated route automatically for 172.17.1.x



With this base configuration for NSX has been completed. Now if you need more Logical Switches you can create as per you design and map it to the Interface in Logical Router

There are additional Services which we can configure in Edge Services Gateway as per your requirement. I will try go demonstrate couple of them in future posts

Please feel free to provide comments if the posts have been helpful

Saturday, November 19, 2016

VMware NSX Configuration Part 1

I will be demonstrating following configuration tasks in this post

  • Create Logical Switch “Transit Logical Switch”
  • Deploy Logical Router Appliance with Uplink Interface attached with Transit Logical Switch
  • Deploy Edge Service Gateway Appliance with Internal Interface attached with Transit Logical Switch


Create Logical Switch


Navigate to Logical Switches under Networking & Security via vSphere Web Client
Click on the + sign to create New Logical Switch













Deploy Logical Router


Navigate to NSX Edges under Networking & Security via vSphere Web Client
Click on the + sign to deploy new Logical Router





Please make sure to check "Enable SSH"

Specify the required Details  such as Resource Pool(Cluster) & Datastore




Select the HA Interface as the Transit Logical Switch which we created earlier. When we create uplink it will be on the same link
We will be configure Default Gateway later when we will deploy Edge Services Gateway . Please ensure to "Uncheck- Configure Default Gateway"





Deploy Edge Services Gateway

Navigate to NSX Edges under Networking & Security via vSphere Web Client.
Click on the + sign to deploy new Edge Services Gateway. You may have already noticed wizard is the same however options differ for Logical Router and Edge Services Gateway


Please ensure to check "Enable SSH"
I have chosen Large as the Appliance Size which will be 2 vCPU , 1 GB RAM and 1GB HDD approx
Specify the required Details  such as Resource Pool(Cluster) & Datastore
For now we will only add Internal Interface and it will be connected to same Logical Switch as the Logical router i.e. Lab_Transit_Logical_Switch

As this is Internal interface we will not Configure Default Gateway. When we will configure Uplink Interface that’s when we will specify Gateway


In Next Blog I will do showing following
  • Configure Uplink Interface attached to VLAN based Port Group
  • Configure Default Gateway in Logical Router as IP of Edge Services Gateway
  • Configure OSPF on Logical Router with Area ID 101
  • Configure OSPF on Edge Services Gateway with Area ID 101