Win7 system how to achieve internal and external network connection tutorial

  
Many users need to connect to the internal network and not access the Internet. Therefore, users want to connect to the internal network and the external network at the same time. They can work and have access to the Internet. How can this be achieved under the win7 system? Let Xiaobian tell everyone how to set up the internal and external network under the win7 system.
Win7 connects to internal and external networks at the same time, which can be solved by setting permanent routes.
Integrated NICs and wireless NICs do not need to be set up, but check the input in the “command window">route print” to view 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
Note: The example of the wireless network card is 12, 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
Explanation: 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.
Here you can start setting up.
First "all programs”-"<;attachments”-"“command prompt”, right-click"run as administrator", this 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 (can be added some parameter filtering, such as network cover Code, 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 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 with a route of 192.168.1.1.
and so on, there are not many parameters to follow.
Add wireless static route, by entering 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, after restart There is also a network destination of
0.0.0.0 wireless connection, in order to make the external network the main, so give 0.0.0.0 to it
mask 0.0.0.0 Same as above
172.16.0.1 wirelessly connected gateway, this can not Wrong
if 12 12 is the wireless network card interface, the above query to know
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 Intranet target network, as long as it is not 0.0.0.0, it can be
mask 255.255.255.0 This is related to the specific intranet setting. According to the specific situation, set
10.111.128.11 the gateway connected to the intranet, this can't be wrong.
if 11 11 For the integrated network card interface, the above query is known. If the dual network card can be sent out, you can manually change the level:
By connecting properties:
Open “Network and Sharing Center” , find “change adapter settings”, Open the properties of "local connection", select "Internet Protocol Version 4" attribute
and then find "Advanced" in the lower right corner of the pop-up page, there will be an "Automatic hop" & rdquo;, Remove the checkmark from the "automatic hops" and change it to a number. For example, the smaller the value of 28
hops, the higher the priority is to use this gateway. Generally speaking, the default seems to be 276. edit a bit.
It must be noted that the gateway and the interface cannot be wrong. The gateway is the 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
Setting success: Java code
1.View network card identification 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 route operation
-p The added route is static. After the restart, there is still a network destination of
0.0.0.0 wireless connection. In order to make the external network the main one, give 0.0.0.0 to it
mask 0.0.0.0 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
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 The target network of the intranet seems to be as long as it is not 0.0.0.0.
mask 255.255.255.0 This is related to the specific intranet settings. Set according to the specific situation
172.26.5.254 Network connection gateway, this can not be wrong
if 11 11 for the integrated network card 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 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