解决方案:在同一个网卡上配置两个不同网段的IP地址:
Solution: Configure two different IP addresses on the same web card:
互联网IP:192.168.0.222 网关:192.168.0.1 子网掩码:255.255.225.0
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Internet IP: 192.168.0.222 gateway: 192.168.0.1 & nbsp; & nbsp; & nbsp; subnet mask: 255.255.225.0
局域网IP:172.19.8.1 网关:172.19.0.1 子网掩码:255.255.0.0
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; LAN IP: 172.19.8.1 gateway: 172.19.1.1 & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; subnet mask: 255.255.0.0
1、设置Internet的IPV4属性,使用获取IP的方式,输入自己的互联网的IP地址、网关、子网掩码和DNS(必须有,否则互联网虽然显示网络已连接,但是却无法上网)
1. Set up Internet IPV4 properties and enter their Internet IP addresses, gateways, subnet masks and DNSs using access to IPs (if necessary, otherwise the Internet shows that the network is connected but cannot access the Internet)
2、点击高级,进入TCP/IP设置页面,给这个网卡设置两个IP地址、对应的子网掩码以及互联网的默认网关
2. Click on advanced, enter the TCP/IP setup page, set up two IP addresses for this card, corresponding subnet mask and default gateways for the Internet
3、然后进入cmd写两条软路由指令
Three, then enter cmd and write two soft route instructions.
route -p add 172.19.0.0 mask 255.255.0.0 172.19.8.1 metric 20
(意思是如果检测到172.19网段的地址,就跳转到172.19.8.1这个IP;如果不是就跳转到另外一个网段的IP地址)
(means if the address of the 172.19 section is detected, jump to the IP 172.19.8.1; if not, jump to the IP address of the other segment)
route -p add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 20
(route -p与route的区别:route -p 是永久写入,会写入到注册表;而route则是临时写入,重启电脑后就消失了)
(Route-p difference from roote: it's permanent, it's written into the registration form, it's temporary, and it disappears when the computer is restarted)
这样就可以同时连接两个不同网段的IP地址了。
So you can connect two different segments of the network to an IP address at the same time.
删除IP(多余的) ----尝试倒得执行一次 添加
Delete IP (redundant) - Try to execute one more time
网上邻居
Neighbors online.
属性 Properties 本地连接-属性 Local Connections - Properties
internet协议(TCP/IP)-属性 Internet Protocol (TCP/IP) - Properties
注册有任何问题请添加 微信:MVIP619 拉你进入群

打开微信扫一扫
添加客服
进入交流群
发表评论