Need help with route add please

martin

Expert Member
Joined
Jul 25, 2003
Messages
3,651
I have to work on a server on a LAN and use the internet via a Cell C 3G (3.5G?) connection at the same time. The constant manual disconnect/reconnect of the Cell C connection in order to access the server is seriously irritating.

I'm trying to add a route in Windows 7 based on the following MyBB post: http://mybroadband.co.za/vb/showthr...d-to-a-modem?p=3870844&viewfull=1#post3870844

Unfortunately I just can't get it to work and was hoping someone could assist.

My ipconfig info is as follows:
Link-local IPv6 Address . . . . . : fe80::905d:ecb4:9363:f760%10
IPv4 Address. . . . . . . . . . . : 10.2.24.91
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.2.24.1

The IP address of the server on the LAN I'm trying to access is: 10.4.0.54

Could someone advise me on what the parameters of my route ADD needs to look like as I seem to be screwing it up. I have a very limited knowledge of networking and I suspect I may be getting the subnet mask wrong.
 

graviti

Senior Member
Joined
May 8, 2006
Messages
665
I assume that IP address given by ipconfig is the IP address of your local network. The server IP does not fall in that network according to your addresses. Then furthermore, what is the IP address of your machine when 3g is connected. (The IP allocated to the 3G adapter).

route ADD 10.4.0.0 MASK 255.255.0.0 10.2.24.1

should do the trick if I've read your info correctly, assuming that the IP addy allocated to your 3g Adapter isn't in this network.
 

martin

Expert Member
Joined
Jul 25, 2003
Messages
3,651
I assume that IP address given by ipconfig is the IP address of your local network.
Correct

The server IP does not fall in that network according to your addresses.
Yes, I noticed that too. It is a pretty big network so they're probably using a different range for their servers I guess.

Then furthermore, what is the IP address of your machine when 3g is connected. (The IP allocated to the 3G adapter).
197.170.203.196

route ADD 10.4.0.0 MASK 255.255.0.0 10.2.24.1

should do the trick if I've read your info correctly, assuming that the IP addy allocated to your 3g Adapter isn't in this network.
10.2.24.1 is the IP address for LAN connection gateway. I'll try it out but from everything I've read I need to use my IP address, not the default gateway. In other words it should read:
route ADD 10.4.0.0 MASK 255.255.0.0 10.2.24.91

Edit: Disregard this last comment. route ADD 10.4.0.0 MASK 255.255.0.0 10.2.24.1 does the trick.
 
Last edited:

martin

Expert Member
Joined
Jul 25, 2003
Messages
3,651
I assume that IP address given by ipconfig is the IP address of your local network. The server IP does not fall in that network according to your addresses. Then furthermore, what is the IP address of your machine when 3g is connected. (The IP allocated to the 3G adapter).

route ADD 10.4.0.0 MASK 255.255.0.0 10.2.24.1

should do the trick if I've read your info correctly, assuming that the IP addy allocated to your 3g Adapter isn't in this network.

Okay, disregard my previous post about the default gateway - this worked! You've saved me a ton of irritation. Much appreciated!
 

syntax

Executive Member
Joined
May 16, 2008
Messages
8,656
Okay, disregard my previous post about the default gateway - this worked! You've saved me a ton of irritation. Much appreciated!

just to give you some clarity as to why,
when routing, you are simply saying,
to get to this network (xxxxx) send packets to this destination (xxxxx)
which is why you use your gateway and not your own ip address.
 

martin

Expert Member
Joined
Jul 25, 2003
Messages
3,651
just to give you some clarity as to why,
when routing, you are simply saying,
to get to this network (xxxxx) send packets to this destination (xxxxx)
which is why you use your gateway and not your own ip address.

I was following the instructions in this thread: http://mybroadband.co.za/vb/showthre...=1#post3870844
That's why I was under the impression I had to use my own IP address but thanks for the clarification!
 
Top