In VMware Cloud Foundation, because vSphere uses a single default gateway, all routed traffic attempts to reach its destination through this gateway. Configure static routes on the ESXi hosts in both availability zones to route vSAN traffic using a dedicated gateway.

Table 1. ESXi Hosts of the NSX-T Workload Domain

Availability Zone

ESXi Host

Availability Zone 1

sfo01w01esx01.sfo01.rainpole.local

sfo01w01esx02.sfo01.rainpole.local

sfo01w01esx03.sfo01.rainpole.local

sfo01w01esx04.sfo01.rainpole.local

Availability Zone 2

sfo02w01esx01.sfo01.rainpole.local

sfo02w01esx02.sfo01.rainpole.local

sfo02w01esx03.sfo01.rainpole.local

sfo02w01esx04.sfo01.rainpole.local

Procedure

  1. Configure static routes on the first ESXi host in Availability Zone 1.
    1. Log in to the sfo01w01esx01 ESXi host by using a Secure Shell (SSH) client.
      Setting Value
      FQDN sfo01w01esx01.sfo01.rainpole.local
      User name root
      Password esxi_root_user_password
    2. Add static route to the vSAN network in Availability Zone 2 by running this command.
      esxcli network ip route ipv4 add -n 172.16.63.0/24 -g 172.16.43.253
    3. Add static route to the network of the vSAN witness host by running this command.
      esxcli network ip route ipv4 add -n 172.17.13.0/24 -g 172.16.43.253
  2. Repeat Step 1 on the other hosts in Availability Zone 1.
  3. Configure static routes on the first ESXi host of Availability Zone 2.
    1. Log in to the sfo02w01esx01.sfo01.rainpole.local ESXi host by using a Secure Shell (SSH) client.
      Setting Value
      FQDN sfo02w01esx01.sfo01.rainpole.local
      User name root
      Password esxi_root_user_password
    2. Add static route to the vSAN network in Availability Zone 1 by running this command.
      esxcli network ip route ipv4 add -n 172.16.43.0/24 -g 172.16.63.253
    3. Add static route to the vSAN witness host witness network by running this command.
      esxcli network ip route ipv4 add -n 172.17.13.0/24 -g 172.16.63.253
  4. Repeat Step 3 on the remaining ESXi hosts in Availability Zone 2.