Link to home
Start Free TrialLog in
Avatar of John Boston
John BostonFlag for United States of America

asked on

Cant connect to internet on vm.

I am running a home Cisco Collaberation lab. I am running Server 2012 and also installing CUCM on workstation 15 on my pc. All was working a few days ago but now i cant get out to internet on any of the vm i have. I can reach the internet with the pc no problem. The vm is gettng a dhcp from my 2911 router but the router does not have internet access. I have both vm set to bridge on the network card. I can ping the default gateway (which is the 2911) just fine. When i hook the internet to the router i can still get on the internet on my pc but not on the VM. Please let me know what other information you might need. Thanks for taking the time to read my issue.
Avatar of Elie Matar
Elie Matar
Flag of Lebanon image

Are you using GNS3?
Are you able to reach the internet from your router?
try to ping 8.8.8.8 from your internet router?
Share router config especially NAT 
Avatar of John Boston

ASKER

Im not using NAT.  Im not using GNS 3.  I dont usually have intenet running through my router. Just use it right now for dhcp. I usually just bridge the vm and have no issue connecting to internet.  I can reach internet fine from PC. Im sure its something silly that i just cant figure out.


ASKER CERTIFIED SOLUTION
Avatar of Mohammad Rummaneh
Mohammad Rummaneh
Flag of Jordan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why are you using the 2911 as the default gateway if it doesn't have internet access? You can still use the 2911 as a DHCP server but set your internet router as the default gateway in the DHCP scope.
is your gateway missing ?

trace a route to 8.8.8.8
If i have all of my VMs running from my pc and my pc can reach the internet then shouldnt my VMs be able to get out?  Ive never used nat once. I always have them set up as a bridged connection in workstation 15. I am using the 2921 as a default gateway for my collaberation lab. I usually dont use it to get to the internet. I have my pc plugged straight into my isp router. Im sure there is something i am just not understanding. I am trying to install a new Call Manager and it cant reach the NTP servers to finish install. So then i got on my Server 2012 to see if i could ping the NTP servers and i cant. But i can ping them from my pc no problem.
If i have all of my VMs running from my pc and my pc can reach the internet then shouldnt my VMs be able to get out?

Not necessarily, depends on how you have your virtual machines and hypervisor configured.

I always have them set up as a bridged connection in workstation 15.

that's a good start.

But it still depends on your networking configuration.

So you've got something wrong with your bridged setup or your IP Address range in your VMs.

Compare PC and VM IP info.a

I got my Server 2012 finally reaching the internet. I went into virtual network manager and for some reason it was set to use NAT. I put it back to bridge to Vmnet 0 and it can reach internet. But my main issue is still there. I cant finish my CUCM install untill it can reach the NTP servers that i put in. I know for sure the servers ip are good. I setup the CUCM the exact same way that i have the Server 2012 but it still cant get out.  Let me sort of put my self on the spot here. This is a home lab. I mostly learn from messing up. I had this all working before till i had to move my pc and lab to a different area. Before all of the VMs had ip address from my 2921 but could still connect to the internet with my bridged vm connection. I need the VMs to get their ip from the 2921 because i have all my CUCM lab VLANS setup and i want my VMs and my phones to use those.
Yes, I know it's your home lab (I remember!).

We will need a configuration overview in detail of everything to help.

At a quick Guess, VM is incorrect or networking is incorrect.
I know you remember lol. You and Mohammed Rummaneh have been life savers to me and i greatly appreciate it. So i know that now my Server 2012 has a 192.168 address which of course is my ISP router network. My CUCM has 10.15.X.X address which is on my Voice Vlan.  When i originally installed my VMs they all got 10.X.X.X addresses from my 2921 but yet were still able to get out to internet. What i dont understand is what process does a VM use to have a private IP but still get to internet. To be honest i dont know how it worked before it just did. There is really not much to my network. I dont even have my 2921 hooked to my PC atm. I didnt last time i installed CUCM but it was able to get out just fine. I thought the bridging would take care of that unless i am misunderstanding how that works. I hope im making sense here.
lets start with your LAN IP Address Range which your Router is connected to ?

So Physical Computer is ?

2012 VM is ?

Router is ?

IP Address, Masks and Default Gateway
My router isnt connected atm.
Physical computer is 192.168.0.99
Server 2012 is 192.168.0.25
PC and Server 2012 Gateway is 192.168.0.1

But i need Server 2012 and my CUCM on 10.15.X.X so i can continue with my lab. I am in the middle of my CUCM install and i gave it an address of 10.15.0.15 with gateway of 10.15.0.1.  When i first did my CUCM install the router wasnt even setup to have internet access but the CUCM could still get out to contact its NTP servers. This is very frustrating because there is something simple that i am not understanding. Also i have two NICS on my pc. One that is on the mother board and other is a card i installed. If i use the onboard one i cant reach internet with Server 2012. If i use the PCI card NIC then i can. But i cant reach internet on either with my CUCM using the 10.15.X.X address.
Your ISP modem/router does NAT
NTP normally is setup via IP addresses..
10.15.0.15 with gateway of 10.15.0.1.  so where do you route to your LAN 192.168 gateway (modem)?
What are your DNS settings? 
Let me go a different way for just a second.  I plugged in my router to my pc. Now my PC has an IP of 10.15.0.100 with a default gateway of 10.15.0.1 and a DNS of 8.8.8.8.  The 10.15 is from my 2921 DHCP.  Using this i can get to the internet from my PC but still not from my CUCM which has an IP of 10.15.0.15. I deleted my old CUCM which had the same address and i used the same address on my new CUCM i am trying to install. This tells me there is a issue with the way my VM is configured for the new CUCM.
Also now my 2012 Server cant reach internet. So the only thing that can reach the internet with 10.15.X.X is my PC. No VMs can get out with that Subnet even with the same default gateway and mask. This again tells me its a VM issue.
Also i have an ESXI VM running that i cant access from my PC. The ESXI is 10.15.0.14. I am getting Destination host unreachable from all VMs when i try to ping my PC IP address. So my PC and my VMs arent talking.
well all this


My router isnt connected atm.
Physical computer is 192.168.0.99
Server 2012 is 192.168.0.25
PC and Server 2012 Gateway is 192.168.0.1

looks good

The 2012 VM is clearly in bridged mode and obtaining and IP Address from the Router which is on the LAN handing out 192.168.0.x addresses.

Anything on 192.168.0.x will communicate with itself.

But 192 and 10 will not communicate unless routed or some sort of NAT.

Your issues become when using a 10 address, this will not route to LAN based items,

UNLESS all set as NAT in VMware Workstation.
.
Just guessing here, but was everything setup up as NAT in VMware Workstation using 10.x.x.x, and therefore that would commnicate with the Internet.
My server 2012 is setup to use the PCI card with Bridged Automatic. Same as all my other VMs.
No. Everything before was bridged. Same as it is now.
Well how 192 and 10 communicate with each other with NO ROUTER on your LAN is impossible.

A network packet cannot leave 192 to 10, and 10 to 192 without routing.

Unless there is some weird routing with two IP Addresses on each LAN card ? e.g. it's dual homed.

What is  2921 DHCP ?

Also why does your physical IP Address chanbge of your PC when you connect to something else ?


SO BY DEFAULT DOES YOUR ROUTER (INTERNET Connected) lease DHCP IP Address in the 10 range ?

Is 2921 DHCP your LAN Router for Internet ?

My router isnt connected atm.
Physical computer is 192.168.0.99
Server 2012 is 192.168.0.25
PC and Server 2012 Gateway is 192.168.0.1


Where do the above IP Addresses come from then ? (if not from Router)

Do you have another DHCP Server ?

and why do you keep disconnecting and re-connecting your Internet Router ?
Without router there is no 10. because the 10. is being handed out by the router. So when i connect my pc to my router it its picking up the dhcp from the router and not the Internet modem. The 192 address is when i have my PC directly connected to my internet modem. I disconnected my router to see if i could reach the internet without it which i did. But without using the router im not getting onto my Voice LAN to use my CUCM lab. So i just disconnected from the router for troubleshooting this issue. I need everything coming off my router so i can run my lab. My PC is getting IP from dhcp on the router and it can reach the internet. Its just the VMs that cant even though they are on the same network as my PC.
So you have two routers on your LAN

1. Router handing out 10.

2. Internet Modem handing out 192.

does this computer have two network interfaces ? because if it did you could connect

a.. network interface to 1. above.

b. 2. above.

Is the 10.x router configured correctly to route to the internet via Internet Router ?
Yes the 10. router is configured to get to the internet. But if my PC can get to the internet and my VMs cant im still in the same boat right?

have you compared the IP information on the PC and VMs ?

technically if all your VMs are BRIDGED MODE, they should get the same information as the IP on the physical PC, BUT I've seen weird things with BRIDGED MODE, which sometimes just does not work or gets confused.

This is the first check I would do.

So if your physical PC is set to DHCP, set a VM also to DHCP, do they get the same IP INFO, IP/DNS/Gateway/Mask

and we need to understand if VMs, just are not routing, or DNS issue etc

If connected PC to 10 router is getting internet, then it must be routed through the 10 router, and then next hop is your Internet Modem to internet. All is well with 10 router and Internet Modem, and PC.

which then suggests VMware Hypervisor is doing something wrong.

IF..... all VMs and PC are using the same network interface. Is there only a single network interface in this PC ?
Yes for now i am just using one single interface. With the CUCM i havent finished install but i gave it the ip of 10.15.0.15 so i know thats the ip its using. The Server 2012 has always gotten its IP from the DHCP on the router. The only static IP i am using is for the CUCM.
Okay single interface is good, so VMware Workstation BRIDGED MODE will only be bound to one single physical nic in the PC.

So what traffic comes in on the PC nic, will traverse to the VMs.

Can the 2012 server get internet access ?

We need to have IP Addresses posted here to compare.

Before you even start configuring CUCM and giving it IP Addresses, you need to be certain they are correct.

So IP Address for 2012 VM please, which has been issued from 10 Router.

and IP Address from PC also given out from 10 Router.
I plugged internet cable into one NIC and the router into the other NIC. The PC is a 192.168.0.199. The server 2012 is reaching the internet with 192.168.0.25. The Server 2012 cannot ping the PC. I also need the Server to be on the 10 network so it can reach my call manager. If i put everything on the 192 network then i cant reach the 10 network for my router and vlans as well as the config for CUCM.
Also the second NIC on my PC which is plugged into the router is picking up the 10 network.  So one NIC on the PC is on 192 network and the other NIC plugged into the router is on the 10 network. But PC cant ping Server 2012 on same 192 network.
Correction. I am mistaken. The server can ping the PC using the 192 network. I was trying to ping the PC on its 10 network. That makes sense seeing that the Server 2012 is also on the 192 network. But i still need all the VMs to be on the 10 network. Should i go in and select a different VMnet on the VMs to see if they will use the other NIC card with the 10 network?


Also the VMs seem to only be bridging to the NIC card that i installed and not the onboard one. Shouldnt i be able to select which card they bridge to?
Hang on I'm a little confused here, you have two network interfaces in the PC or ONE ?

I thought you just had a single network interface on this PC connected to the

10 Router and you stated that this issues DHCP address in the 10 range, and all traffic routes through this to the internet router on 192 ?


IS THIS CORRECT OR NOT ?

I'm afraid if you keep changing and experimenting with configurations, whilst I'm try to understand what you have, because you are my EYES, because I cannot look at your configuration.

I think before we continue, we are going to have to have a diagram with FULL IP Addresses or how all this is configured or trying to be configured, as it is now.