Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
linux:routing [2007/04/01 10:52] a Source routing (primoz pravi, da mu to deluje :) ) dvomim |
linux:routing [2007/11/30 15:12] a |
||
---|---|---|---|
Line 2: | Line 2: | ||
tweak linux [[: | tweak linux [[: | ||
+ | |||
===== Source routing .. ===== | ===== Source routing .. ===== | ||
Line 17: | Line 18: | ||
ip rule add from x.x.x.2 table link1 | ip rule add from x.x.x.2 table link1 | ||
ip rule add from z.z.z.20 table link2 | ip rule add from z.z.z.20 table link2 | ||
+ | |||
+ | ===== same-alternative method ===== | ||
+ | |||
+ | ip route add 87.224.167.g1 dev eth1 table ETH1 | ||
+ | ip route add default via 87.224.167.g1 dev eth1 table ETH1 | ||
+ | ip route add 212.49.121.g2 dev eth3 table ETH3 | ||
+ | ip route add default via 212.49.121.g2 dev eth3 table ETH3 | ||
+ | | ||
+ | | ||
+ | |||
+ | ip rule add fwmark 1 pri 100 table ETH3 | ||
+ | |||
+ | | ||
+ | |||
+ | echo 0 > / | ||
+ | |||
+ | ip rule add from 87.224.167.add1 pri 200 table ETH1 | ||
+ | ip rule add from 212.49.121.addr2 pri 250 table ETH3 | ||
+ |