1.route del default gw 10.21.173.254
命令解釋:gw是網關ip
2.route add default gw 10.21.173.254
3.netstat -rn 或者route -n
4. 兩臺設備直連,增加一條指定路由方式(105和106的enp4s0f0 直連)
[root@106cache ddi]# route add -net 6.6.6.0/24 gw 11.11.11.105 dev enp4s0f0
命令解釋:gw是對端服務器,dev是走哪個網口
[root@106cache ddi]# route add -net 7.7.7.0/24 gw 192.168.10.105 dev enp2s0f1
[root@106cache ddi]#