Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two NICs:

  1. Network 1
  2. Network 2

Network 1 is awesomely fast but blocks access to Site A. How can I route traffic to just Site A through network 2?

When I have them both connected, Windows somehow knows to use network 1 for everything (I assume this is via the metric setting?).

Site A can be an IP address (vs. a domain name) if it makes this easier.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You need to use the "Route" command.

route ADD (site ip) MASK (site umask) (gateway) IF (number of the interface you want to use)

So to get to 200.200.200.200 on interface 2:

route ADD 200.200.200.200 MASK 255.255.255.255 10.10.10.1 METRIC 1 IF 2

if you want to make the route change permanent, add the -p flag. The metric doesn't really matter very much in this context, it's more of a statement of priority, so the system knows which route to choose, all other things being equal.

share|improve this answer
    
Presumably that 10.10.10.1 gateway corresponds to whatever IF2's GW actually is? –  Michael Haren Feb 23 '11 at 21:06
    
@haren: Yes indeed. –  Satanicpuppy Feb 23 '11 at 21:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.