Whenever I connect via RAS I cannot connect to local machines on my LAN.
March 4, 1999
A. To enable WWW and FTP browsing when you connect via RAS you enablethe "use default gateway on remote network" of the RAS options. Thishas the effect of when the connection is made a new route is added to the routelist superseding the existing LAN routes so any traffic destined for a nodeoutside your local subnet will attempt to be sent using the RAS route. This isbecause a metric is used to identify the number of hops needed and onceconnected to RAS it will have a metric 1 and existing routes will be bumped outto a metric of 2.
To solve this a persistent route can be manually added for your LAN's subnetand the associated subnet gateway. While not connected via RAS you can examineyour route information using the ROUTE PRINT command:
If your network was 160.82.0.0 (your company has a class B address) and thegateway was 160.82.220.1 for your local subnet you can add a route for the LANonly and all addresses outside of 160.82.0.0 will be routed using the RASgateway.
C:>route -p add mask
e.g. C:>route -p add 160.82.0.0 mask 255.255.0.0 160.82.220.1
This would mean all addresses from 160.82.1.1 to 160.82.254.254 would berouted via 160.82.220.1 and anything else via the RAS gateway.
If you wanted to add a route for a single host (maybe your internet firewallwhich is on another subnet) use the following:
C:>route -p add 192.168.248.8 mask 255.255.255.254160.82.220.1
Notice the subnet mask of 255.255.255.254 which means only for this singlehost.
When connected via RAS you will still be able to access resources outside ofyour local subnet on the LAN with no problems.
About the Author
You May Also Like