Skip to main content

Posts

Showing posts from March, 2020

NSX-T | Glossary of Components

I found below useful definition of NSX-T. Thought to share with all. Source - VMware Documentation Control Plane Computes runtime state based on configuration from the management plane. Control plane disseminates topology information reported by the data plane elements and pushes stateless configuration to forwarding engines. Data Plane Performs stateless forwarding or transformation of packets based on tables populated by the control plane. Data plane reports topology information to the control plane and maintains packet level statistics. External Network A physical network or VLAN not managed by NSX-T. You can link your logical network or overlay network to an external network through an NSX Edge. For example, a physical network in a customer data center or a VLAN in a physical environment. Host Transport Node Hypervisor node that has been registered with the NSX-T management plane and has NSX-T modules installed. For a hypervisor ho

PS | How to install VMware Modules in Powershell

Hi Guys, I was getting few questions from people on how to install NSX module, vCD module and even powercli module in powershell. So, I thought to create one stop portal for all kind of modules's installation. Below are the command to install these three modules when you have active internet connection Below is the way to install these modules when you don't have active internet connection  It is most likely useful where internet is not allowed intentionally but you need these modules there. so, To install PowerNSX, download the zip file and paste it to "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" and then run the command Install-Module PowerNSX # as shown in above image To install VMware.PowerCLI, download the zip file and paste it to "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" and then run the command Install-VMware.PowerCLI To install VMware-vCD-Module, download the zip file and paste it to "C:\Windows\Sys

PowerNSX | Add mulitple static route in NSX Edge

Good Day Folks, During one of the activity, I had a requirement to put multiple (20-25) static routes on NSX edge and doing it one by one and manually is a headache, you know that. right? So, I thought to do it through power NSX. Below is the code- #Start here Connect-NSXServer -NSXserver 192.168.110.42 $nsxedges = (Get-nsxedge -objectid edge-3).id $subnets = '172.16.32.0/24','172.22.12.0/24'      #add all the network which you want to add in static route $nexthop = '8.8.8.8' Foreach($subnet in $subnets){ Foreach($nsxedge in $nsxedges){ Get-NsxEdge -ObjectId $nsxedge | Get-NsxEdgerouting | New-NsxEdgeStaticRoute -vNic 0 -Network $subnet -NextHop $nexthop -MTU 9000 -AdminDistance 1 -Confirm:$false } } #End here Refer to below output for an example Hope it will help you. Let me know if any doubt or any error. Thank you, vCloudNotes

NSX | Working with GRE tunnels

Hi Folks, I found very few article on GRE tunnel creation in NSX so, thought to contribute :) I'll be happy if it is useful for you! So, first of all GRE creation is not possible in vCenter NSX GUI. It can only be created via API tool, Starting from version 6.4. Let's explore how to use NSX API and how to create GRE tunnel. Step 1 - Download and install any Rest API client. It can be Postman\Insomnia\Advance Rest Api or any other and open it. Step 2 -  Connect NSX Manager in your API client and get edge-id of your target edge (If you don't know already) - 2.1 Connect NSX Manager by giving header and authentication information Feed header info as shown below-  And authentication as below- - 2.2 First, Get your edge-id with below api query if you don't know already. Put NSX manager IP address like, https://NSX_MGR_IP/api/4.0/edges (It will populate all edges in your NSX environment) You should get 200 OK response as shown below. Copy th

NSX | Hardware VTEP integration with Arista

Hi Guys, Recently I got opportunity\challenge to configure the hardware VTEP integration with Arista where overlay is NSX. After some web-search, I got below URL which explain the exact steps and in very clear and good way. It helped me a lot to configure the CVS on Arista and integrate it on my NSX environment. If you are too looking form similar kind of configuration then it might be useful for you. Have a look. http://docs.hol.vmware.com/hol-isim/HOL-2017/hol-1703-arista.htm Thank you, vCloudNotes

PS | How to change vNIC of all VMs inside a portgroup

This was the requirement during a network migration from physical to NSX. You might know that changing the VM's network (from VLAN portgroup to VXLAN portgroup) is essential part of this migration. But the challenges are There are around 500 VMs and doing it manually is a headache.  Many VMs have multiple NICs so we cannot simply give source of a VM and change the NIC. For example,  $TPortgroup = Read-host "Enter the name of target Portgroup here " foreach($VM in (Get-Content C:\temp\vmlist.txt)){Get-VM -Name $VM | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName $TPortgroup Above command will change all the NICs of this VM1. Solution is Get-Cluster 'ClusterName' | Get-VM |Get-NetworkAdapter |Where {$_.NetworkName -eq 'Source PG Name' } |Set-NetworkAdapter -NetworkName 'vxw-dvs-48-universalwire-VXLAN PG Name' -Confirm:$false Above command will target only those Network Adapter which belongs to 'Source PG Name' and w