Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route Add Help!? Please

Status
Not open for further replies.

AJ1100

IS-IT--Management
Dec 8, 2005
8
0
0

I need to add a route but I'm having no luck. I basically need to be able to see 10.70.20.41. Do I need to route add the gateway that the desitination ip address is on (2nd on tracert below). I've tried many route add commands and all give errors.



Below is the local ipconfig, the routing table, and the tracert to the switch that 10.70.20.41 is connected to.. Any help is appreciated!!! :)

IP Address. . . . . . . . . . . . : 10.70.23.21
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.70.23.1

Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.70.23.1 10.70.23.21 10
10.70.23.0 255.255.255.0 10.70.23.21 10.70.23.21 10
10.70.23.21 255.255.255.255 127.0.0.1 127.0.0.1 10
10.255.255.255 255.255.255.255 10.70.23.21 10.70.23.21 10
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.70.23.21 10.70.23.21 10
255.255.255.255 255.255.255.255 10.70.23.21 10.70.23.21 1
Default Gateway: 10.70.23.1


Tracing route to 10.70.255.253
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms 10.70.23.2 (switch)
2 <1 ms <1 ms <1 ms 10.70.253.2 (router)
3 <1 ms <1 ms <1 ms 10.70.255.253 (switch)

route adds I've tried:
route add 10.70.20.0 MASK 255.255.255.0 10.70.20.1 -p error
route add 10.70.20.0 MASK 255.255.255.0 10.70.20.2 -p error
route add 10.70.20.0 MASK 255.255.0.0 10.70.20.1 -p error
route add 10.70.20.0 MASK 255.255.0.0 10.70.20.2 -p error
route add 10.70.0.0 MASK 255.255.255.0 10.70.20.1 -p error
route add 10.70.0.0 MASK 255.255.255.0 10.70.20.2 -p error
route add 10.70.0.0 MASK 255.255.0.0 10.70.20.1 -p error
route add 10.70.0.0 MASK 255.255.0.0 10.70.20.2 -p error
route add 10.70.20.0 MASK 255.255.255.0 10.70.253.2 -p error
route add 10.70.20.0 MASK 255.255.0.0 10.70.253.2 -p error
 
I see your problem straight off. I'll use other subnets as to show you an example and since I'm not 100% for sure which subnet your trying to route to. So if your machine was in the 192.168.1.0/24 subnet and you wanted to get to 192.168.2.0/24 subnet, then route needs to have a gateway of an IP address in your local subnet. So for example:

"route add 192.168.2.0 mask 255.255.255.0 192.168.1.1 -p" (to make it persistent in the registry).

Now that being said, normally you wouldn't have to define a route other than your default gateway on a machine unless you had 2 network adapters in your machine. Normally, the routes are defined in your local router/gateway that you have dynamically assigned or statically assigned to you computer.

If you still need help, please elaborate a little more on your setup as your existing info is a little confusing with your gateway at 10.70.23.1, but yet when you show your trace route, it shows 10.70.23.2 as your first hop... so I'm thinking you wrote down something wrong.
 
You don't need a route.

Your router may need a route, or 10.70.20.41 may need a route back to you perhaps.
 
and the tracert to the switch that 10.70.20.41 is connected to.."

so...10.70.20.41 is connected to a switch at 10.70.255.253? Those are two different subnets---is this a L3 switch?

Also, I'm with Cajun as far as the gateway goes. WHy does i report .2 as the first hop to a destination, yet ipconfig (assuming) shows .1 as the gateway? Are these statically assigned? This may be where the problem lies. However...

I am with both Cajun and Vince---let the router do the routing...your local machine knows how to get to everything else (0.0.0.0 0.0.0.0) by way of the next hop---it knows by its routing table, and so on until the destination.

/

tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top