设置双网卡路由

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

猜你喜欢

转载自www.cnblogs.com/jiftle/p/9934934.html
今日推荐