设置双网卡路由

deepin linux下

--------------------------------------------------------------

sudo route del -net default netmask 0.0.0.0 dev enp0s31f6
sudo route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.60.1 dev enp0s31f6
sudo systemctl restart networking.service

参考文章:https://www.cnblogs.com/zzyyxxjc/p/5973721.html

 

win7下
------------------------------
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 192.168.43.1
route add 192.168.0.0 mask 255.255.0.0 192.168.60.1

 

posted @ 2018-11-09 14:30  jiftle  阅读(1282)  评论(0编辑  收藏  举报