Hyper-V multiple LANS single NIC?

For hyper-V on server 2012 is there a way to only use 1 nic, but have all the guest OS on different LANs and still get to the internet? For example if I had...
Win7 box on 192.168.0.*
vista box on 10.0.0.*
XP box on 172.16.0.*

Basically what I want accomplished is to be able to get to the internet from each guest OS, but hide their network presence from each of the other guest OS.
LVL 1
easyworksAsked:
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.

Subhashish LahaCommented:
Yes, you can do that. You just need to setup a gateway machine or configure different IPs on your firewall to route these IP ranges to internet.
0
dipopoCommented:
The answer is yes and I would go for having a proxy server for internet access. Make the proxy server multi-homed with access to each network and configure each computer needing internet access to use the proxy via LAN Connections.
0
easyworksAuthor Commented:
subhashishlaha
I'm not sure how to go about doing this can you give me some general direction if you were to set this up? I guess the gateway machine would be the HOST that is running the hyper-V? So is it just setting up a virtual external switch then..?

The only firewall in place right now is the built in windows firewall.


dipopo
I guess with a proxy server you can configure different LANs then use the virtual NIC cards to point to these different LANs all coming from 1 NIC card?
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

dipopoCommented:
Hi Easyworks,

Kind of what I had in mind, create a proxy server [I'd prefer Linux running Squid Proxy] You can use anything, then assign the Server different vNICS and configure these vNICS with vLAN ID's similar to the various vLANs you have.

On the OS Side please also configure the various IP subnet as you have done as well, as it is multi-homed no opportunity of gateways so create persistent routes for each network traffic.

Assign each VM to use the proxy IP address and voila!!!
0
easyworksAuthor Commented:
Just to reiterate the basic setup. I create a guest OS Linux box (squid proxy) then can have all the other guest point to this GUEST OS?

Is it also possible to use Windows as a DHCP server and just create different scopes? I ask b/c I really only work with Windows and I don't have much knowledge in Linux. So if Linux hiccups or has an issue it will be hard for me to troubleshoot :(
0
Subhashish LahaCommented:
How your Internet connection is setup on Host machine?
0
dipopoCommented:
In that case you will need a Windows type software to facilitate the proxy on a Windows box. You can use the one below with install steps.

https://www.my-private-network.co.uk/knowledge-base/windows-related-questions/winproxy.html
0
easyworksAuthor Commented:
subhashishlaha
I can change anything, but currently I have ISP with everything in a pass-through mode feeding to my NIC card on my server. On the hyper-V host I have an external network Virtual switch setup. I have left all the properties on this vEthernet blank. The guest OS I have setup so far I just fill in with Static WAN IPs.
0
easyworksAuthor Commented:
It just occurred to me that I can have an external virtual switch with the WAN IP and then create an additional private virtual switch and add both to my guest OS to achieve different WAN IPs and/or different/same LANs.
0
dipopoCommented:
Hmmm can you do that, connect 2 virtual switches together?
0
dipopoCommented:
If you decide to go down that route you will need a vSwitch per Physical NIC per vLAN assigned. Then you can use a physical L3 Switch to route between vLANs.

Else you can assign vLAN id's at the VM level and have all VM's use the same vSwitch.

Users can change their vLAN affiliation though so the watch word is do you trust your users lmao! trust!!

Use this blog for further consultation.

http://www.aidanfinn.com/?p=10164
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
easyworksAuthor Commented:
dipopo
My current setup. On the Guest OS I have 2 virtual nics.
vr-nic-1. Is to the external Virtual switch that gives them their own static WAN so they can get to the internet.
vr-nic-2. Is a private virtual switch that I've setup so i can choose which guest OS can/can't talk to each other.

Thanks for the article that really helped.
http://www.aidanfinn.com/?p=10164
0
easyworksAuthor Commented:
Was easiest method available to do what I needed done at the time.

Blog helped understand different methods to setup VLAN networks. http://www.aidanfinn.com/?p=10164
0
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
Microsoft Virtual Server

From novice to tech pro — start learning today.