Copyright

Return to index

******************************

Odds are that you have the "Use default gateway on remote network" option enabled in the phonebook entry used to connect to your ISP. This is normal for connections to the Internet or to any complex network.

With this option enabled, when the connection is made, RAS will override any existing default gateways in your routing table (e.g. the one using LAN router) with its own IP. The result is that the machine will send all packets bound for destinations that don't have a more specific route defined (by default this is any remote subnets) across the RAS link to your ISP's router. In most cases, this means that the packet will never reach its intended destination.

The solution is to add a static route to tell the machine that your remote LAN subnet(s) is available via your LAN router. For example, if your LAN router is on 192.168.1.1 and you have a remote LAN subnet of 192.168.222.0 (mask 255.255.255.0), then you would add the route using:

route add -p 192.168.222.0 mask 255.255.255.0 192.168.1.1

Note. The -p parameter specifies that the route is to be persistent. This means that the route will be readded automatically each time the system reboots (until you make some change to your network configuration). This option is only available on NT machines. On other MS systems, you would need to arrange to readd the route by other means (e.g. put it in the Startup group).

******************************