Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dual network cards to realize the simultaneous use of internal and external networks

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

There is no perfect solution for using dual NICs to access internal and external networks at the same time, because there is a routing conflict. After all, there are two gateway addresses. Now you can try the following solution:

Let's first solve the problem of dual network card conflict. It can be done by changing the routing address table. Take your unit as an example, the machine has two network cards, which are connected to two routers:

Intranet address set to 192.168.1.110, subnet mask: 255.255.255.0, gateway: 192.168.1.1

Office address: 10.94.12.123, subnet mask: 255.255.255.0, gateway: 10.94.12.254

If you set the IP address and gateway of each network card according to the normal setting method, you will see two things starting with 0.0.0.0 0.0.0.0 when you use route print under cmd, that is, there are two gateways pointing to 0.0.0.0, so there will be routing conflicts and difficulties in accessing the two networks. The route command is needed to access both networks at the same time.

Step 1: route delete 0.0.0.0 (delete all 0.0.0.0 routes)

Step 2: route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 (add 0.0.0.0 network route)

Step 3: route add 10.0.0.0 mask 255.0.0.0 10.94.12.254 (add 10.0.0.0 network route)

At this point, you can access both networks at the same time, but there is a problem. The routes added using the above command will be lost automatically after the system reboot. How to save the existing routing table?

Make a BAT file, add all the above three steps, and set the system to run it in the startup menu.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report