Changes

Jump to: navigation, search

Source based routing

490 bytes added, 17:41, 20 July 2006
wikified, categorized, enlarged
IP Sometimes you have more than one router in your network, and want different [[VE]]s to use different routers. For that, you need to set up source based routing to setup src-based routing rules in on the host system. e.g.For example:
<pre>
</pre>
where * <code>$IP </code> is ip an IP address which should use non-default GWgateway. You can also use netmask here, e.g. <code>10.9.8.0/24</code> will mean that all VEs with addresses like 10.9.8.x will be routed through the given gateway.* <code>$GW </code> is a gateway for this IP addraddress.* <code>$TBL - </code> is any free table number, I use numbers from 6 to .upwards.Note that tables 250-255 are usually reserved (see <code>/etc/iproute2/rt_tables</code>Note that every next new non-std GW standard gateway will require another table number.
read `For more details on routing rules, see <code>man ip` for routing rules details</code>.
== See also ==[http://forum.openvz.org/index.php?t=msg&gototh=1631&&srch=src+routing268 Forum thread #msg_1631268][http://forum.openvz.org/index.php?t=treemsg&th=492&mid=2881&&rev=&reveal=Forum thread #492]
[[Category:Networking]][[Category:HOWTO]]

Navigation menu