ADJ網路實驗室
打印

[技巧] Linux 下跑雙網卡的設定

Linux 下跑雙網卡的設定

建立一個 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





TOP

ARTERY.cn