VMware Cloud Community
fatbobsufc
Contributor
Contributor

Change default gateway on guest after vmotion

We currently have two ESX servers in two seperate server rooms, with two seperate default gateways. This means that when I vmotion a guest from one ESX server to the other, the default gateway is incorrect. Is there a way to make this part of the process of vmotion? ie can vmotion change the default gateway automatically after migration?

Otherwise can anyone suggest an alternative configuration given that we are stuck with different default gateways?

Reply
0 Kudos
1 Reply
AWo
Immortal
Immortal

I hope that will help you:

There's something out called "Powershell" (http://communities.vmware.com/thread/149638;jsessionid=B5FCB336EF160C50645E84A844AD3B9A?tstart=100). This thread describes how to migrate a guest via a script. If you get this running you might be able to run an additinal command within the guest which sets the TCP/IP parameters with this command

"netsh interface ip set address name="Local Area Connection" source=static addr=192.168.0.2 mask=255.255.255.0 gateway=192.168.0.1 1"

Not a real complete answer but it might be the start of a solution...

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos