NSX – Troubleshooting deployment of distributed Logical Routers and Edge Gateways – nsx controllers

NSX CONTROLLER – Validate configuration of logical switches

1. locate the master controller for each network

Each network in a distributed logical switch will be assigned a master controller, in nsx 6.1 and before you need to identify the right controller for your network

For example the network vni 5002 is associated with controller 192.168.110.72

# show control-cluster logical-switches vni 5000
 VNI      Controller      BUM-Replication ARP-Proxy Connections VTEPs
 5000     192.168.110.71  Enabled         Enabled   4           1
# show control-cluster logical-switches vni 5001
 VNI      Controller      BUM-Replication ARP-Proxy Connections VTEPs
 5001     192.168.110.73  Enabled         Enabled   0           0
# show control-cluster logical-switches vni 5002
 VNI      Controller      BUM-Replication ARP-Proxy Connections VTEPs
 5002     192.168.110.72  Enabled         Enabled   0           0
# show control-cluster logical-switches vni 5003
 VNI      Controller      BUM-Replication ARP-Proxy Connections VTEPs
 5003     192.168.110.71  Enabled         Enabled   4           1

 

NSX-Lab-dvs - show logical-switches vni

Execute the following troubleshooting commands from each network’s master controller

 

2. show the mac of the vms that are connected to each network


For example from Controller 2 (.72) only vni 5002 will provide output to the command show … logical-switches mac-table

# show control-cluster logical-switches mac-table 5000
htb-1n-eng-dhcp10 # show control-cluster logical-switches mac-table 5000
Error: Not found

# show control-cluster logical-switches mac-table 5001
Error: Not found

# show control-cluster logical-switches mac-table 5002
VNI      MAC               VTEP-IP         Connection-ID
5002     00:50:56:8f:a8:3f 192.168.130.52  13
5002     00:50:56:8f:d8:ca 192.168.130.52  13

The macs displayed are those of the vms connected to the 5002 network

 

NSX-Lab-dvs - show logical-switch mac-table

3. show the mac addresses of each host vtep in use by the network

This will output the mac of the vtep vmk for the hosts

Only host where vms are using the network will show

Do a test vMotion all vms on a network to a single host run the command, then distribute and run it again – here there are 2 vms on 2 hosts,

# show control-cluster logical-switches vtep-table 5002
VNI      IP              Segment         MAC               Connection-ID
5002     192.168.130.51  192.168.130.0   00:50:56:6c:bf:b6 12
5002     192.168.130.52  192.168.130.0   00:50:56:65:1a:eb 13

Host vmk3 is the corresponding ip/mac for vni 5002

vtep-mac

 

Check the controller log for clues

Tab after show log cloudnet/cloudnet_java-vnet-controller to see your log name

show log cloudnet/cloudnet_java-vnet-controller.xxxx filtered-by ERROR

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.