win10 dual card disposed within the access networks and the Internet at the same time

The current network environment with a wired connection using a fixed ip external network using the automatic acquisition module wifi connection wifi

Run the route print -4 print routing information in the cmd window

  • First, remove all routes 0.0.0.0, which is the default setting

route delete 0.0.0.0

  • Set to go outside to add a wireless network
route -p add 0.0.0.0 mask 0.0.0.0 172.16.8.1 metric 2 if 14
#此网关为外网路由,可根据自己的外网网关进行调整
  • Adds the specified segment to the network ip

route -p add 172.16.0.0 mask 255.255.255.0 172.16.2.254 metric 1 if 19

-p to set a permanent static routing, configuration disappears prevent restart

Because of the above we add static routes, so, after re-starting, tcp / ip settings in the default network becomes the active gateway, this can also cause routing conflicts, therefore, need to tcp / ip settings within the network's gateway to remove

Because the network ip address I need to visit here is 172.16.0.99, so I added the 172.16.0.0 network, network internal use by the

route -p add 172.16.0.0 mask 255.255.255.0 172.16.2.254

But found not access the network ip address 172.16.0.55 in this setup the
***
win10 route Parameter Description

Interface List: 网络卡列表

Active Routes: 活动路由

Network Destination: 目的网段

Netmask: 子网掩码,与目的网段共同定义了此条路由适用的网络地址

Gateway: 网关,又称下一跳路由器,在发送IP数据包时,网关定义了针对特定的网络目的地址,数据包发送到的下一跳服务器

Interface: 接口,接口定义了针对特定的网络目的地址,本地计算机用于发送数据包的网络接口

Metric: 跳数,跳数用于指出路由的成本,通常情况下代表到达目标地址所需要经过的跳跃数量,一个跳数代表经过一个路由器。跳数越低,代表路由成本越低,优先级越高

Persistent Routes: 手动配置静态路由

Command Description

route print: 打印当前的路由表

route delete:删除一条路由

route add: 增加一条路由, 如果最后加上 –p 选项,表示永久增加静态路由,重启后不会失效

route change: 更改一条路由

If you find outside the network access speed is relatively slow, you need to set the network configuration modifications wifi inside the automatic activity greater than wired activity, we can solve this problem

Guess you like

Origin www.cnblogs.com/raisok/p/11886859.html