Linux下双网卡路由设置
星期日, 06月 8th, 2008从某人哪儿偷来的,记录下来,以后肯定用得上 ip route add IPADD_1_NETWORK/BLOCK dev eth0 src IPADD_1 table TABLE_1 ip route add default via GW_1 table TABLE_1 ip route add IPADD_2_NETWORK/BLOCK dev eth1 src IPADD_2 table TABLE_2 ip route add default via GW_2 table TABLE_2 ip rule add from IPADD_1 pref 20000 table TABLE_1 ip rule add from IPADD_2 pref 20000 table TABLE_2