<div dir="ltr"><div><div><div>Hi,<br></div><div>I don&#39;t know very much about &quot;ip&quot;, but...<br><br></div>Kir said:<br> ip route add xxx.13.31.128/27 dev eth0 scope link<br></div><br>not table.<br></div>from man ip:<br>
<br> scope SCOPE_VAL<br>              the  scope  of  the  destinations  covered  by the route prefix.<br>              SCOPE_VAL  may  be  a  number  or  a  string   from   the   file<br>              /etc/iproute2/rt_scopes.   If  this  parameter  is  omitted,  ip<br>
              assumes scope global for all  gatewayed  unicast  routes,  scope<br>              link  for direct unicast and broadcast routes and scope host for<br>              local routes.<br><br>table TABLEID<br>              the table to add this route to.  TABLEID may be a  number  or  a<br>
              string from the file /etc/iproute2/rt_tables.  If this parameter<br>              is omitted, ip assumes the main table,  with  the  exception  of<br>              local  ,  broadcast and nat routes, which are put into the local<br>
              table by default.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 9:50 PM, Rene C. <span dir="ltr">&lt;<a href="mailto:openvz@dokbua.com" target="_blank">openvz@dokbua.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I know I&#39;m probably being a PITA, but I&#39;m still stuck with this.<br>
<br>
The problem is very simple at this time - I&#39;m following the guide<br>
that&#39;s referred, but at the second step I get an error, and I have no<br>
idea how to proceed from here.<br>
<div class="im"><br>
# ip rule add from xxx.13.31.0/24 table 6<br>
# ip route add default dev eth0 via xxx.13.31.129 table 6<br>
RTNETLINK answers: No such process<br>
<br>
</div> Help. Please.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Aug 21, 2013 at 12:39 AM, Rene C. &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt; wrote:<br>
&gt; Hi Kir,<br>
&gt;<br>
&gt; Thanks for taking the time to reply!!  I understand this is probably<br>
&gt; tedious routine, but it&#39;s a blocking issue for me. Yes the provider<br>
&gt; should probably have taken care of it, but I have the privilege of<br>
&gt; bringing Internet to a third world country and we sometimes have to<br>
&gt; live with what we get.<br>
&gt;<br>
&gt; I can ping the gateway fine from the hardware node:<br>
&gt;<br>
&gt; [root@server17 ~]# ping xxx.13.31.129<br>
&gt; PING xxx.13.31.129 (xxx.13.31.129) 56(84) bytes of data.<br>
&gt; 64 bytes from xxx.13.31.129: icmp_seq=1 ttl=255 time=0.337 ms<br>
&gt; 64 bytes from xxx.13.31.129: icmp_seq=2 ttl=255 time=3.46 ms<br>
&gt; 64 bytes from xxx.13.31.129: icmp_seq=3 ttl=255 time=2.68 ms<br>
&gt; ...<br>
&gt;<br>
&gt; So if I understand you correct, the only thing to do next is to set up<br>
&gt; source routing. I tried that before and already explained that it<br>
&gt; stops with an error:<br>
&gt;<br>
&gt; # ip rule add from xxx.13.31.0/24 table 6<br>
&gt; # ip route add default dev eth0 via xxx.13.31.129 table 6<br>
&gt; RTNETLINK answers: No such process<br>
&gt;<br>
&gt; I&#39;ve got my container and one of the allocated IP&#39;s bound to it, but I<br>
&gt; can&#39;t ping either in or out from the container.<br>
&gt;<br>
&gt; // Rene<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Aug 20, 2013 at 11:48 PM, Kir Kolyshkin &lt;<a href="mailto:kir@openvz.org">kir@openvz.org</a>&gt; wrote:<br>
&gt;&gt; On 08/20/2013 09:13 AM, Rene C. wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; No takers!?  Is it more complicated than I imagine?  I have tried to<br>
&gt;&gt;&gt; explain it as well as I can. Please let me know if there is anything<br>
&gt;&gt;&gt; unclear and I&#39;ll try to clarify.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; As I explained earlier, you don&#39;t have to use bridging in this scenario.<br>
&gt;&gt;<br>
&gt;&gt; All you need to do is to add the proper static route to your system so<br>
&gt;&gt; that other network is reachable from your host, that is it.<br>
&gt;&gt;<br>
&gt;&gt; First, make sure that the gateway they specified is reachable from your<br>
&gt;&gt; host:<br>
&gt;&gt; ping xxx.13.31.129<br>
&gt;&gt;<br>
&gt;&gt; I am assuming it is not, and you only have one network card (eth0). So, you<br>
&gt;&gt; need<br>
&gt;&gt; to tell your host that this network is actually there:<br>
&gt;&gt;<br>
&gt;&gt; ip route add xxx.13.31.128/27 dev eth0 scope link<br>
&gt;&gt;<br>
&gt;&gt; After that, the above ping should work.<br>
&gt;&gt;<br>
&gt;&gt; Next, you should probably set up source routing for these IPs, so that<br>
&gt;&gt; containers in this range will use the gateway provided. Check<br>
&gt;&gt; <a href="http://openvz.org/Source_based_routing" target="_blank">http://openvz.org/Source_based_routing</a> for details.<br>
&gt;&gt;<br>
&gt;&gt; Finally, you can set an IP for your container in a usual manner, using<br>
&gt;&gt; venet:<br>
&gt;&gt;<br>
&gt;&gt; vzctl set NNN --ipadd xxx.13.31.130/27 --save<br>
&gt;&gt;<br>
&gt;&gt; and then check that everything works (ping from inside container etc.).<br>
&gt;&gt;<br>
&gt;&gt; Kir.<br>
&gt;&gt;<br>
&gt;&gt; PS frankly speaking, this is what your hoster should&#39;ve explained to you. If<br>
&gt;&gt; they do<br>
&gt;&gt; such extravagant setups, they should be able to help their customers setting<br>
&gt;&gt; those up.<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; // Rene<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sun, Aug 18, 2013 at 1:22 PM, Rene C. &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ... continued<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; So going the simple/obvious way of bridging the CT0 interface I try<br>
&gt;&gt;&gt;&gt; the longer route:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# ifconfig veth1706.0 0<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# echo 1 &gt; /proc/sys/net/ipv4/conf/veth1706.0/forwarding<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# echo 1 &gt; /proc/sys/net/ipv4/conf/veth1706.0/proxy_arp<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# echo 1 &gt; /proc/sys/net/ipv4/conf/eth0/forwarding<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# echo 1 &gt; /proc/sys/net/ipv4/conf/eth0/proxy_arp<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# vzctl enter 1706<br>
&gt;&gt;&gt;&gt; entered into CT 1706<br>
&gt;&gt;&gt;&gt; [root@vps1706 /]# ifconfig eth0 0<br>
&gt;&gt;&gt;&gt; [root@vps1706 /]# ip addr add xxx.13.31.131 dev eth0<br>
&gt;&gt;&gt;&gt; [root@vps1706 /]# route add default dev eth0<br>
&gt;&gt;&gt;&gt; [root@vps1706 /]# logout<br>
&gt;&gt;&gt;&gt; exited from CT 1706<br>
&gt;&gt;&gt;&gt; [root@server17 ~]# ip route add xxx dev veth1706.0<br>
&gt;&gt;&gt;&gt; RTNETLINK answers: File exists<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; To recap the problem:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I have this hardware node with IP xxx.22.181.158<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Node runs Centos 6, so does all containers.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I already have 4 containers with IP addresses on the same subnet<br>
&gt;&gt;&gt;&gt; (xxx.22.181.*) running fine.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Problem is, now my data center gave me 3 IP addresses in a new subnet<br>
&gt;&gt;&gt;&gt; with a separate gateway:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; IP add  : xxx.13.31.130  -  132<br>
&gt;&gt;&gt;&gt; subnet : 255.255.255.224<br>
&gt;&gt;&gt;&gt; gateway : xxx.13.31.129<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; How can I make this work. Please be specific. I don&#39;t mind reading and<br>
&gt;&gt;&gt;&gt; learning, but the learning curve at this stage is too high, I&#39;m not<br>
&gt;&gt;&gt;&gt; getting anywhere. Thanks.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Sun, Aug 18, 2013 at 12:28 PM, Rene C. &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m sorry but networking is obviously not one of my strong areas and<br>
&gt;&gt;&gt;&gt;&gt; for all the good intentions, all the buzzwords confuse me more than<br>
&gt;&gt;&gt;&gt;&gt; they help me.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I had a look at <a href="http://openvz.org/Virtual_Ethernet_device" target="_blank">http://openvz.org/Virtual_Ethernet_device</a>, and it<br>
&gt;&gt;&gt;&gt;&gt; gives detailed information about a number of scenarios, for example<br>
&gt;&gt;&gt;&gt;&gt; &quot;Simple configuration with virtual Ethernet devices&quot; and then proceeds<br>
&gt;&gt;&gt;&gt;&gt; with 50 steps to set it up. (Ok I exaggerate but you get my drift).  I<br>
&gt;&gt;&gt;&gt;&gt; think my requirement is very very simple, like I explained before, my<br>
&gt;&gt;&gt;&gt;&gt; DC gave me a bunch of IP addresses on a new subnet requiring a<br>
&gt;&gt;&gt;&gt;&gt; different gateway for it to work.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I tried.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Ok so I start at the &quot;imple configuration with virtual Ethernet<br>
&gt;&gt;&gt;&gt;&gt; device&quot;, with the vzctl start and set commands listed. Then it says<br>
&gt;&gt;&gt;&gt;&gt; &quot;The following steps are needed when the CT is not bridged to a CT0<br>
&gt;&gt;&gt;&gt;&gt; network interface.&quot;. Ok, I guess I should make the &quot;CT bridged to a<br>
&gt;&gt;&gt;&gt;&gt; CT0 network inteface&quot; then... but how?   There&#39;s a section<br>
&gt;&gt;&gt;&gt;&gt; &quot;Independent Virtual Ethernet communication through the bridge&quot;. It<br>
&gt;&gt;&gt;&gt;&gt; starts with &quot;create bridge device&quot;, starting with &quot;brctl addbr vzbr0&quot;.<br>
&gt;&gt;&gt;&gt;&gt; Ok, I try that...<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; # brctl addbr vzbr0<br>
&gt;&gt;&gt;&gt;&gt; -bash: brctl: command not found<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Now what?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I just need to set this up. Not how to enable a VPN tunnel or multiple<br>
&gt;&gt;&gt;&gt;&gt; 192.168 networks.  I&#39;m sure someone in the know could tell me this is<br>
&gt;&gt;&gt;&gt;&gt; a matter of two lines instead of this information overload.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Thanks!<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Sun, Aug 18, 2013 at 3:36 AM, Jean-Marc Pigeon &lt;<a href="mailto:jmp@safe.ca">jmp@safe.ca</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Bonjour Rene C.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; My understanding you want to route VPS IP not related to host IP.<br>
&gt;&gt;&gt;&gt;&gt;&gt; Just to tell you we have such config.<br>
&gt;&gt;&gt;&gt;&gt;&gt; Using veth  within the VPS and the host with Bridge interface.<br>
&gt;&gt;&gt;&gt;&gt;&gt; Our config is working IP double stack (IPV4 + IPV6).<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; The VPS eth0 interface is a very straightforward one.<br>
&gt;&gt;&gt;&gt;&gt;&gt; VPS ifcfg-eth0<br>
&gt;&gt;&gt;&gt;&gt;&gt; DEVICE=eth0<br>
&gt;&gt;&gt;&gt;&gt;&gt; BOOTPROTO=static<br>
&gt;&gt;&gt;&gt;&gt;&gt; ONBOOT=yes<br>
&gt;&gt;&gt;&gt;&gt;&gt; IPADDR=X.Y.Z.T<br>
&gt;&gt;&gt;&gt;&gt;&gt; NETMASK=255.255.255.255<br>
&gt;&gt;&gt;&gt;&gt;&gt; IPV6INIT=yes<br>
&gt;&gt;&gt;&gt;&gt;&gt; IPV6ADDR=XX:YY.......ZZ:TT<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Keyword are veth, IPV4 Routing, Bridge.<br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://openvz.org/Virtual_Ethernet_device" target="_blank">http://openvz.org/Virtual_Ethernet_device</a><br>
&gt;&gt;&gt;&gt;&gt;&gt; seems to me a good starting point.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Quoting &quot;Rene C.&quot; &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt;:<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks Jean-Marc, I don&#39;t think this is what I need though - I don&#39;t<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; have any bridge interfaces anywhere, and frankly don&#39;t quite see how<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; it fits into the server. There&#39;s only a ifcfg-eth0 file.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I had a look at this page -<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://wiki.openvz.org/Source_based_routing" target="_blank">http://wiki.openvz.org/Source_based_routing</a> - am I on the right track?<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I tried some of the commands but it threw an error early on so I have<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; a feeling I&#39;m not.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; # ip rule add from xxx.13.31.0/24 table 6<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; # ip route add default dev eth0 via xxx.13.31.129 table 6<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; RTNETLINK answers: No such process<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Sat, Aug 17, 2013 at 10:28 PM, Jean-Marc Pigeon &lt;<a href="mailto:jmp@safe.ca">jmp@safe.ca</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Bonjour Rene C,<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; My config:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ifcfg-br0<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; #definition Bridge interface<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; DEVICE=br0<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ONBOOT=yes<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; TYPE=Bridge<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; BOOTPROTO=static<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IPADDR=HOST IP number<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; NETMASK=255.255.255.224  #(My HOST SUBNET MASK)<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IPV6INIT=yes<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IPV6ADDR=PP:XX:.....YY:ZZ<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ifcfg-br0:brgd<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; DEVICE=br0:brgd<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ONBOOT=yes<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; TYPE=Bridge<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; BOOTPROTO=static<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IPADDR=192.0.2.1<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; NETMASK=255.255.255.255<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; #to avoid checking for already set IP<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ARPCHECK=no<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I am using Quagga(RIP) to transparently route (and displace) VPS IP<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; among<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; HOST<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; such the VPS can be &quot;somewhere&quot; within Hardware cloud. (then VPS<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; can be set with an IP unrelated to HOST).<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hoping that help.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Contact me privately if I can help.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Quoting &quot;Rene C.&quot; &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt;:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Kirill, do you know of a page where this procedure is documented?<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks!<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Sat, Aug 17, 2013 at 4:54 PM, Kirill Korotaev &lt;<a href="mailto:dev@parallels.com">dev@parallels.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Rene, if I got your problem correct you need just create a routing<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; rule<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; in the host, so that it knew where to route your IPs.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Or use bridged networking with veth interface instead.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Sent from my iPhone<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On 17.08.2013, at 13:33, &quot;Rene C.&quot; &lt;<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have this hardware node with IP xxx.22.181.158<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Node runs Centos 6, so does all containers.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I already have 4 containers with IP addreses on the same submit<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (xxx.22.181.*) running fine.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Problem is, now my data center gave me 3 IP addresses in a new<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; subnet<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; with a separate gateway:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IP add  : xxx.13.31.130  -  132<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; subnet : 255.255.255.224<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; gateway : xxx.13.31.129<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The only way I can make this work is by taking one of these IP<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; addresses and bind to the hardware node, then I can use the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; remaining<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IP addresses with containers - but this way I lose an IP address -<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; one bound to the hardware node, which seems no longer usable for<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; containers.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; This is a problem both because there&#39;s a limit to how many IP&#39;s<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; the DC<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; will allocate to a server, and because the IP addresses are quite<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; costly.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Did I misunderstand something?<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
&gt;&gt; <a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>