Route add question...

  • Thread starter Thread starter sandsdenver
  • Start date Start date
S

sandsdenver

I am trying to add a static route but its not taking the command I give
it. Below is the output of route -print. Below that is the output of
the attempts I have tried


C:\Documents and Settings\Administrator>route print

IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 40 f4 cf f1 9e ...... Realtek RTL8139 Family PCI Fast
Ethernet NIC

0x10004 ...00 12 3f 79 c9 a0 ...... Broadcom NetXtreme Gigabit Ethernet
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 10.1.0.1 10.1.0.5
20
0.0.0.0 0.0.0.0 208.44.172.177 208.44.172.178
20
10.1.0.0 255.255.0.0 10.1.0.5 10.1.0.5
20
10.1.0.0 255.255.0.0 10.1.0.1 10.1.0.5
1
10.1.0.5 255.255.255.255 127.0.0.1 127.0.0.1
20
10.10.17.128 255.255.255.128 10.1.0.1 10.1.0.5
1
10.255.255.255 255.255.255.255 10.1.0.5 10.1.0.5
20
70.210.0.0 255.255.0.0 208.44.172.177 208.44.172.178
1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
207.207.168.0 255.255.255.0 208.44.172.177 208.44.172.178
1
208.44.172.176 255.255.255.248 208.44.172.178 208.44.172.178
20
208.44.172.178 255.255.255.255 127.0.0.1 127.0.0.1
20
208.44.172.255 255.255.255.255 208.44.172.178 208.44.172.178
20
224.0.0.0 240.0.0.0 10.1.0.5 10.1.0.5
20
224.0.0.0 240.0.0.0 208.44.172.178 208.44.172.178
20
255.255.255.255 255.255.255.255 10.1.0.5 10.1.0.5
1
255.255.255.255 255.255.255.255 208.44.172.178 208.44.172.178
1
Default Gateway: 208.44.172.177
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
10.1.0.0 255.255.0.0 10.1.0.1 1
10.10.17.128 255.255.255.128 10.1.0.1 1
207.207.168.0 255.255.255.0 208.44.172.177 1
70.210.0.0 255.255.0.0 208.44.172.177 1

End of output file.

Here are my attempts...


C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>route add 172.16.162.0 MASK
255.255.255.
0 10.1.0.1 IF 0x4
The route addition failed: Either the interface index is wrong or the
gateway do
es not lie on the same network as the interface. Check the IP Address
Table for
the machine.


C:\Documents and Settings\Administrator>route add 172.16.162.0 MASK
255.255.255.
0 10.1.0.5 IF 0x4
The route addition failed: Either the interface index is wrong or the
gateway do
es not lie on the same network as the interface. Check the IP Address
Table for
the machine.

I am trying to setup a static route so this computer at 10.1.0.5 can
have a path to 172.16.162.240. Any inputs as too what I am doing wrong
or if you need any additional info please let me know. Thank you.

JImmy
(e-mail address removed)
 
(e-mail address removed) wrote in
I am trying to add a static route but its not taking the command I
give it. Below is the output of route -print. Below that is the
output of the attempts I have tried [snip]
I am trying to setup a static route so this computer at 10.1.0.5
can have a path to 172.16.162.240. Any inputs as too what I am
doing wrong or if you need any additional info please let me know.
Thank you.

It appears that you have two interfaces on your computer:
10.1.0.5 and 208.44.172.178
Packets to 172.16.*.* would go out the default gateway which is
designated as 0.0.0.0 in the route table.

Your table has two entries for 0.0.0.0 with equal metrics.

Since it appears that you want default traffic to go out the 10.*
interface, you should give this interface a higher priority (lower
metric). Do this by issuing the command:

route change 0.0.0.0 mask 0.0.0.0 10.1.0.1 metric 10

Or if you want to issue a specific route for this network, try the
command:

route add 172.16.162.0 MASK 255.255.255.0 10.1.0.1

You do not need to specify the IF. It will choose the appropriate IF
itself.


HTH,
John
 
Back
Top