Two Nics and two networks

can a workstation  have two NICS and be connected to two separate networks. if yes, how can I control which one gives internet access, as they both have a gateway?
I use server 2008 R2  and windows 7
intelogentAsked:
Who is Participating?
 
Brian PierceConnect With a Mentor PhotographerCommented:
if the machines are not on a domain then there is no issue - they will be able to communicate on both subnets.
0
 
Patrick BogersConnect With a Mentor Datacenter platform engineer LindowsCommented:
Hi

Yes it can, you need to confige RRAS to be able to give the second LAN access to e.g. the internet. On how to please read here.
0
 
Cliff GaliherConnect With a Mentor Commented:
When you have two NICs, they should not both have a gateway. Windows will actually give you s warning saying this if you try to set the gateway on both NICs. So, as far as how you control which NIC provides internet access, it'd be the one with a default gateway in most instances. The NIC with a blank default gateway would have no routes outside of its local subnet.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
MiftaulConnect With a Mentor Commented:
You could go to network card properties - ipv4 properties - take out checkbox on automatic matric and manually enter a value. Do this for both cards. The lower metric path gets the default route priority.

Do a route print and you can see that.
0
 
Brian PiercePhotographerCommented:
You can certainly have a machine that has a nic each of which is on a separate network/subnet and you can use routing tables/routing and remote access to control how each is used. - its called a duel homed machine.

Note though, that while the machine can communicate on multiple subnets, it can only belong to one domain.
0
 
intelogentAuthor Commented:
KCTS

you bring up subnets... and domains...

the machines are not on a domain, they are peer to peer... and there are two different subnets

are the different subnets preferable or an issue?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.