1, Environment One (System: Windows XP, Intranet, extranet is not the same type of address, fixed network address):
External network: Through the laptop wireless card connection;
Intranet: local connection via notebook;
The first step is to connect the network cable, configure the local connection address, and note that the IP address does not conflict with other IP addresses:
, the local connection configures the intranet address of the 10.9.1.189.
The external address, the wireless network card connected to the router by the notebook, automatically obtained the P address, the local IP address is 192.168.1.115.
Now testing, the intranet can ping through any other host, the external network is also connected, but open the browser, not the Internet;
If you unplug your network cable, you can surf the Internet.
Step two, run cmd, enter route print
, the Red Line box, respectively, the Internet address of the intranet and extranet, at this time, because the intranet metric < external network metric 25, the number of small priority, so the intranet can be connected, outside the network is not;
Here is an explanation of metric:
a routing term, which is a variable value, such as a network delay , that is obtained after the routing protocol algorithm has been calculated to determine the optimal route. metric is the metric that the routing algorithm uses to determine the best path to reach the destination, such as path length. Workaround:
Enter the route print again,
Two more lines issued.
Now the intranet and the external network can be used simultaneously.
2, Environment two (System: Windows 7, ibid: intranet, Extranet is not the same type of address, intranet address fixed):
Extranet Gateway: 192.168.1.1
Intranet Gateway: 10.1.1.1 (Intranet other address 10.1.2.1,~ 10.1.n.1)
Not to repeat, a picture of the complete description:
3, the Environment Three (System: windows7, intranet, external network are connected through the router)
is so built, because the intranet needs to connect more people, not so many network cable and network port, so in the intranet of a network cable connected to a router, tp-link,
The router is configured with static address, that is, the corresponding address of the network cable, others are by default.
External network also use their own laptop wireless card connection, view address:
Address of the Extranet: 192.168.1.103, Gateway: 192.168.1.1
The intranet uses a USB wireless card to connect to another router, as well, such as viewing the IP address:
Intranet Address: 192.168.1.101, Gateway: 192.168.1.1
Continue to cmd and enter route print:
Network Interface Devices:
Active routes:
Here we find the corresponding relationship first:
When you first view the network connection details, the extranet address is 192.168.1.103, the network card name is:intel<r> WiFi Link 5100 AGN,
Corresponding Network Device interface: 12
Connect to the Intranet address: 192.168.1.101, that is, another network card, the name is: 802.11N USB ..., his corresponding network device interface: 18
Because the active routing table in the metric (Win7 under the "metric"), the Intranet of the metric:51 > outside the metric:25, now only Sisu network, the intranet is not connected.
Workaround:
Delete the intranet default route, because the internal and external network "Network Target", "Mask", "gateway" are the same, delete to specify the device interface:
Next, increase the internal network by, also specify the device interface: (here, I added two, to connect to two network segments)
Finally, check the results:
Below, two permanent routes have been added.
Now intranet, external network can be connected at the same time.
Finally, there is a question:
Add a permanent route and automatically increase the active route, such as the last one, why?
If the master unfortunate see this article, and see this question, hope can help me to answer under, thank you!
Configure the Windows routing table to connect your computer to the intranet extranet method at the same time