字體:  

Linux 下跑雙網卡的設定

adj 發表於: 2007-11-30 11:56 來源: ADJ網路控股集團


建立一個 Script

#/etc/rc.d/rc.route
ip ru add from 210.222.130.20 lookup 1
ip ru add from 61.130.194.66 lookup 2
route add default gw 210.222.130.126 eth1
route add default gw 61.130.194.94 eth2
ip route add table 1 to default via 210.222.130.126
ip route add table 2 to default via 61.130.194.94