82
edits
Changes
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
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