Here's my question. I am setting up a vm server for a team overseas, they need to be able to reach the management side of the vm to create virtual machines, etc.
I've done that by trunking down a vlan, say, 501, from our switch and its in nic0. That nic is assigned to vswitch0 and I see that its getting a IP just fine.
I created a 2nd vswitch, and added vnic1. Vnic1 is getting vlans 12,14 & 501 trunked down to it from the same physical switch. My problem is this, if I add vlans 12 and 501, the VM gets a IP from vlan 12 just fine, but won't pull one from 501.
I've verified that we're not out of IP's in the vlan 501 range, it just seems like its something the VM doesn't like about having the same vlan ID on the mgt as well has having it on the VM itself.
Any suggestions on how to accomplish this??
Hard to say where went wrong. I will start by looking in these areas:
- check if management vmkernel has the same network address and vlan 501.
- check if the management port group has the vlan 501 tagged, mapped to the correct vswitch. *important*
- verify your switch configure if the switchport is trunk with the correct vlans.
- remove and add the network adapter on the vm.
Seems something wrong with your configuration. Try adding one more port group to your first switch with vlan 501 and see if it's working
Regards,
Sachchidanand
Ok, here's some info:
1) vmkernel is getting a IP from the vlan 501 network. The IP ending in .220 is in the IP range being handed out by DHCP
2) The management port group does appear to have vlan 501 tagged and going to the correct vswitch (its showing vSwitch0 here, but its actually the production switch)
3) Switchport is sending only requested vlans. Interface 1/1/32 goes to physical nic0 and assigned to the management network/vswitch0, 1/1/33 goes to nic1 and goes to production switch
4) The network adapter has been removed and added
If your vswitch0 has management network tagged as vlan 501, you can use the same for VMs as well and check if you getting ip or not?
Remove the vlan 501 from vswitch0 and use management network, if it's not working then check on vm if it is using dhcp for getting ip along with check on your dhcp server if IPs are available to assign.
Also your physical switch is of Cisco?
Regards,
Sachchidanand
