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:
- Open your network connection settings.
- In Windows XP:
- Click the Start button, andselect Control Panel.
- Click the Network and Internet Connections link.
- Click the Network Connections link.
- In Windows Vista:
- Click the Start button, and select Control Panel.
- Click the Network and Internet link.
- Click the Network and Sharing Center option.
- Under the Tasks list, click the Manage Network Connections link.
- Right-click your VPN connection, and select Create Copy.
- Right-click the copy, and select Rename.
- In the new text box, type: VT VPN No Default Route
- Press the Enter key.
- Right-click the VT VPN No Default Route icon, and select Properties.
- Select the Networking tab.
- Set your network Internet Protocol settings.
- In Windows XP:
- Double-click Internet Protocol (TCP/IP).
- Click the Properties button.
- Click click the Advanced button.
- In Windows Vista:
- Double-click Internet Protocol Version 6 (TCP/IP).
- 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.