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.
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
- Configure static routes on the first ESXi host in Availability Zone 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 - 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
- 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
- Log in to the sfo01w01esx01 ESXi host by using a Secure Shell (SSH) client.
- Repeat Step 1 on the other hosts in Availability Zone 1.
- Configure static routes on the first ESXi host of Availability Zone 2.
- 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 - 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
- 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
- Log in to the sfo02w01esx01.sfo01.rainpole.local ESXi host by using a Secure Shell (SSH) client.
- Repeat Step 3 on the remaining ESXi hosts in Availability Zone 2.