How to set up the Internet with dual Nic? Method of setting up the Internet with dual NIC

Source: Internet
Author: User
Installed only to find that the original to the network, only to disable the intranet can!
A search on the internet, just know to configure the local route, what is called "Routing", this is not the router that route. Popular is the data from where to go, configure the route is to let the external network of data from the network card away, to the intranet data from the Intranet walk.
The first time in accordance with the online tutorial did not go through a half-day, the second until the entire route command are studied through the good, technical problems really is not urgent things, only to continue to try to advance.
Then if there is a network card A and network card B to be connected to the intranet and extranet, what exactly do we want to do?
1, the correct understanding of the concept of "gateway" in different segments of the data, such as 192.168.1.1 to go 192.168.2.1 must be through the gateway to the past, that is, the gateway is to communicate different subnets and network windows, all the data to different networks must pass through the gateway.
2, then you open the local connection, the IP address, subnet mask, gateway to copy down, this way you are only good after the configuration data from where to go.
3, internal and external can not be used at the same time because there are two gateways in the network, the data do not know where to go. What is the easiest way to solve this problem? Manually configure the intranet's IP address and subnet mask, but do not fill in the gateway. This looks like only the gateway of the Extranet, you open the browser to see if the outside network can be on it?
4, intranet does not set the gateway, the same network section with the IP address to access the problem, but the network to access the intranet to do? Then we have to be honest and set the route again:
Route add 192.168.0.0 MSK 255.255.0.0 192.168.9.54 Metric 20
Explain the above command: is the IP address for 192.168.x.x data from the 192.168.9.54 (intranet network card gateway, in front of you to see) the gateway to go. As for what metric is, Baidu for a half-day also do not understand, but fill in 20 seems to represent the priority is quite high, the data will be from here first.
If the command will disappear after the computer restarts, you can add the-p parameter and the reboot will not disappear.
If you don't, remember a command route print will display all the routes of the machine, the network cable to connect, pull down respectively to see what changes, think about it, you understand!
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.