Changes

Jump to: navigation, search

Source based routing

600 bytes added, 16:39, 20 July 2006
no edit summary
IP source based routing

to setup src-based routing rules in host system. e.g.

<pre>
# /sbin/ip rule add from $IP table $TBL
# /sbin/ip route add default dev eth0 via $GW table $TBL
</pre>

where $IP is ip address which should use non-default GW.
$GW is gateway for this IP addr
$TBL - any free table number, I use numbers from 6 to ...
every next non-std GW will require another table number

read `man ip` for routing rules details.

http://forum.openvz.org/index.php?t=msg&goto=1631&&srch=src+routing#msg_1631
http://forum.openvz.org/index.php?t=tree&th=492&mid=2881&&rev=&reveal=

Category:HOWTO

Navigation menu