For Tier-1/Tier-0 gateways in active-active mode 'get logical-router <uuid> forwarding' will show two default routes in the forwarding table with gateway pointing to both edges. This KB provides steps to identify correct edge node used for a particular flow from a specific host.
VMware NSX-T Data Center
VMware NSX
[root@esx:~] nsxcliesx.example.local> get logical-router 2214affb-####-####-9d85-bd5fda6d73eb forwardingWed May 22 2024 UTC 08:02:12.113 Logical Routers Forwarding Table--------------------------------------------------------------------------------------------------------------Flags Legend: [U: Up], [G: Gateway], [C: Connected], [I: Interface][H: Host], [R: Reject], [B: Blackhole], [F: Soft Flush], [E: ECMP] Network Gateway Type Interface UUID==============================================================================================================0.0.0.0/0 169.#.#.2 UGE 348953c8-####-####-be05-88edcf7b83a60.0.0.0/0 169.#.#.1 UGE 348953c8-####-####-be05-88edcf7b83a6[root@esx:~] net-vdr -R -o resolve -e <source-ip> -i <destination-ip> <logical-router-UUID>[root@esx:~] net-vdr -R -o resolve -e 172.#.#.# -i 8.#.#.88 2214affb-####-####-9d85-bd5fda6d73ebDR 2214affb-####-####-9d85-bd5fda6d73eb Route TableLegend: [U: Up], [G: Gateway], [C: Connected], [I: Interface]Legend: [H: Host], [B: Blackhole], [F: Soft Flush] [!: Reject] [E: ECMP]Destination GenMask Gateway Flags Ref Origin UpTime HitCount Lif UUID----------- ------- ------- ----- --- ------ ------ -------- ---------0.0.0.0 0.0.0.0 169.#.#.2 UGE 3 618619 113224 348953c8-####-####-be05-88edcf7b83a6[root@esx:~]edge> get logical-routers62124bbf-##-4d64-###-573064b18dc1 8 1027 SR-T1-####-01 SERVICE_ROUTER_TIER1 5 2/50000
edge> vrf 2edge(tier0_sr[2])> get interfaces | more '| more' will display output one page at a time.Return path for traffic originating from outside NSX entering NSX edge will be determined by uplink ToR switch.