1. 程式人生 > >設定雙網絡卡路由

設定雙網絡卡路由

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