linuxデュアルネットワークカードはルートルールを追加します。
476 ワード
ソース:http://www.weiruoyu.cn/?p=335
[root@localhost~]33853;vi/etc/syssconfig/network-scripts/wtruter.sh route del-net 12.101.xxxxx.netmark 255.255.255.192 dev eth 1 route del-net 169.254.0.0 netmark 255.255.0 dev eth 1 ネットワークカードのルートを追加する必要があれば、下に追加します。
route add-net 172.8.2.0 netmark 255.255.255.0 dev eth 0 route add-net 172.18.net netmark 255.255.255.0 dev eth 0 起動中に追加してください。
vi/etc/rc.d/rc.local //etc/syssconfig/network-scripts/wtruter.sh
[root@localhost~]33853;vi/etc/syssconfig/network-scripts/wtruter.sh route del-net 12.101.xxxxx.netmark 255.255.255.192 dev eth 1
route add-net 172.8.2.0 netmark 255.255.255.0 dev eth 0
vi/etc/rc.d/rc.local //etc/syssconfig/network-scripts/wtruter.sh