How to achieve the internal and external network connection of the win7 system

  

Many users in the work needs, the computer settings can only connect to the internal network, can not access the Internet, so there are users want to connect the internal network and the external network at the same time, can work Can access the Internet, how to achieve this under the win7 system? Let Xiaobian tell everyone how to set up the internal and external network under the win7 system.

Win7 can be connected to both internal and external networks by setting a permanent route.

There is no need to set up the integrated network card and wireless network card, but check the input in the “Command window” to see some of their information.

Interface List 12……00 26 82 37 90 a2 ……Broadcom 802.11g Network Adapter 11……00 26 9e 79 39 b9 ……Broadcom NetLink (TM) Fast Ethernet

Description: The example wireless card is 12, and the integrated network card is 11. This will be used later.

IPv4 Routing Table

Active Routing: Network Destination Network Mask Gateway Interface Hops 0.0.0.0 0.0.0.0 172.16.0.1 172.16.0.63 41 0.0.0.0 0.0.0.0 10.111.128.11 10.131 .18.141 276

Description: Pay attention to the gateway here. The gateway is the focus of the whole step. Here, my intranet gateway is 10.111.128.11, and the wireless gateway is 172.16.0.1.

already setup.

First “all programs”-"<;attachments”-"“command prompt”, right-click"run as administrator", which opens the command window.

First clear the network target 0.0.0.0, by entering the command: route delete 0.0.0.0

route command knowledge to check,

route delete network target (behind You can add some parameter filtering, such as network mask, gateway, etc.)

If route delete 10.0.0.0 mask 255.255.0.0 delete the route with the network destination bit 10.0.0.0 and its mask is 255.255.0.0.

route delete 10.0.0.0 mask 255.255.0.0 192.168.1.1 Delete the network destination bit 10.0.0.0 with a mask of 255.255.0.0 and a gateway of 192.168.1.1.

And so on, there are not many parameters to follow.

To add a wireless static route, enter the command: route add -p 0.0.0.0 mask 0.0.0.0 172.16.0.1 if 12

add Add routing operation

-p The added route is static. There is still a

0.0.0.0 wireless connection network target after the restart. In order to make the external network the main one, give 0.0.0.0 to it

mask 0.0. 0.0 Same as above

172.16.0.1 Wireless connection gateway, this can't be wrong

if 12 12 is the wireless network card interface, the above query is known

Increase the static route of the internal network By entering the command: route add -p 10.111.128 .0 mask 255.255.255.0 10.111.128.11 if 11 10.111.128.0 The target network of the intranet, as long as it is not 0.0.0.0, you can

mask 255.255.255.0 Related to the specific intranet settings, according to the specific circumstances set

10.111.128.11 intranet connection gateway, this can not be wrong

if 11 11 for the integrated network interface, the above query is known < Br>

If the dual network card can go out of the network, you can manually change the level:

Open the "Network and Sharing Center" by connecting properties:

, find "Change Adapter Settings", open the properties of "Local Area Connection", select "Internet Protocol" Version 4 & rdquo; properties

Then in the lower right corner of the pop-up page, find "advanced", there will be an "automatic hops", the "automatic hops" & rdquo; , modified into a number, such as 28

The smaller the value of the hop number, the higher the priority is to use this gateway. Generally speaking, the default seems to be 276, and you can modify it as needed.

It must be noted that the gateway and interface cannot be wrong. The gateway is a key point. You need to restart after setting. This step cannot be omitted.

route add -p 190.160.2.0 mask 255.255.255.0 157.121.1.1 if 13

Setup success: Java code

1.View the network card ID cmd> route print remember Wireless network card and integrated network card identification

2.Delete default route cmd> route delete 0.0.0.0

3. Add wireless static route route add -p 0.0.0.0 mask 0.0.0.0 192.168. 1.1 if 12

add Add routing operation

-p The added route is static, there is still a

0.0.0.0 wireless connection network target after the restart, in order to let outside The net is the main one, so give 0.0.0.0 to it

mask 0.0.0.0 Same as above

172.16.0.1 Wireless connection gateway, this can't be wrong

if 12 12 Wireless network card interface, the above query

4. Increase the static route of the internal network route add -p 172.26.1.1 mask 255.255.255.0 172.26.5.254 if 11

172.26.1.1 Intranet The target network, it seems that as long as it is not 0.0.0.0, you can

mask 255.255.255.0 This is related to the specific intranet settings. According to the specific situation,

172.26.5.254 The gateway connected to the intranet, this can't be wrong

if 11 11 is the integrated NIC interface, the above query is known

5.View Routing settings: route print

6.Reboot the system

The above small series introduces the method of connecting the internal and external network under the win7 system. Users who need it can set it, but in the This small series reminds everyone that connecting the internal network and the external network at the same time will make the internal network unsafe, so be careful.

Copyright © Windows knowledge All Rights Reserved