Dedicate Ethernet port for Internet Only with Multiple Ethernet Cards

mikejahnke101

Commendable
May 15, 2016
72
0
1,660
Hello,

I have a PCI ethernet card installed on my computer, as well as the integrated port on my mobo. I have a networking lab set up (cisco routers and switches) as I'm a networking major in college.

I frequently connect my computer to the lab to do testing and such. (Often using it for tftp servers)

However, every time I connect my computer with the PCI card to my lab, any internet traffic tries to go to out the lab port. The port which has a valid internet connection (and can reach my default gateway) is still active. But traffic seems to attempt to go out the other ports I use for the lab or attempt to go out all ports but fail with a time out error.

Any suggestions on how I can get the port on my mobo to be the only port dedicated for internet traffic? I've tried looking in the adapter settings but I wasn't sure exactly where to look.

Thanks :)
 
Solution
The metric should work but really this is kinda a hack. Just remove the 0.0.0.0 router with the route delete command on the interfaces you do not want the default router to be on. . It is best if you set the ip manually in the in nic and leave the gateway blank if you are going to do this long term dhcp seem to put it back in after time but not on all releases of windows.
You need to change your network priority.

Make your internet connection the top priority one, and your lab ones bellow that.
I am assuming each connection is on a different subnet? Otherwise if the internet and and one of your other connections shares the same subnet then it will try to use the internet nic to connect to the lab lan network.

EDITED:
It would help if i post the link to the directions: http://stackoverflow.com/questions/7785874/setting-network-adapter-metric-priority-in-windows-7
 


Would this interfere with the traffic I'm using for the lab? Such as will the traffic for the TFTP server try to go out the internet interface?
 


Another Update for you. I just followed the instructions and the port I use for my internet connection is already listed at the top.



 
The metric should work but really this is kinda a hack. Just remove the 0.0.0.0 router with the route delete command on the interfaces you do not want the default router to be on. . It is best if you set the ip manually in the in nic and leave the gateway blank if you are going to do this long term dhcp seem to put it back in after time but not on all releases of windows.
 
Solution
I assume you have DHCP on both cards. Just remove the default gateway from the LAB card and use a fixed IP address. If you want to use both, you will have to ass a route to say to windows hey I want 192.X.X.X 255.255.255.0 to go to the LAB card.