Dual Nic, Internet Nic, Intranet Nic settings

Source: Internet
Author: User

The following describes how to perform the operation. Take my computer as an example to give a demonstration.

I also have two NICs, one is the Office intranet and the other is the Internet.
Connect to the Intranet Nic,IPSet:192.168.1.111, Gateway is set192.168.1.1
Nic connected to the Internet,IPSet:192.168.0.111, Gateway is set192.168.0.1
In the command line, useRoute printCommand to view the current default route table:
The bottom line:Default Gateway: 192.168.1.1
It means the default gateway. A computer has only one default gateway, and all data packets are sent to the gateway address first. According to the display,192.168.1.1It indicates my Intranet, that is, all data packets will automatically take precedence over the Internet line. 

 

Add this command to the route table permanently.
Route-P add 0.0.0.0 mask 0.0.0.0 192.168.0.1( Note: All networks go through 192.168.0.1 Gateway ) (Internet)

Route-P add 192.0.0.0 mask route 0.0.0 192.168.1.1( Note: Only 192 Network 192.168.1.1 Gateway ) (Intranet)

It is also convenient to delete route records. Run the following command:
Route Delete 192.0.0.0

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.