情境:
當目的ip 為 192.168.50.0/24 的時候,不走default route,改經由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

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

undefined
鳥哥的Linux基礎學習訓練教材(附DVD)

作者: 鳥哥  
出版社:碁峰  
 

arrow
arrow
    文章標籤
    linux centos redhat route
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()