VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

Customization Specification not working

When I create a RHEL5 VM using a customization specification in vCenter server, it won't populate the default gateway. Has anyone seen this issue? It populates the IP address, subnet mask, DNS servers, etc., but not the default gateway. This is vSphere4

Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
malti
Contributor
Contributor
Jump to solution

If you are deploying a machine with multiple vNICs, when you edit the customization specification and select Custom Settings under network, you configure each vNIC independently. So you would just select New to add more vNIC customizations and in each one you specify a gateway (in addition to the IP and Subnet Mask). The machine would have a seperate default gateway defined for each vNIC. You should see these files in /etc/sysconfig/network-scripts. For example, if you have 2 vNICs you should see 2 files called route-eth0 and route-eth1 in this directory. These files will have the default gateway defined for eth0 and eth1 respectively.

View solution in original post

Reply
0 Kudos
5 Replies
malti
Contributor
Contributor
Jump to solution

I ran into the same thing when doing RHEL5 customizations. However, networking works and if you type 'route' or 'netstat -nr' you will see the default gateway is setup. I found that it is creating files in /etc/sysconfig/network-scripts/ called 'route-' or 'route-eth0' in my case. This is where the gateway is being set. Not sure why it does it in this manner, but it works just fine. You just don't see a gateway if you use the network administration GUI in Gnome to view the settings.

TheVMinator
Expert
Expert
Jump to solution

OK thanks

Reply
0 Kudos
TheVMinator
Expert
Expert
Jump to solution

I think the only question remaining is - what if there are multiple nics - if their default gateways don't show up in the gui - are they being all assigned to one default gateway - or can they still be assigned separate gateways? How would I check this?

Reply
0 Kudos
malti
Contributor
Contributor
Jump to solution

If you are deploying a machine with multiple vNICs, when you edit the customization specification and select Custom Settings under network, you configure each vNIC independently. So you would just select New to add more vNIC customizations and in each one you specify a gateway (in addition to the IP and Subnet Mask). The machine would have a seperate default gateway defined for each vNIC. You should see these files in /etc/sysconfig/network-scripts. For example, if you have 2 vNICs you should see 2 files called route-eth0 and route-eth1 in this directory. These files will have the default gateway defined for eth0 and eth1 respectively.

Reply
0 Kudos
TheVMinator
Expert
Expert
Jump to solution

OK great thanks

Reply
0 Kudos