Solved

Can you add a static route forin XP and bind to a network interface?

Posted on 2011-02-15
2
492 Views
Last Modified: 2012-05-11
Hi

We have a server with two network interfaces, Both interfaces have the same gateway.

I need to push traffic destined for a particular IP address at a remote location over Eth1 (all other normal traffic can go over Eth0)


Eth0  (main network adapter)
IP: 192.168.1.100
255.255.255.0
Gateway: 192.168.1.1

Eth1
IP: 192.168.1.101
255.255.255.0
Gateway: 192.168.1.1

Destination network : 192.168.60.60
Gateway : 192.168.1.1  Knows the path to the 192.168.60.0 network

I have no issue connecting/communicating with the destination network, what I need is to push any traffic on that server destined for the .60 network to use the eth1 adapter. All other traffic to use the eth0 network adapater

Is this possible?   (reason: we are using a serial to IP converter and it's causes the network to drop on the server, if I could designate the second network interface just for that traffic it wouldnt cause an issue with the network)

would something like this work

route add 192.168.60.60 mask 255.255.255.0 192.168.1.1 metric 10 Interface eth1

(not sure of the proper command, if someone knows please share)


0
Comment
Question by:pancho15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Ken Boone earned 500 total points
ID: 34903166
you just about got it

first do a route print command and look at the top of the results.  You will see an interface list.  This will tell you what # each interface is.  Then you can do this:

route -p ADD 192.168.60.60 mask 255.255.255.255 192.168.1.1 metric 10 IF 1

Assuming the interface that you want to use is #1.

Also, you said you wanted it to go to a specific IP address not a network so make sure you use the mask of 255.255.255.255 so it just uses the route for that one network.

The -p makes it a persistent route.  For help on the command you can do this from the command prompt:

route /?  

Hope that helps.
0
 
LVL 22

Expert Comment

by:Matt V
ID: 34903178
Type:  route print and the top of the output will show your interfaces.

Interface List
 15...00 24 d7 49 4c c0 ......Intel(R) Centrino(R) Ultimate-N 6300 AGN
 13...f0 de f1 10 d5 f3 ......Intel(R) 82577LM Gigabit Network Connection
  1...........................Software Loopback Interface 1
 24...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3

route -p add 192.168.60.60 mask 255.255.255.255 192.168.1.1 IF 13 <-- Put your interface number here
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question