How to Set dual gateway for a dual-nic host

Source: Internet
Author: User
How to Set dual gateway for a dual-nic host

Author: Li Xinhua Source: Application Part 2 time:

Jiangxi Provincial Government Affairs Network Security Office

(You are not allowed to reprint it without permission)

Note :(Win2000serverNo need to set,Win2003serverNeed to set)

 

WebThe host needs two-way Intranet and Internet access. A subnet is a neutral zone and is connected through the telecom egress.Internet, Gateway is set192.168.1.254A subnet uses a vro leased line to connect to a large internal network. The Gateway is set10.1.8.254.

Each machine has two NICs and two gateways.[Generally, an important unit is to physically connect two networks at the same time, which is not safe.]. Now, you can only change the GatewayInternetCommunication with the Intranet, but notInternetConnect to the Intranet. The problem is that the gateway andInternetConnected to the Intranet?

The simplest method is to combine various Gateway Routing knowledge on the Internet:

1.Set the connectionInternetThe gateway of the NIC is192.168.1.254The default gateway is enabled;

2.Connect the NIC of the IntranetIPAfter the configuration, set the gateway to null (that is, no gateway is set). After the configuration is enabled, the Intranet cannot be routed through the gateway;

3.InputRoute print,View IntranetsIPOfMetric;

3.EnterCMD, Run:

Route-P add 10.0.0.0 mask route 0.0.0 10.1.8.254 metric 30

(It means10 *OfIPSet the routing gateway of the package10.1.8.254,-PParameters represent permanent write to the route table)

4.Enable two NICs at the same time. The two gateways can work at the same time, and the two subnets can be accessed at the same time. You do not need to reset them after Shutdown and restart!

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.