At the same time internal and external network connected set

There are many online posts, in fact, all right, but some write more complex, some are relatively simple, in my case are summarized as follows:
1, the cable network even within the network, the network address, you need to set ip address, etc., as follows:

 

 

2, the radio network even outside the network, ip address automatically, by the need to obtain information ipconfig:

 

 

3, bat code is as follows (delete their own content after #):
route the Delete to delete the default setting 0.0.0.0 #
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 # all the default URL through the gateway 192.168.1.1 even outside (ie wifi gateway)
all the URLs (usually within the network are beginning 10.) route -p add 10.0.0.0 mask 255.0.0.0 10.6.172.161 # 10 beginning, even through outside 10.6.172.161 gateway (also is the default gateway within the network, in my first figure is the first code is automatically deleted)

4, if the bat after running the network address can not connect, it first added to the list within the network default gateway save, and then run it again, you can generally normal

text link: https://blog.csdn.net/weixin_42029733/article / details / 90238033

Guess you like

Origin www.cnblogs.com/1175429393wljblog/p/11840486.html
Recommended