Hyper V and network Connection

I really need your help.

I assigned static IP address ( Public address) to physical NIC to have internet. I have internet connection in my host server. Also I  setup External virtual switch in Hyper V Manger. But my VM can't connect to the internet. It will get IP address from range 169.x.x.x .

I also Shared network connection but no worked.

I am wondering like VirtualBox the vm machine will get the private IP address to communicate with Outside.

Any idea?
GolchehrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Cliff GaliherCommented:
Nope. Virtual or physical doesn't really change how this works. The Hyper-V virtual "switch" should be thought of just like a physical switch. The "host" OS is still just one server with NIC plugged into that switch. The "guest" OSes are also servers with NICs plugged into that same switch. If your ISP gives you one public IP, you could assign it to any one of those servers, but only one. Or you could assign it to a router that does NAT and then give *all* of your machines (including the host OS) private IPs behind that NAT router. You could even configure one of your VMs to *be* that router, but like any router, it needs *at least* 2 NICs to do that work (one public, one private) and the RRAS role enabled. However note that Windows was never a very good router, nor did they design it to be, so I wouldn't go down that road except for the most basic of test labs.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.