Hi guys, I need some help around vmware and vswitches, in particular, creating a vswitch to be used for vmotion.
I already have a vswitch for the management network which has 2 NICs attached, and has an IP of 192.168.7.45.
What I need to do is create another vswitch for vmotion, however, the IP subnet is different to the management subnet. When I go through the process, select the NICs and then enter the IP, which is 192.168.30.77, I need to change the gateway so it's 192.168.30.1. It defaults to 192.168.7.1 and it lets me change it but gives a warning that changing may cause the host to disconnect. I tried changing it anyway and it popped up an error while it tried applying the settings and reverted the gateway back to the default (192.168.7.1).
What do I need to do so that the gateway is 192.168.30.1?
there are not know possibility to configure more than 1 default gateway for ESXi host.
But you can add another routes/gateways from a command line depends from a ESXi version You can found full description how to do that here on vm kb:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2001426
generally You should use commands like that:
esxcfg-route -a
esxcli network ip route ipv4/ipv6 add
I never try vMotion with a router but I dont sure You really need a router for that vMotion, do hosts (and vMotion network) are on different subnets? If yes, its not recommended, they should be in 1 single isolated network.
best regards
NTShad0w