Can we configure different Default Gateway in an ESXi for some vmkernel ports like for one 10.0.0.9 and for another 172.10.0.7 ?
Hello,
yes you can set-it up.
VMware KB: Configuring static routes for vmkernel ports on an ESXi host
Thanks,
Avinash
I don't know if multiple default gateways is the way to go. Very unpredictable, I'd go with configuring static routes.
Try configuring more than one default gateway on a Windows machine. You'll get a prompt effectively saying "I don't know what you think you're going to achieve, but you're not going to achieve it". It's no different under VMware. You really don't want to do this.
Avinash21 has the answer for what you're trying to achieve, however, to actually answer your question: No, it is not possible to setup more than one Default Gateway on a vSphere host. If there were more than one, then it would have no way of differentiating between the two as they would not be unique from a routing perspective.
However, if you want to set up a static route to a network segment behind another router, then yes this is certainly achievable. This is not the same as a Default Route, it is simply an alternate route for a specific destination. Avinash21 has your answer there.