Solved

Hyper-V guest machine cannot connect to anything other than the host and another hyper-v server on the same host. Cannot contact gateway

Posted on 2014-10-13
13
1,278 Views
Last Modified: 2014-11-12
I have 2 hyper V guests on the same host. They are both configured the same in regards to the network cards and both have the same gateway and DNS servers. They are on the same domain, the one that is functioning properly is a domain controller. I have tried removing and reinstalling the NIC on the machine acting up but am not able to get any change in connectivity, I can only contact the host and its contents. I am using Server Standard 2012 R2 for both the host and guest OS's. Any ideas on what I should do other than do a full reload on machine acting up?
0
Comment
Question by:PIMSupport
  • 7
  • 5
13 Comments
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 40377569
Is the virtual NIC connected to the right virtual switch? The described behavior is indicative of an internal virtual switch instead of an external one.

The other low-hanging fruit possibility is a misconfigured subnet mask, which isn't unique to Hyper-V. Basic networking...to use a gateway, the server has to properly know what traffic is local and what traffic needs to be routed. An ipconfig would be helpful.
0
 

Author Comment

by:PIMSupport
ID: 40377602
There is only one switch configured, both hyper-v guests are on that switch and it is an external switch. I double checked the subnet mask and thank god that was not off or that would have been embarassing. ipconfig attached
0
 

Author Comment

by:PIMSupport
ID: 40377605
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 40377618
Next steps would be nslookup tests. Traceroute tests. Ping tests. See where things are choking up.
0
 

Author Comment

by:PIMSupport
ID: 40377673
Right, I ping tested earlier and  I can ping the host, I can ping the other hyper-v guest, but I cannot ping the gateway or anything outside of the NIC on the host.

Had not tried a tracert, that just comes back with a destination host unreachable.

nslookup is able to bring back results for anything I try because the other guest on the hyper-v host is a domain controller so it is pulling info from that DNS
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 40377719
Is there another machine on the local network that does respond to ping from the host and the working VM *and* fails to respond to the dysfunctional VM? Both facets are important. After all, a software firewall can block pings, and then it wouldn't respond to working VMs either, so isolating the differences in behavior is important.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:PIMSupport
ID: 40377774
Yep, I can ping another domain controller on the network from both the host and functional vm. The dysfunctional vm cannot ping it.
0
 

Author Comment

by:PIMSupport
ID: 40377782
BTW the firewall on all of these machines is off.
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 40377826
Very strange. I don't have any easy suggestions I can make at this point.
0
 

Author Comment

by:PIMSupport
ID: 40378708
Also, as of right now, because of port space issues, there is only 1 NIC plugged in currently.

That being said, when we remove the virtual switch and create a new one it marries up with the first guest machine that connects to it and allows network access. The second machine that is cut on has these issues where it can't contact the default gateway and acts like it is part of the internal network only. I will be plugging in the second NIC tomorrow to see if that helps...do you think the fact these 2 guests and the host are on the same NIC is causing my issue?
0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 40379107
do you think the fact these 2 guests and the host are on the same NIC is causing my issue?  NO as I have multiple guests on the same nic, many guests use different vlans even.
Check your Virtual Switch settingCheck your Networking Setting -- don't use legacy adapter
0
 
LVL 56

Accepted Solution

by:
Cliff Galiher earned 250 total points
ID: 40379347
No, the way the virtual switch code works, the physical NIC becomes a layer 2 port. All layer 3 stuff happens at the VM level. The only time I've seen issues like you describe is when people have messed with the physical NIC settings after creating the switch (like trying to enable IPv4 again.)  But honestly, at that point, trying to troubleshoot in a forum becomes a fame of 20 questions and still has a very low success rate. I'd either build up a new VM, and if it works, migrate the data. Or call in a hyper-v specialist and pay them. It saves money in the long term.
0
 

Author Closing Comment

by:PIMSupport
ID: 40380836
Come to find out the switch that this is plugged into has a port-security set at 3 so I am exceeding that maximum since there is a dummy switch between them funneling them into 1 port. Thanks for the suggestions and help guys. Handing out points for the good suggestions and walkthrough
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

First I will try to share a design of a Veeam Backup Infrastructure without Direct NFS Access backup. Note: Direct NFS Access backup transport mechanism is only available in Veeam v9 In above I try to design the Veeam Backup flow between i…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now