情境:
當目的ip 為 192.168.50.0/24 的時候,便經由 eth1 到 192.168.10.254

編輯 /etc/sysconfig/network-scripts/route-eth1

192.168.50.0/24 via 192.168.10.254 dev eth1
存檔,離開

重啟啟動網路
/etc/init.d/network restart 或 service network restart

重開機後設定檔也會自動生效

相關文章