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:
- Click the Start button.
- Select Control Panel.
- Click the Network and Internet link.
- Click the Network and Sharing Center link.
- View your network connections.
- In Windows Vista, click the Manage network connections link.
- In Windows 7, click the Change adapter settings link.
- Right-click your VPN connection.
- From the drop-down list, select Create Copy.
- Right-click the copy of the VPN connection.
- From the drop-down list, select Rename.
- Type: VT VPN No Default Route
- Press the Enter key.
- Right-click the VT VPN No Default Route icon.
- From the drop-down list, select Properties.
- Select the Networking tab.
- Double-click Internet Protocol Version 6 (TCP/IPv6).
- Click the Advanced... button.
- Clear the Use default gateway on remote network check box.
- Click OK.
- Click OK.
- Click OK.
- Double-click the VT VPN No Default Route icon.
- 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:
- In the User name: text box, type your Hokies username.
- In the Password: text box, type your Hokies password.
- In the Domain: text box, type: HOKIES
- If you are using a network password:
- In the User name: text box, type your PID.
- In the Password: text box, type your network password.
- Click the Connect button.
- Click the Start button.
- Select All Programs.
- Select Accessories.
- Right-click Command Prompt.
- From the drop-down list, select Run as administrator.
Notes:
- In Vista, click the Continue button.
- In 7, click the Yes button.
- At the prompt, type: ipconfig
- Press Enter.
- 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
- 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.
- Press Enter.
- 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).
- Press Enter.
- 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:
- Type: route add 208.22.18.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
- Press Enter.
- Type: route add 208.29.54.0 mask 255.255.255.0 [Your VPN Connection's IP Address]
- Press Enter.
Note: You will need to enter these routes each time you connect to the VPN; they will not persist between VPN sessions.
- Type: exit
- Press Enter.
- Article ID: 3573
- Last updated: 18 Jun, 2012
-
- Views: 800
-
- Print
-
- 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.