Routing Only Campus Traffic via the VPN in Windows XP/Vista
Time to Complete (in minutes):  20

Question:
How do I route only campus traffic via the VPN, and all other traffic through my Internet Service Provider (ISP) in Windows XP/Vista?
Answer:

Important: Before completing these instructions, you must first configure a VPN connection. For instructions, refer to the appropriate article below:

To configure your VPN connection to route only campus traffic while retaining your default ISP settings:

  1. Open your network connection settings.
    • In Windows XP:
      1. Click the Start button, andselect Control Panel.
      2. Click the Network and Internet Connections link.
      3. Click the Network Connections link.
    • In Windows Vista:
      1. Click the Start button, and select Control Panel.
      2. Click the Network and Internet link.
      3. Click the Network and Sharing Center option.
      4. Under the Tasks list, click the Manage Network Connections link.
  2. Right-click your VPN connection, and select Create Copy.
  3. Right-click the copy, and select Rename.
  4. In the new text box, type: VT VPN No Default Route
  5. Press the Enter key.
  6. Right-click the VT VPN No Default Route icon, and select Properties.
  7. Select the Networking tab.
  8. Set your network Internet Protocol settings.
    • In Windows XP:
      1. Double-click Internet Protocol (TCP/IP).
      2. Click the Properties button.
      3. Click click the Advanced button.
    • In Windows Vista:
      1. Double-click Internet Protocol Version 6 (TCP/IP).
      2. Click the Advanced button.
    • Clear the Use Default Gateway on Remote Network check box.
    • Click OK.
    • In the Internet Protocol (TCP/IP) Properties window, click OK.
    • In the VT VPN No Default Route Properties window, click OK.
    • Double-click the VT VPN No Default Route icon.
    • Log on with your PID and password.
    • Click the Start button, and select Run.
    • In the Open text box, type: cmd
    • Click OK.
    • At the prompt, type: ipconfig
    • Determine your VPN connection's IP address. It will begin with "128.173.3"

      Example: 128.173.37.77

    • At the prompt, type:
      route add 128.173.0.0 mask 255.255.0.0 [Your VPN Connection's IP Address]
      route add 198.82.0.0 mask 255.255.0.0 [Your VPN Connection's IP Address]
      Note: Replace [Your VPN Connection's IP Address] with your connection's IP address. These two routes are for most of the on-campus networks. For a more complete list, refer to the Virginia Tech IP Addresses page(http://www.computing.vt.edu/internet_and_web/internet_access/ipaddresses.html).
    • Add routes for other campus locations, such as the Northern Virginia Center. For more information, refer to the Virginia Tech IP Addresses page (http://www.computing.vt.edu/internet_and_web/internet_access/ipaddresses.html). For example, if you want to add the NVC non-wireless routes, you would also enter:
      route add 208.22.18.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
      route add 208.29.54.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
Note: You will need to enter these routes each time you connect to the VPN; they will not persist between VPN sessions.