Use "route print" at the beginning to have a clear layout of your routing table.
1. search for step-by-step instruction on how to add static route in win7
2. configure LAN-only NIC with correct LAN IP and netmask but no gateway or DNS (use hosts for LAN machine name <-> translation)
3. add two entries with network destination of your LAN:
ex. 192.168.1.0 and 192.168.1.1(assuming 192.168.1.1 is your router)
to the LAN-only NIC (assuming it has a static IP of 192.168.1.3)
the commands would look like:
route -p add 192.168.1.0 mask 255.255.255.0 192.168.1.3 (all packages with destination of 192.168.1.0/24 go to next hop of LAN-only NIC)
route -p add 192.168.1.1 mask 255.255.255.255 192.168.1.3 (the traffic to the router itself goes through LAN-only NIC)
and the rest of the network traffic, regardless of the destination, go through WAN-only NIC, which is already set in the routing table with the WAN-only NIC using DHCP for the TCP/IP info.
You can also look into metric to determine the priority order of the two NICs.
I have a computer with 2 lan ports, and I would like to dedicate 1 of those ports to anything on the internet, and 1 to everything on the lan - how would I do this in windows 7 (x64)
If you have a router with DD-WRT or Tomato firmware installed, you could set up VLANs to do this at the router level. Separate your traffic to where one interface will only pass LAN traffic while another interface passes only WAN traffic, discarding the rest. I've never done it personally but know it is an option.
Slickdeals is able to share the best deals because of the contributions of users like you! If you found a great deal,
please share it with others by posting in our forums.
Welcome to Slickdeals!
Save money here by finding the lowest and cheapest price, best deals and bargains, and hot coupons. We're all about
community driven bargain hunting with thousands of free discounts, promo codes, reviews and price comparisons.
Don't worry, we'll help you find your way. If you haven't already, check out this
that explains the features of our site.