Route addition problem

G

Guest

I have a windows 2003 server with two nics (10.16.47.100 and 10.16.47.101)
with static ip's with the same default gateway(10.16.47.1).

The following command works fine:
route add 10.88.75.32 MASK 255.255.255.255 10.16.47.100

but this does not:
route add 10.88.75.32 MASK 255.255.255.255 10.16.47.101
The route addition failed: The parameter is incorrect.

IPCONFIG /ALL shows the following:
----------------------------------
Windows IP Configuration

Host Name . . . . . . . . . . . . : CAL-TRMSRV1
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : tcpl.ca
ws.tcpl.ca
pipe.nova.ca

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter
Physical Address. . . . . . . . . : 00-11-85-BA-DA-5D
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.16.47.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.47.1
DNS Servers . . . . . . . . . . . : 199.166.175.25
199.166.103.25

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter #2
Physical Address. . . . . . . . . : 00-11-85-BA-DA-5C
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.16.47.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.47.1
DNS Servers . . . . . . . . . . . : 199.166.175.25
199.166.103.25

ROUTE PRINT show the following:
-------------------------------
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 11 85 ba da 5d ...... HP NC7781 Gigabit Server Adapter
0x10004 ...00 11 85 ba da 5c ...... HP NC7781 Gigabit Server Adapter #2
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.16.47.1 10.16.47.101 20
0.0.0.0 0.0.0.0 10.16.47.1 10.16.47.100 1
10.16.47.0 255.255.255.0 10.16.47.100 10.16.47.100 1
10.16.47.0 255.255.255.0 10.16.47.101 10.16.47.101 20
10.16.47.100 255.255.255.255 127.0.0.1 127.0.0.1 1
10.16.47.101 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.16.47.100 10.16.47.100 1
10.255.255.255 255.255.255.255 10.16.47.101 10.16.47.101 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 240.0.0.0 10.16.47.100 10.16.47.100 1
224.0.0.0 240.0.0.0 10.16.47.101 10.16.47.101 20
255.255.255.255 255.255.255.255 10.16.47.100 10.16.47.100 1
255.255.255.255 255.255.255.255 10.16.47.101 10.16.47.101 1
Default Gateway: 10.16.47.1
===========================================================================
Persistent Routes:
None



Any idea why the second route command does not work???
Thanks!
 
R

Robert L [MS-MVP]

this is route order issue. we don't know why you have two NICs point to the same subnet, but, 10.16.47.100 always the first from metric which is 1


For more and other information, go to http://howtonetworking.com.

Don't send e-mail or reply to me except you need consulting services. Posting on MS newsgroup will benefit all readers and you may get more help.

Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, Remote Access on http://www.HowToNetworking.com
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
I recommend Brinkster for web hosting!

I have a windows 2003 server with two nics (10.16.47.100 and 10.16.47.101)
with static ip's with the same default gateway(10.16.47.1).

The following command works fine:
route add 10.88.75.32 MASK 255.255.255.255 10.16.47.100

but this does not:
route add 10.88.75.32 MASK 255.255.255.255 10.16.47.101
The route addition failed: The parameter is incorrect.

IPCONFIG /ALL shows the following:
----------------------------------
Windows IP Configuration

Host Name . . . . . . . . . . . . : CAL-TRMSRV1
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : tcpl.ca
ws.tcpl.ca
pipe.nova.ca

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter
Physical Address. . . . . . . . . : 00-11-85-BA-DA-5D
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.16.47.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.47.1
DNS Servers . . . . . . . . . . . : 199.166.175.25
199.166.103.25

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter #2
Physical Address. . . . . . . . . : 00-11-85-BA-DA-5C
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.16.47.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.47.1
DNS Servers . . . . . . . . . . . : 199.166.175.25
199.166.103.25

ROUTE PRINT show the following:
-------------------------------
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 11 85 ba da 5d ...... HP NC7781 Gigabit Server Adapter
0x10004 ...00 11 85 ba da 5c ...... HP NC7781 Gigabit Server Adapter #2
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.16.47.1 10.16.47.101 20
0.0.0.0 0.0.0.0 10.16.47.1 10.16.47.100 1
10.16.47.0 255.255.255.0 10.16.47.100 10.16.47.100 1
10.16.47.0 255.255.255.0 10.16.47.101 10.16.47.101 20
10.16.47.100 255.255.255.255 127.0.0.1 127.0.0.1 1
10.16.47.101 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.16.47.100 10.16.47.100 1
10.255.255.255 255.255.255.255 10.16.47.101 10.16.47.101 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 240.0.0.0 10.16.47.100 10.16.47.100 1
224.0.0.0 240.0.0.0 10.16.47.101 10.16.47.101 20
255.255.255.255 255.255.255.255 10.16.47.100 10.16.47.100 1
255.255.255.255 255.255.255.255 10.16.47.101 10.16.47.101 1
Default Gateway: 10.16.47.1
===========================================================================
Persistent Routes:
None



Any idea why the second route command does not work???
Thanks!
 
G

Guest

I need two NICs pointing to the same subnet because I need to route traffic
to certain machines on our WAN over a specific NIC. More specifically, the
application on the remote machine must recieve connections from a specific IP.

Any ideas on how to resolve this? Should I change the metric on 10.16.47.100
to something higher than 1 ?
Thanks!

Bobby R.
 
B

Bill Grant

What you are setting up is a host route to a particular machine. You
cannot have two identical routes to it with the same metric using different
interfaces. They are contradictory. The machine must use one or the other.
It cannot use both!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top