VMware Cloud Community
ghsatpute
Contributor
Contributor

VM Customization: Gateway not set for second NIC

I'm using vCenter Version 5.5.0 Build 1945276.

I'm trying to create a CentOS VM from a template. The template has two NICs (private and public), and I want to assign IPs to both of the NICs I'm trying to assign the IPs via VM customization. I'm giving two IPs, two gateways and two netmasks as input to VM creation wizard.

When the VM gets created the IPs and Netmask information is properly applied but the default gateway is not applied for the second NIC. Because of this I'm not able to connect to VM via public IP. [For Ubuntu and Windows 2008 the both gateways are properly applied]

When I do `ip route`, I should see two default gateways in the output like (which I see on Windows and Ubuntu template VMs)

default via a.b.c.d dev eth0

default via p.q.r.s dev eth1

But in the output, I only see one gateway

default via a.b.c.d dev eth0

Also, when I only apply public NIC and do the configuration public gateway is properly applied. But whenever I add both private and public NICs then for second NIC the gateway information is not set

0 Kudos
0 Replies