Routing Only Campus Traffic via the Virtual Private Network (VPN) in Windows Vista/7
Time to Complete (in minutes): 20
Question:
How do I route only campus traffic via the Virtual Private Network (VPN), and all other traffic through my Internet Service Provider (ISP) in Windows Vista/7?

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. Click the Start button.
  2. Select Control Panel.
  3. Click the Network and Internet link.
  4. Click the Network and Sharing Center link.
  5. View your network connections.
    • In Windows Vista, click the Manage network connections link.
    • In Windows 7, click the Change adapter settings link.
  6. Right-click your VPN connection.
  7. From the drop-down list, select Create Copy.
  8. Right-click the copy of the VPN connection.
  9. From the drop-down list, select Rename.
  10. Type: VT VPN No Default Route
  11. Press the Enter key.
  12. Right-click the VT VPN No Default Route icon.
  13. From the drop-down list, select Properties.
  14. Select the Networking tab.
  15. Double-click Internet Protocol Version 6 (TCP/IPv6).
  16. Click the Advanced... button.
  17. Clear the Use default gateway on remote network check box.
  18. Click OK.
  19. Click OK.
  20. Click OK.
  21. Double-click the VT VPN No Default Route icon.
  22. Type your username and domain, depending on whether you have a Hokies account or are using a network password.
    • If you have a Hokies account:
      1. In the User name: text box, type your Hokies username.
      2. In the Password: text box, type your Hokies password.
      3. In the Domain: text box, type: HOKIES
    • If you are using a network password:
      1. In the User name: text box, type your PID.
      2. In the Password: text box, type your network password.
  23. Click the Connect button.
  24. Click the Start button.
  25. Select All Programs.
  26. Select Accessories.
  27. Right-click Command Prompt.
  28. From the drop-down list, select Run as administrator.

    Notes:
    • In Vista, click the Continue button.
    • In 7, click the Yes button.

  29. At the prompt, type: ipconfig
  30. Press Enter.
  31. Under Adapter VT VPN No Default Route:, to the right of IPv4 Address, will be your VPN connection's IP address. It will begin with 128.173.3.

    Example: 128.173.37.77

  32. At the prompt, type: route add 128.173.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.

  33. Press Enter.
  34. Type: route add 198.82.0.0 mask 255.255.0.0 [Your VPN Connection's IP Address]

    Notes:
    • 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 (https://computing.vt.edu/content/virginia-tech-ip-addresses).

  35. Press Enter.
  36. Add routes for other campus locations, such as the Northern Virginia Center. For more information, refer to the Virginia Tech IP Addresses page (https://computing.vt.edu/content/virginia-tech-ip-addresses).

    Example: If you wanted to add the Northern Virginia Center non-wireless routes:
    1. Type: route add 208.22.18.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
    2. Press Enter.
    3. Type: route add 208.29.54.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
    4. Press Enter.

    Note: You will need to enter these routes each time you connect to the VPN; they will not persist between VPN sessions.

  37. Type: exit
  38. Press Enter.
  • Article ID: 3573
  • Last updated: 18 Jun, 2012
  • Views: 800
  • Comments: 0
  • Add comment
  • If you have feedback about the content of this article, please leave a comment. If you need assistance with these instructions, contact 4Help at http://4help.vt.edu.