A tutorial on how to realize the simultaneous connection between intranet and Win7 system

Source: Internet
Author: User

Many users in the work of the need, computer settings can only connect the intranet, can not access the Internet, so there are users want to connect both intranet and extranet, can work to have access to the Internet, this in the Win7 system how to achieve it? Let me tell you how to set up a win7 system to connect both inside and outside the Internet café.

Win7 is also connected to the intranet, which can be resolved by setting a permanent route.

Neither the integrated network card nor the wireless network card needs to be set, but you can view some of their information in the command window by entering "route print".

Interface List 12 ... A2---- Broadcom 802.11g Network Adapter 11 ... 9e B9 ..... Broadcom NetLink (TM) Fast Ethernet

Description: The example of the wireless card is 12, the integrated network card is 11. This will be used in the back.

IPV4 routing Table

Active routes: Network target network Mask Gateway Interface metric 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

Note: Here to pay attention to the gateway, the gateway is the focus of the whole step, here my intranet gateway 10.111.128.11, wireless gateway is 172.16.0.1.

Here you can start setting up.

First "All Programs"-"Attachment"-"Command Prompt", right "run as administrator", so that the command window opens.

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

Route the knowledge of the command to find out for yourself,

Route Delete Network target (you can add some parameter filtering, such as netmask, Gateway, etc.)

such as Route delete 10.0.0.0 mask 255.255.0.0 deletes the network target bit 10.0.0.0 and its mask is 255.255.0.0 route.

Route Delete 10.0.0.0 mask 255.255.0.0 192.168.1.1 deletes the network target bit 10.0.0.0, whose mask is 255.255.0.0 and the gateway is a 192.168.1.1 route.

By analogy, the following arguments are not much like Add.

Increase wireless static routing by entering commands: Route add-p 0.0.0.0 Mask 0.0.0.0 if 12

Add Routing action

The route added by-P is static and still exists after reboot

0.0.0.0 wireless connection to the network target, in order to make the external network as the main, so put 0.0.0.0 to it

Mask 0.0.0.0 ditto

172.16.0.1 Wireless Connection Gateway, this can not be wrong

If 12 12 is the wireless card interface, the above query is known

To increase the static routing of the Intranet, through the input 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 not 0.0.0.0 can

Mask 255.255.255.0 This is related to the specific intranet settings, according to the specific circumstances set

10.111.128.11 Intranet Connected Gateway, this can not be wrong

If 11 11 is an integrated NIC interface, the above query is known

If the dual network card can be out of the network can manually change the level:

By Connection properties:

Open Network and Sharing Center, find change adapter settings, open the properties for local Area Connection, and choose Internet Protocol version 4 properties

Then in the lower right corner of the pop-up page to find "advanced", there will be an "automatic metric", the "Automatic metric" before the hook removed, modified into a number, such as 28

The smaller the value of the metric, the more preferred use of this gateway, generally the default seems to be 276, the need to modify their own.

It must be noted that the gateway and interface can not be wrong, the gateway is the key point, set up after the need to restart, this step can not be omitted.

Route add-p 190.160.2.0 Mask 255.255.255.0 157.121.1.1 if 13

Set success: Java code

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

2. Delete default route cmd> route Delete 0.0.0.0

3. Increase wireless static routing route Add-p 0.0.0.0 mask 0.0.0.0 192.168.1.1 if 12

Add Routing action

The route added by-P is static and still exists after reboot

0.0.0.0 wireless connection to the network target, in order to make the external network as the main, so put 0.0.0.0 to it

Mask 0.0.0.0 ditto

172.16.0.1 Wireless Connection Gateway, this can not be wrong

If 12 12 is the wireless card interface, the above query is known

4. Increase the static routing of the Intranet route Add-p 172.26.1.1 mask 255.255.255.0 172.26.5.254 if 11

172.26.1.1 intranet target network, seemingly as long as not 0.0.0.0 can

Mask 255.255.255.0 This is related to the specific intranet settings, according to the specific circumstances set

172.26.5.254 Intranet Connected Gateway, this can not be wrong

If 11 11 is an integrated NIC interface, the above query is known

5. View routing settings: route print

6. Reboot the system

The above-mentioned small series is introduced in the Win7 system, at the same time to connect the internal and external network method, there is a need for users to set up, but in this small series to remind everyone is: at the same time connect the intranet and extranet will make the intranet insecure, so be careful to set.

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.