Solved

Vmware - create vswitch for vmotion with different default gateway

Posted on 2014-11-30
8
1,588 Views
Last Modified: 2014-12-01
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?
0
Comment
Question by:amaru96
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40473207
Do you need a different gateway for vMotion?

Are all your hosts on the same vMotion Network ?

Then there is no need to change the vMotion Network gateway, and you can leave it as it is.

vMotion Network should be isolated.

e.g. we have a Production Network of

150.237.xxx.xxx

All our hosts, vCenter Server, and Servers are on this LAN.

vMotion Network

172.16.xxx.xxx

This has the same gateway as the Production Network, but it does not matter, because all communications between hosts will be local on this network, e.g. it does not have to route to hosts.
0
 
LVL 5

Expert Comment

by:Dawid Fusek
ID: 40473351
amaru96,

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
0
 
LVL 1

Author Comment

by:amaru96
ID: 40474386
All my hosts are in the same vmotion subnet (192.168.30.x). So if thats the case it doesnt need a gateway? I figured it would need to communicate outside of this subnet, hence a "real" gateway.

Thanks for clearing that up.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 121
ID: 40474429
Correct.

No need to change just leave as is.

Only needs a gateway, to reach another host on another subnet! As you have none, leave as is.

Simply!
0
 
LVL 1

Author Comment

by:amaru96
ID: 40474462
Great, nice and simple, thanks.

But what if I did have hosts in another subnet, what would I need to do?

Static route?
0
 
LVL 121
ID: 40474551
That creates a whole new design...not just your ESXi servers and very much depends on how you design your network and VLANs.

Static Route is one option....but maybe not needed..

You can still keep the same flat unrouted network using VLANs between different Hosts, for your vMotion network, which should be dedicated for vMotion.

What is more important is the 1GBe link between servers, and low latency....

because you would have to have Storage Accessible from both networks?
0
 
LVL 1

Author Comment

by:amaru96
ID: 40474575
Thanks mate, really appreciate all the info.
0
 
LVL 121
ID: 40474583
no problems
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question