Configure multiple gateways for Windows

Source: Internet
Author: User

How can I configure multiple gateways in windows? First, you must write routes in the Windows installation directory. ProgramThe "route. Bat" file contains the following content:

Route add Target 1 mask subnet mask gateway 1

Route add destination 2 mask subnet mask gateway 2

Route add 0.0.0.0 mask 0.0.0.0 Default Gateway

Destination 1 is the first network number of the route, and destination 2 is the second network number of the route. The subnet mask is the subnet mask of the two networks.

Next, set the route program "route. Bat" to automatically execute each time windows is started, and add the shortcut pointing to the program "route. Bat" to the "Start" column in the menu. Click Start> Settings> taskbar and start menu to customize the Start Menu program.

Click Add, enter c: \ windows \ route. bat, and press Enter. Here we assume that the installation directory of Windows is "C: \ Windows ". Double-click the "Start" folder, enter the name of the program in the "Start" menu, click the "Next" button, and select the program icon. The last modification points to the program "route. bat "shortcut properties, click" Start> program> Start ", right-click" route. bat, select properties, and select "minimize" and "close upon exit.

Another method is to select the file to be added to the "Boot" item, press the Microsoft logo key on the disk, and choose to place it anywhere, then, you can put this step anywhere!

With the preceding settings, you can configure multiple gateways.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.