View Single Post
Old 12-21-2006, 06:18 AM   #10
mojo
Ceiling cat is watching!
 
mojo's Avatar
 
Join Date: Feb 2006
Location: Iowa
Posts: 1,283
I find the easiest thing in this situation is to set your default gateway to what you want (probably the internet?) instead of letting your computer decide. You can do this by either using the change command for the destination 0.0.0.0 mask 0.0.0.0 and setting the metric to 10 (or really any number smaller than the default 20) and then adding back the 0.0.0.0 route for the intranet with the normal metric. OR Uninstall your nic drivers and then re-install them in a specific order, windows seems to make the last nic installed the default gateway. After you get that sorted out you just need to add routes for the traffic you want to force to go through the intranet, such as well, all the traffic that would be local for one thing. The -p makes it persisent across boots, so you might want to do:
Code:
route -p add 192.168.4.0 mask 255.255.255.0 192.168.4.1 metric 20
If there's any internet destinations you want to access through the intranet, this the place to add them as well,
Code:
route -p add x.x.x.x mask 255.255.255.255 192.168.4.1 metric 20
BTW, the [ code ] tags make routing table outputs tons easier to read:
Code:
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         10.0.0.1      10.0.0.150       10
         10.0.0.0    255.255.255.0       10.0.0.150      10.0.0.150       10
       10.0.0.150  255.255.255.255        127.0.0.1       127.0.0.1       10
   10.255.255.255  255.255.255.255       10.0.0.150      10.0.0.150       10
     60.49.114.55  255.255.255.255         10.0.0.1      10.0.0.150       10
    67.70.148.165  255.255.255.255         10.0.0.1      10.0.0.150       10
     71.39.148.38  255.255.255.255         10.0.0.1      10.0.0.150       10
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
   219.95.189.238  255.255.255.255         10.0.0.1      10.0.0.150       10
    219.137.91.81  255.255.255.255         10.0.0.1      10.0.0.150       10
        224.0.0.0        240.0.0.0       10.0.0.150      10.0.0.150       10
  255.255.255.255  255.255.255.255       10.0.0.150      10.0.0.150       1
Default Gateway:          10.0.0.1
===========================================================================
Persistent Routes:
  None
__________________
~Matt
CCNA
mojo is offline   Reply With Quote