We help IT Professionals succeed at work.

What is the best way to configure multiple NICs in Windows 7?

Multiple NICs in each PC. One NIC is used for Internet. IP's assigned by the DHCP server. Second NIC is used to access applications/programs.Static IP's are manually assigned.  The problem, I must disable one in order to use the other. They both can't be enabled at the same time.
Comment
Watch Question

Author

Commented:
NONE
Neil RussellTechnical Development Lead
Commented:
Why can they not be enabled at the same time?
Commented:
I'm not sure why you can't have them enabled at the same time unless you have a routed network on the inside where you need the gateway to be defined and having both NICs enabled at the same time causes routing issues.

But, here is a something you can put into a batch file to enable or disable whichever NIC you want to (i.e. one batch file to disable the Internet NIC and then enable the Intranet NIC and another batch file to go the other way).

netsh interface set interface "<InterfaceName>" DISABLED
netsh interface set interface "<InterfaceName>" ENABLED

Example:

Batch file 1:
@ECHO OFF
netsh interface set interface "Internet Connection" DISABLED
netsh interface set interface "LAN Connection" ENABLED
ECHO Internet connection disabled, Intranet connection enabled

Batch file 2:
@ECHO OFF
netsh interface set interface "LAN Connection" DISABLED
netsh interface set interface "Internet Connection" ENABLED
ECHO Intranet connection disabled, Internet connection enabled


Hope this helps.

Commented:
If you are looking for a way to keep both NICs enabled at the same time, please explain what doesn't work when both are enabled. Also, please give a description of your internal network (used for applications) setup so we can tell if there is a reason why both NICs can't work at the same time.
Distinguished Expert 2019

Commented:
they must be on different subnets