VMware vSphere

 View Only
Expand all | Collapse all

Multiple default gateways on a single ESXi host?

  • 1.  Multiple default gateways on a single ESXi host?

    Posted Mar 25, 2013 03:31 PM

    If I am using virtual distributed switch, with NFS and management ports, can I create two separate default gateways, one for NFS and one for the management network?



  • 2.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 25, 2013 03:42 PM

    Please take a look at http://kb.vmware.com/kb/2001426 to see whether this helps.


    André



  • 3.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 25, 2013 07:10 PM

    Does the same principle in this article apply to having NFS traffic on a separate subnet / vlan from management traffic?



  • 4.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 25, 2013 07:25 PM

    It actually applies if - for whatever reasons - you need more than one VMkernel port group (subnet) routed.

    André



  • 5.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 25, 2013 08:59 PM

    Great - it says you can do this using host profiles in 5.1 but it doesn't say how - any ideas on that?



  • 6.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 26, 2013 03:08 PM

    A R wrote:

    If I am using virtual distributed switch, with NFS and management ports, can I create two separate default gateways, one for NFS and one for the management network?

    You are limited to one gateway.

    NFS traffic should not be routed - put the vmkernel port IP on the same subnet as the NFS export's IP.



  • 7.  RE: Multiple default gateways on a single ESXi host?

    Posted Mar 29, 2013 03:51 PM

    Using a non-routed subnet for NFS traffic is definitely best practice.  However, it seems from the article that VMware is saying that you can add a static route.  Notice, not a default gateway, but a static route at the command line.  If you are required to temporarily set up access to an NFS mount on a different subnet, it seems like the article is saying you should be able to do that with a static route.  Thoughts? 



  • 8.  RE: Multiple default gateways on a single ESXi host?

    Posted Apr 01, 2013 01:57 PM

    Whether or not it is NFS that is in question, the article does seem to indicate that multiple static routes are possible, so if you did want to use NFS routed or any other second vmkernel port routed, it seems that it should be possible, unless that article is incorrect.  At least that seems to be the purpose of the KB, to show that it is at least possible...but is it?



  • 9.  RE: Multiple default gateways on a single ESXi host?

    Posted Apr 01, 2013 04:41 PM

    Routed NFS are now supported, but with some heavy requirements, see this:

    http://blogs.vmware.com/vsphere/2012/06/vsphere-50-u1-now-supports-routed-nfs-storage-access.html



  • 10.  RE: Multiple default gateways on a single ESXi host?

    Posted Apr 05, 2013 03:22 PM

    They are still a very bad idea, often being a nightmare to troubleshoot and provide performance support. Why introduce multi-hop latency to your storage protocol?



  • 11.  RE: Multiple default gateways on a single ESXi host?

    Posted Apr 05, 2013 04:05 PM

    There is no technical reason to do this and it is a bad design but sometimes if you are not the one making the decision you have to follow orders...



  • 12.  RE: Multiple default gateways on a single ESXi host?

    Posted Apr 06, 2013 10:11 AM

    Chris Wahl wrote:

    They are still a very bad idea, often being a nightmare to troubleshoot and provide performance support.

    I totally agree. It could however be situations where you might want to access some remote ISO store or something through NFS and it is interesting just to know it is possible.