<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Cambria">Thanks for the information - routing tables worked
a charm. Didn't think it would be that simple.<br>
<br>
Thanks again :-).<br>
<br>
Regards,<br>
</font><br>
Daniel Pittman wrote:
<blockquote cite="mid:87typkj4ml.fsf@rimspace.net" type="cite">
<pre wrap="">Aleksey Mykhailov <a class="moz-txt-link-rfc2396E" href="mailto:aleksey@kodingen.com"><aleksey@kodingen.com></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">On Wednesday 02 June 2010 19:25:52 Mark Barnes wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Obviously I can create container 10x with the private IP 192.168.x.y
however I need to be able to tell said container to route traffic through
eth1 rather than eth0 and vice versa for the public containers.
</pre>
</blockquote>
<pre wrap="">You need to use veth device in container
</pre>
</blockquote>
<pre wrap=""><!---->
No you don't; you can use the Linux policy routing tools (iproute2 and
friends) to select the routing table to use based on the source address of the
packets.
Configure that on your host node, and the venet stuff will just work, because
it uses regular old IP routing to move traffic around.
<a class="moz-txt-link-freetext" href="http://lartc.org/howto/lartc.rpdb.html#LARTC.RPDB.SIMPLE">http://lartc.org/howto/lartc.rpdb.html#LARTC.RPDB.SIMPLE</a>
Regards,
Daniel
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(21, 137, 255); border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 8pt;">
<p class="MsoNormal"><b><span
style="font-size: 8.5pt; font-family: "Verdana","sans-serif"; color: rgb(21, 137, 255);">Mark
Barnes</span><br>
<span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(21, 137, 255);"
lang="EN-US">Island Geek Ltd</span></b><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"
lang="EN-US"><br>
<span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"
lang="EN-US">Phone: +44 (0)1983 210065</span><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"
lang="EN-US"><br>
Website: </span><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"><a
href="http://www.islandgeek.net"><span
style="color: rgb(160, 160, 160); text-decoration: none;">http://www.islandgeek.net</span></a></span><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"
lang="EN-US"> </span><b><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(21, 137, 255);"
lang="EN-US">|</span></b><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"
lang="EN-US"> E-mail:
</span><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);"><a
href="mailto:mark.barnes@islandgeek.net"><span
style="color: rgb(160, 160, 160); text-decoration: none;" lang="EN-US">mark.barnes@islandgeek.net</span></a></span><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: rgb(160, 160, 160);">
<span lang="EN-US"><o:p></o:p></span></span></span></p>
</div>
</div>
</body>
</html>