In this post, we are going to have a look at our switching environment using the NSXCLI command. Below is a logical view of our current setup, we will focus on the web logical switch.
Let’s log on to one of our ESXi host and run the NSXCLI command
In NSX-Manager > Switching we can see that VNI 27528 has been assigned to the Web-LS logical switch.
Type get logical-switch and tab, we will see that we can work with our switches and our switch ports.
Typing get logical-switches will list all the logical switches that this host know about which includes our Web-LS switch which we know has been assigned VNI 27528.
Let’s dig a bit deeper by specifying out VNI
To view the mac table of our switch .
The MAC addresses above should match the MAC addresses of web-01a and web-02a. The outer IPs relate to the IPs of our transport nodes.
Let’s check the logical switch ARP table. Note: The IPs in the table are the IPs of web-01a and web-02a.
How about the VTEP table?
I have added a new vm on a different host to the Web-LS logical switch to check the impact on the VTEP table. Notice the new IP and MAC that have been added.
In NSX-Manager confirm your LS ID
If you the check the ports of our Web-LS logical switch we can see that there are couple of ports that are up. These ports refer to the VMs currently connected to it.
I hope this post was helpful. Thank you for reading.
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
My name is Amine El Badaoui and I currently live in Aylesbury, a small town in the south east of England
I have been working in the IT industry for few years now and specialise in VMware virtualisation, data centre infrastructure and cloud technologies. Over the years I have obtained numerous industry certifications from Microsoft, Netapp and VMware.I currently work as a VMware Product Engineer @ https://www.rackspace.com/
This blog represents my random technical notes and thoughts. The thoughts expressed here do not reflect my current employer in anyway.