VMware {code} Community
janetdoyle
Contributor
Contributor

Linux Cloning and Gateways

Hello,

If I'm cloning from a Linux template that has a gateway defined, how can I replace that gateway with a new one? I used the same procedure as I would with Windows box and that only seems to append the gateway not replace it.

Any guidance will be appreciated.

Thanks,

JD

0 Kudos
3 Replies
admin
Immortal
Immortal

Hi JD,

You can easily specify a new gateway IP when cloning a linux template in the same way when you clone from Windows, using CustomizationIPSettings.gateway property, which is an array. I tried the same at my end and it works.

Incase you still facing any issue, please share your customization spec, so that I can have a look at that.

Thanks.

0 Kudos
janetdoyle
Contributor
Contributor

AngelaS,

Can you tell me what setting in the Custom Spec would cause the gateway to appended?

Thanks,

JD

0 Kudos
admin
Immortal
Immortal

Basically this gateway property is an array, which contains the list list of gateways, in order of preference. Hence, you can append a new gateway IP in the list as per your environment. Refer VirtualMachineCloneSpec.customization.nicSettingMap.adapter.gateway.

0 Kudos